General C++ Programming - January 2012 (Page 9)

by NGen
GTK+ Bindings
 
Due to a lack of documentation on the developers' part, there doesn't appear to be any information regarding the use of GTK's binding mechanism other than how t...
[no replies]
static variables in non-static member functions
 
If a non-static memeber function has a static local variable, I would have expected that there would be a separate albiet persistent copy of this variable f...
[4 replies] Last: You can't do this any other way than using a normal class member. (by Peter87)
Binary Search Tree
 
Can somebody help with this problem: I need to, after entering some value, check how many values in my binary search tree are less than the value entered. I hav...
[2 replies] Last: ^ recursive method: class TreeNode* { int data; TreeNode* ... (by closed account o1vk4iN6)
Writing file to text document
 
Okay so im trying to write the sentence that the user has given me into a text file using this code int StoreDatabase() { const int SIZE = 100; E...
[6 replies] Last: I see it all the time. It's also used to check a file size, a seek to... (by kbw)
[MySQL++] Get Total Records in Table?
 
I've found function "COUNT" but result is returning 1 even if I have 3 records there.. code: { try { mysqlpp::Connection connection(DATABASE, HOST,...
[6 replies] Last: ah, thanks ! :P I'll try it tomorrow (by mekkatorqu)
ResEdit started to be Annoying
 
So I wasn't programming for a while, today I wanted to create some application cuz I was bored, BUT when I started resedit, created new project, saved it and th...
[4 replies] Last: I just used another path to the includes (Visual SDK) and it's working... (by mekkatorqu)
Reading List of Numbers into an Array using cin?
 
For some reason I am having some trouble reading a list of numbers using cin into an array, using -1 to indicate I am done. For example, the program will promp...
[6 replies] Last: Yes. I see it now. int k = -1; do { k++; cin >> nums ; }w... (by diztorti0n)
by gline9
having a problem with my code
 
I am having trouble altering a class in my program it will act like it is setting a value to the class but when I access the value it doesn't seem to have ...
[5 replies] Last: Thank you eypros I figured out my problem. I edited the Trainer.h file... (by gline9)
static global & compilation units
 
I want to see that my understanding of static keyword with regard to global variables is correct. When there is a header file that defines a plain global var...
[15 replies] Last: I've been asking this on stackoverflow yesterday before you posted her... (by codekiddy)
by gtkano
backtraking industry?
 
Can someone tell me in which industry is backtracking used ? Thank you in advance.
[no replies]
dont understand
 
I have two problems here, could someone tell me where the CreateWindow() code for the textbox at the bottom of my code need to be or how to make it work and how...
[no replies]
why is only base destructor being called .
 
Hi , As in my code .. only the destructor of the base class is being called . i was assuming that the destructor of the derived class will be called first the...
[4 replies] Last: Thanks Disch .. i will keep that in the mind . . . (by bluecoder)
Help needed! drawing a diamond
 
Hey guys, i have a project due for class where we have to draw a diamond using for loops. I've got most of it done except the draw function. If you guys can hel...
[1 reply] : Duplicate post : http://cplusplus.com/forum/general/60042/ (by cnoeval)
by Ken777
Covert nouns ending in y,x,sh,s,ss,ch to plurals.
 
I am doing a course that includes c++ programming and i am finding it very hard to write the code,I must do an assignment on coverting nouns to plurals,also dra...
[no replies]
Unicode richtextbox to text file
 
Hi, I'm having a problem with taking the user input from a richtextbox in Unicode and writing it to a Unicode text file. I'm able to read a different Uni...
[2 replies] Last: Hi, thanks for the quick reply. I've changed my code now so that it li... (by ahoysailor)
The best option for GUI programs with C++
 
Hi, I’m currently taking an introduction to programming class using C++ and Visual Studio and have some questions. I know it’s probably soon to think ab...
[4 replies] Last: Thanks a lot for your help! I might come back with some other C++ que... (by fstigre)
Difference between char* and string in terms of map usage
 
Hi all, I am currently storing '|' separated value in a file and again try to retrieve it. Below is snippets of my code. std::map<int, char*> symbolMap ...
[8 replies] Last: You could use map<int, RWCString> as well, since you're already usi... (by Cubbi)
Pass by const ref for arrays
 
I have the following class: class CharacterImpl { protected: int mStam, mWill, mRef, mInt, mStr, mPercp, mAgil, mAware, mVoid, mAir, mEarth, mWater, ...
[5 replies] Last: @Peter87 & aquaz: That's the information that I was looking for, than... (by ciphermagi)
Help Wanted from Experienced Game Developers! (1,2)
 
i am new to C++ and so i need someone to show me how to make a basic First Person Shooter game... i mean when i say i am new to C++ i mean, fresh out the bo...
[22 replies] Last: http://i.imgur.com/2PnZk.gif done. (by closed account o1vk4iN6)
This web as an offline version?
 
Hello. First of all I´d like to thank all of you who are responsible for this great web :) Thanks a lot!!! This is exactly what I was locking for. But is th...
[3 replies] Last: Yes, this wget is exactly what I needed :) Thanks a lot both of you f... (by firefox)
January 2012 Pages: 1... 7891011... 36
  Archived months: [dec2011] [feb2012]

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