General C++ Programming - May 2011 (Page 30)

by HenriK
C++ STL - Trouble with getline
 
What is the problem with this code? #include <iostream> #include <fstream> #include <string> us...
[2 replies] Last: Thanks a lot webJose , it works now. Fortunately it was that simple.... (by HenriK)
getclassname and getwindowtext help
 
I am trying to get the open window class names and caption enumerated. Right now (line 27) is out...
[1 reply] : This is a windows specific question, so move it to windows section. ... (by writetonsharma)
Write a program converting Base 10 numbers to any base from 2 - 16
 
Can someone give me some advice/hints in regards to writing a program that takes a decimal number fr...
[3 replies] Last: duplicate: http://www.cplusplus.com/forum/beginner/42183/ (by writetonsharma)
template list container
 
I have three functions in a header file and a driver. I cant figure out why my driver isnt recognizi...
[4 replies] Last: Yes, better, but you still missed the <T> part in a couple of function... (by webJose)
Is there a way to check whether the object is const?
 
Hi, I am trying to overload a function with const object. In the sense, If the object calling is ...
[1 reply] : er... I don't understand the question? The object is const if you use... (by Disch)
Where to go from here...
 
Hello :-) I'm Jen. New to programming & new to the forum. After much research, I've decided C++ is t...
[4 replies] Last: So, Moschops... and ascii if you're out there... :-) I posted this ... (by ExcitedNewbieJen)
header file construction
 
So i have this code in my header file: #ifndef SOLVER_H_ #define SOLVER_H_ #include <vecto...
[4 replies] Last: @theexactpoint: You probably don't need the include at all. Just forwa... (by ne555)
Reading memory in C++
 
Hey guys, I've been googeling for a while now but the articles I find are a little bit too specific,...
[12 replies] Last: Well, mainly because I simply want to learn *how* to do it. I'd been w... (by kakaboeie)
fstrem.open() causes ERROR_ALREADY_EXISTS
 
hello, I wrote a simple logger, which should print last error through win32 Api function GetLastErro...
[5 replies] Last: ERROR_ALREADY_EXISTS is not an error at all! Check out the CreateFile... (by webJose)
Compiler faulty link
 
Someone understand Chinese? visual studio 2010 compile link error. First LNK2019: obj: j as freely...
[1 reply] : It's essentially undefined referenced. The linker cannot find the fun... (by Moschops)
pointer list of class
 
hi i have to make a list of a class, of the style: class Expl; [...] class Otherexpl{ pri...
[no replies]
deque container using stack class
 
I cannot, for the life of me, figure out why this thing wont compile. I'm getting an unresolved exte...
[5 replies] Last: I know. Like I said, you have problems in your code. Maybe too many ... (by webJose)
heap/stack memory allocation
 
Hi, just a quick question, when you define local variables inside a branch inside a function, are th...
[3 replies] Last: thanks guys (by slicedpan)
Best way to initialize class that needs large amount of supporting data
 
Hello, I am writing a class library in which several classes rely on up to 200 MB of supporting p...
[5 replies] Last: If you ensure that each vector element is an automatic variable, then ... (by anonymous23323124)
std::vector::erase avoiding lots of copying
 
I have situation where i have lots of objects in one container and i need to erase some element/s fr...
[13 replies] Last: You're right (again). Thanks both of you for tips. (by savavampir)
Clearing Multiple Variables
 
Hello, I am new to C++ programming, teaching myself as I go along. I am currently writing a progr...
[6 replies] Last: Hmm interesting, I may be able to make it work using an array, I need ... (by declawd)
undefined reference error
 
i keep getting this error in my main.cpp main.cpp:17: undefined reference to `Game::Game()' ...
[4 replies] Last: because when i was typing the second one an error came up so i just co... (by clickspiker23)
vowel count with recursion
 
I can't get this to work properly. There is a runtime error that I can't seem to get around. What's ...
[6 replies] Last: Lol, yes it would :P Always make sure you're recursive functions termi... (by anonymous23323124)
error outputting with classes
 
Im trying to read from a file using classes and objects. i keep getting this error main.cpp:16...
[5 replies] Last: also i tried a few other things and sometimes i get an undefined ref... (by clickspiker23)
check string for "key phrases"?????
 
Hello. I'm trying to make a simple chatbot, but I'm stuck on checking the input for keywords/phrases...
[11 replies] Last: Right now its just a console app, but you would only need to change <2... (by ModShop)
May 2011 Pages: 1... 2829303132
  Archived months: [apr2011] [jun2011]

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