General C++ Programming - May 2010 (Page 4)

'string' Parsing in C++
 
Hi all, I want to parse a std::string, the delimitor is ','. For example, string s = "1312312...
[5 replies] Last: Using a stringstream and getline is another alternative. There's also... (by moorecm)
C++ output error
 
hi friends, I am doing some programming test from c++ book, about ATM machine, i manage to complet...
[1 reply] : That's one big output error. What is the error? And please use code... (by RedX)
a lot of logic approch a lot of hw devices
 
a lot of logic objects need to approch to meny devices. the solution today: interface class imple...
[1 reply] : Hmm, i think our spam filter is broken... I didn't understand a word. (by RedX)
How to move a object
 
I am a beginner in c++. There is a big vacation right now.So i want to make a little console game as...
[3 replies] Last: http://msdn.microsoft.com/en-us/library/ms682073(v=VS.85).aspx Thos... (by indigo)
Importing 1000 Files, How To Skip "Bad" Lines In File?
 
Hi everyone, I'm a moderately experienced C++ programmer working on code which must do th...
[14 replies] Last: I noticed that the error seems to have occurred while calling this fu... (by phummon2)
Gui Developement problem
 
Hi Experts I wanted to know how to make Gui that the window is in two half. by clicking on...
[2 replies] Last: Well, it depends what GUI Toolkit you are using, so we really can't he... (by closed account 1yR4jE8b)
c++ map implementation
 
Hi, I read somewhere that c++ maps are implemented using height balanced trees (red black trees s...
[2 replies] Last: If you use g++ you may want to look at the headers ext/hash_map (or ... (by kmw)
by kmw
conversion of a single wchar_t with toupper
 
Hi, I am trying to convert a single wchar_t to uppercase. In theory it should work as shown below...
[5 replies] Last: Thanks everybody. Indeed, it's a problem of std::wcout (I know, I shou... (by kmw)
How can I 'pickle' my datalists
 
Hello, Those of you who are familiar with Python might be knowing the 'Pickle' function. With th...
[2 replies] Last: Any other suggestion please? This boost asks for 2GB space on my hard-... (by luckycusp)
by wtf
Getting the name of a function, and the function that called it. (1,2)
 
I need to know this to help with debugging. Sorry, the library is about to close so I don't hav...
[26 replies] Last: [quote=helios]My second post doesn't contradict the first one, by the ... (by m4ster r0shi)
Creating a class and some member functions
 
Hello. Please if somebody has the time and willingness to do this program in C++ I would be very ha...
[8 replies] Last: The coefficients of a polynomial of degree 3 - this should be a,b,c,d ... (by Ribka123)
by eriks
sprintf stackdumps on second call to class method -- first call fine...
 
Again, I have another post here on CPP where it might just be my ignorance of C++ (I'm an old C hack...
[1 reply] : I'm expecting logMsg to get allocated on the heap. You're never makin... (by helios)
by eriks
Private methods in classes and DRY principle
 
I'm an old C hack from way back. I can make my way around in C++ and know OO, so I've done some rud...
[3 replies] Last: I'll post the real code tomorrow sometime. Meanwhile, maybe I should ... (by eriks)
string variable cannot be assigned
 
Hi, I am using a string inside a structure like: struct action { enum actionCommand ...
[7 replies] Last: Thanks kevin, That helps a lot. I understand what was going on n... (by aryajur)
by indigo
WriteConsoleOutputCharacter not working
 
Hello everyone, here is my simple function: void frame() { char ul = (char)201; char ur = (ch...
[6 replies] Last: It sounds to me like you are goofing-up with the pointers somewhere... (by Duthomhas)
Calculating time complexity and space complexity
 
How do you calculate the time complexity of an algorithm (in "Big-O" notation)? I read something on ...
[10 replies] Last: Ok. Thanks, moorecm, jsmith; I understand this now. Thanks alot. (by chrisname)
by Null
linker errors (something with namespaces)
 
Hello, this code compiles fine but I can't figure out why do I get linker errors: ---------...
[8 replies] Last: In C, static global variables have module scope. In C++ we use unname... (by moorecm)
delete array allocated in a function
 
Hello, I have a deallocation problem : I have several classes, and in one of these, a function is r...
[3 replies] Last: That's odd. The code you posted should not break with this message. Yo... (by RedX)
How to create a Checksum using logical XOR
 
Hi, How do you create a checksum using the logical "XOR" of all 32-bit words in a binary file? I ...
[4 replies] Last: Yes. I was a bit confusing really. You said you wanted to checksum all... (by Galik)
Multiple Instances of a class deriving from on instance of the SuperClass
 
Hi, I have a program with a class (lets call it class A) that has very large data members. I also...
[5 replies] Last: Thanks Guys that helps a lot. (by SnowBlind)
May 2010 Pages: 123456... 22
  Archived months: [apr2010] [jun2010]

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