General C++ Programming - December 2010 (Page 16)

by aatwo
Deleting Objects
 
Hi guys. I am experimenting with the object orientated programming techniques that c++ has to offer and something crossed my mind when reading about memory leak...
[5 replies] Last: This was an interesting and helpful read thank you Disch. I definitely... (by aatwo)
calculating with binary tree
 
hi.every one i haven't understood calculated with binary tree. which document i should read.? if you have any binary tree's document please share with me. ...
[1 reply] : what do you mean by 'calculating with binary three' ? anyway, wikiped... (by hamsterman)
hexa numbers
 
this is my code i don't understand,why my result 12cA is? please explain to me. thanks a lot // Example1.cpp : Defines the entry point for the console ap...
[4 replies] Last: thanks "kbw" very much (by tuandt5)
Using STRNCMP
 
Hi, I am using STRNCMP to test for a new minute, but I am getting somewhat inconsistent results occasionally. Here's the relevant code: ... char *sTemp=ne...
[1 reply] : you're not using str n cmp but strcmp which needs a 0 at the end whi... (by coder777)
Vis 2010 warning level
 
Anybody know how to change the warning level in visual studio 2010? Thanks.
[1 reply] : At least in VS2005: Project options -> C/C++ options -> Common (name... (by onur)
errors c2471 & c1083
 
What do these mean and how do I clear them?? Error 1 error C2471: cannot update program database 'c:\users\missy\documents\visual studio 2008\projects\assign...
[1 reply] : The extension "pdb" stands for "program debug database" and it contain... (by onur)
Genetic Algorithm TSP
 
Hey, I'm making a GUI that's supposed to show the solution to the Traveling Salesman Problem, solved via Genetic Algorithms. Long story short, I made the code f...
[4 replies] Last: This is what h9uest was talking about -> http://www.codeproject.com/KB... (by m4ster r0shi)
by eye51
Function pointer to Function Object
 
Hi, I have something like this: class RED { public: int operator()() { return 0; } } class BLUE { public: int operator()() { return ...
[1 reply] : http://www.parashift.com/c++-faq-lite/pointers-to-members.html (by kbw)
can any one tell me!!!
 
what does this expression does sum+=n; in a for loop.
[1 reply] : sum += n; is the same as sum = sum + n; (by kbw)
Getting undefined reference to error while linking the program
 
When i try to compile program i get error Undefined reference to while linking program . Can anyone tell me why i am getting this error(in general why would we...
[2 replies] Last: Thanks Kooth you are right libraries are kept at another location........ (by rohandreamworld)
access an element of a vector that is inside a vector
 
Hey, If I have : vector < vector<int> > temp; And I want to access the first integer of the first vector inside temp, how would I code that up ? Given...
[5 replies] Last: http://cplusplus.com/reference/algorithm/reverse/ -Albatross (by Albatross)
AVL balancing factors
 
Ok, so I have an assignment to modify a previous assignment (binary tree) to now include balancing at each node. I understand what balancing is as far as if rig...
[2 replies] Last: int rHeight; //you need to initialise the variable while ( temp -> r... (by ne555)
Ergg, Bad pointer!
 
template<typename TVertex> void Primitive<TVertex>::Begin(ushort pVertices, ushort pIndices) { vertexCount = 0; indexCount = 0; TVertex *vertex = new T...
[4 replies] Last: Hmm... okay. (by fruitloop2222)
by dp08
Segmentation Fault
 
I am trying to create a binary search tree. The program compiles but when I run it I get a segmentation fault error. If somebody could please show me exactly wh...
[1 reply] : You've made a rod for your own back with your impenetrable use of poin... (by kbw)
by miand
SDL Linker error
 
Hey. I'm trying to learn to make game in SDL and so I'm working on to make sound. but when I want to compile it I get trouble http://www.pictureshoster.com/f...
[3 replies] Last: its an option you would need to use in the command that does the compi... (by kotoro)
by nowiks
Problem with exercise Thinking in C++.
 
Hello. I have problem with one exercise from Thinking in C++. Exactly chapter 7, exercise 11. There is command to create function bool moved() which return...
[1 reply] : This is talking about the Mem class that is in the first part of that ... (by kooth)
by xwilx
C++ using a library in C
 
In my C++ program, I need to use a data structure defined in a C library that I cannot modify. I will explain my question will a simplified example: In test....
[3 replies] Last: declare struct L2 and struct L3 in your code. struct L2; struct L3... (by rocketboy9000)
by SjL721
Character Count Program
 
I have this character count program that takes the Gettysburg Address from an input file and is supposed to count how many of each letter there are. Problem is ...
[2 replies] Last: When I do this it simply does nothing and just says press any key to c... (by SjL721)
by wtf
An interesting post.
 
http://www.cplusplus.com/forum/windows/10731/ That topic has already been closed, but I wanted to ask, what If I wanted to do the same thing, but still be ab...
[no replies]
convert file.data into file.text or file.xml (better)
 
dear all, I created a file.dat whit this function int writeData(double* v, int length, FILE* fh) { FILE *Stream; //Stream for output. ...
[no replies]
December 2010 Pages: 1... 1415161718... 24
  Archived months: [nov2010] [jan2011]

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