General C++ Programming - August 2009 (Page 4)

by wtf
How can I change compiler options in codeblocks to match default of c-free?
 
I have a project I'm working on but recently had to switch from c-free 3.5 to codeblocks. Which is ...
[1 reply] : Also if you know of any solutions as to why I'm having the problems wi... (by wtf)
Code Trouble
 
include <cstring> #include <iostream> #include <ctime> #include <cstdlib> int main(void) { ...
[3 replies] Last: On line 11 you are allocating a char array with a non-constant size. I... (by Zhuge)
by R0mai
boost::split does not work as expected
 
http://www.boost.org/doc/libs/1_39_0/doc/html/string_algo/usage.html#id3408774 There is an exampl...
[4 replies] Last: splitVec.erase( std::remove_if( splitVec.begin(), splitVec.end(), ... (by jsmith)
switch statement: default at topmost without break
 
Came across the following code: enum Outcome { WIN, LOSE, DRAW }; ostream& operator<<(ostrea...
[12 replies] Last: It is always best to include a default case in switch statements, even... (by jsmith)
Linking issues with Apache stdcxx and oracle occi libraries
 
Hi All, I'm integrating Apache stdcxx(C++ STL library) to my application since it yields better p...
[no replies]
problem in coding
 
I need help in solving this problem... write a program which prints its own source code... ...
[3 replies] Last: Interesting. Usually these forums are for questions. What you've go... (by chrisname)
by mppx
merge 2 list using templates & archives
 
Write a function to merge two linked lists of integers that are sorted into ascending order. The res...
[1 reply] : You can merge two lists in a one line call, try using google or this s... (by R0mai)
Creating a Checksum
 
Just wondering how I can use a checksum to compare two images. I need to make a small function th...
[4 replies] Last: Thanks for that mate - I'll take a look over it now ;) (by Mythios)
Using C library in C++ project
 
Hi All, I've a library written in C, I tried to use it inside my C++ project but I got many error...
[2 replies] Last: Are the headers prepared to be used by C++? Actually No, I don't kn... (by mbnoimi)
Checking for null characters in the middle of a character sequence
 
I'm having some problems with null characters being in the middle of a character sequence, resulting...
[7 replies] Last: I was just about to post in here saying that I found a working solutio... (by Chrisaster)
what wrong with the calculations
 
for ( int i=0; i<Length; i++) { float Pay_check; Pay_check = workers .Hours * work...
[2 replies] Last: Perhaps post the error(s) to? (by mcleano)
Run-Time Check Failure #3 - The variable
 
Run-Time Check Failure #3 - The variable 'workers' is being used without being defined. Employee ...
[1 reply] : The second line passes a single element (outside the array, by the way... (by helios)
Socket programming issue with getaddrinfo()
 
I can't work out how to get the getaddrinfo() function to work. I keep getting the error: error C...
[9 replies] Last: Ok using your pragma comment let the code compile fine so thanks! B... (by mcleano)
(unsigned)(c+1) <= 256
 
Preliminary Info: Codebase = C Platform = Windows (32 bit) Okay, let me start by saying t...
[1 reply] : Simply cast to unsigned char. That will reinterpret the signed value a... (by helios)
Can you randomize char arrays?
 
Is it even possible?
[3 replies] Last: http://www.cplusplus.com/reference/algorithm/random_shuffle/ (by R0mai)
Making C++ code platform independent:a big picture
 
By "platform independent" I mean the code can at lease be executed on Windows, Linux and Unix. I am ...
[9 replies] Last: Updated (by Robertlzw)
by Sadad
Robot
 
hello.. i tried to write the following code but couldn't figure out how to. "Write a subroutine i...
[no replies]
syntax error : identifier 'identifier'
 
I get the following Error and dont know how to solve this... error C2061: syntax error: identifi...
[1 reply] : i solved it... but im addled... why do i have to declare my CUserDa... (by Incubbus)
arrays
 
how do u write a program which is made up of the first ten prime numbers in an array called prime
[3 replies] Last: unsigned short primes ; int i, j, count = 0; for(i=2; count<10; i... (by Gregor)
ifstream for large I/O
 
Hi, I am using ifstream to process a large obj file (~23 MB) and it failed (fin.fail()) at run ti...
[no replies]
August 2009 Pages: 123456... 12
  Archived months: [jul2009] [sep2009]

This is an archived page. To post a new message, go to the current page.