General C++ Programming (Page 3)

Unions!
 
From my book: The use of Unions ➤You can use it so that a variable, A, occupies ...
[16 replies] Last: You don't have to use a union. Unions are a unique construct, so there... (by Framework)
dynamic memory allocation
 
I have an error saying expression must have a constant value could any one please help me out void ...
[11 replies] Last: heyy thank you soo much the nested std vector works, you really helped... (by ravi123)
Using a template class
 
Im just learning using class template but I keep getting error unable to match function definition t...
[10 replies] Last: You're right Peter87! I wonder if one can return a specific type of Ho... (by Bourgond Aries)
Dynamic Progamming
 
I am getting "Access violation reading location 0x029C4010."error while running this program though ...
[3 replies] Last: Thanks. I used a vector instead of array. (by Carolpp)
Compiler shows no errors, then 100+ errors
 
My compiler gives me no indication that there are errors until the program runs. The list of errors ...
[4 replies] Last: prototype: void questionAnswer(Questions , int); definition: void que... (by cdashdash)
Opengl simple blending problem
 
Stuck on things I shouldn't be stuck on as always :D. I have been messing around with glBlendFunc t...
[3 replies] Last: Seems to work fairly well basing everything off of alpha values instea... (by James2250)
Urgent, need help for final
 
I have no clue what to do, i have been working on this for the past 4 hours and still no clue. this ...
[1 reply] : What have you written so far? (by pogrady)
Class Inheritance
 
From my book: "There was a good reason to choose the version of the class CBox with public data mem...
[4 replies] Last: But I still dont understand what it means they are private to the base... (by Anmol444)
by Daleth
-0 Architect
 
So I had some code that would return -0, so I used a checker similar to this: if(result == 0) r...
[9 replies] Last: It worked correctly for me? It got rid of the -0, and when I compared ... (by Daleth)
Questions Game. Help Needed
 
I know this are quite simple errors but I'm having trouble resolving them. Any help would be appreci...
[5 replies] Last: Thanks for the help guys. On to the next phase of the program. Still h... (by cdashdash)
pointer to array element
 
Hello , everyone I just have a quick question as I cant find much on google about it. How would I g...
[5 replies] Last: Thanks alot Daleth that helped alot. (by otisphat80)
Binary Representation of a Number
 
Below code is for Binary Representation of a Number. This code works fine.....but i don't know why ...
[1 reply] : Was as confused as you were also, so I went ahead and printed the valu... (by Smac89)
Flesch bool
 
So I'm trying to write a program that counts the number of syllables, words, and sentences in a txt....
[3 replies] Last: There is just a warning there because if none of your if/else if state... (by James2250)
how would I mathematically check for a 3D point inside a volume?
 
In 2D I checked to see if a point was inside a shape by creating triangles between 2 neighbouring po...
[8 replies] Last: http://www.google.com/search?q=Sutherland-Hodgman+algorithm (by toum)
by bobr
Please help with this code (second part of code is in comments bellow)
 
can someone help me fine tune this code a little more!? this code converts units and uses pass by re...
[1 reply] : void weight_to_us(ConversionType conversion) { int kilograms,... (by bobr)
by ane
how to declare number of vectors dynamically
 
I need to declare the number of vectors according to an input parameter call NUM HOST. for example,...
[8 replies] Last: Is vs declared like on line 9 of Duoas' code? (by L B)
by yollo
Problems with saved matrices
 
Hello. I have this function: void GemFil2(double A4 ,double A8 ) { int j,i; ofstrea...
[no replies]
by bobr
Please Help
 
I am new to programing and I am in my first programing class. My teacher recently spoke about what h...
[4 replies] Last: " The Big Three ", or more commonly known as " The Rule of Three ", is... (by Framework)
by LunarB
C++ Winsock2 & pthreads: Accepting multiple clients?
 
Hey! So I'm still having troubles connecting multiple clients to my server. To break down what I ...
[9 replies] Last: Hi, It seems you do not know programming Multi-Threaded Application. ... (by SpaceWorm)
by bobr
Pass by Reference HELP PLEASE
 
Okay so in the code bellow I was suppose to use pass by reference though this was not listed in the ...
[6 replies] Last: Thanks for your help coolio! (by bobr)
Pages: 12345... 77
  Archived months: [mar2013]

Cannot post in this page. To post a new message, go to the first page.