General C++ Programming - April 2012 (Page 8)

error C2228: left of '.Symbol' must have class/struct/union
 
I continue getting this same error:error C2228: left of '.Symbol' must have class/struct/union Any ...
[1 reply] : In the future, try to put your code in code tags. They show up as "<>... (by doug4)
Prim's Algorithm Implementation Help
 
Can anyone implement the prim's algorithm code using binary heap (SET or PRIORITY_QUEUE in STL) with...
[no replies]
Is this a bug in MinGW compiler?
 
For a base class and a derived class: class MyBase { public: double mynum; }; class MyDerived...
[15 replies] Last: [quote=cire] Usually such issues should also be enforced by the use of... (by TheDestroyer)
Multiuser chat server
 
This code is from http://beej.us/guide/bgnet/ I don't understand what is happening in what he label...
[no replies]
Solve this please....
 
What is the mistake which should be remove to work the following program ok.Remember the class userD...
[2 replies] Last: Thanks peter solved. (by bond5611)
newDay help! urgent! due today!!!
 
Hey everyone. I'm almost finished with my newDay program... with 1 small problem. whenever i input t...
[2 replies] Last: thanks for the help! it helped a tad... but you were right, i had many... (by xSteely)
Reading/Writing data to a file
 
Hi, I'm trying to make a basic program that writes a number to a file as a series of letters, the...
[3 replies] Last: Sorry, I forgot to wipe the file's data; it works perfectly now. Than... (by hnefatl)
Trying to get a text file into an array
 
Hello, I am trying to get a text file into an array, here is what I have as code: // ifstrea...
[3 replies] Last: Please use [co de][/co de] tags The problem is that you are writing... (by Bazzy)
by kemple
Ask a Friend lifeline class help
 
Trying to figure out this CallAFriend class, any suggestions? My code is set somewhat random just tr...
[no replies]
How do I call?
 
How do I call the parametrized constructor while creating pointer objects?
[2 replies] Last: Simply pass the arguments like Zhuge said. Note the difference between... (by incognito)
error list- simple math computation
 
Hello I just started a c++ class. I have no experience with programming so bear with me. I've co...
[1 reply] : This answer = 1+3+5+7+9+(2n - 1); Should be this answer = 1+3+5... (by htirwin)
Template Objects.
 
Guys i have template class and want to allocate memory dynamically for it. currentAffairs<string>...
[3 replies] Last: objForCAffairs is not a currentAffairs. It's a currentAffairs<string>.... (by Lachlan Easton)
by BotHH
Threading and pointers to structures
 
Hi, I can't get the values in my structure to come out it just seems to print the location in memory...
[2 replies] Last: Thanks man. I was trying args.id. thanks again (by BotHH)
by kjoshi
Collision problems. Urgent!
 
Hi guys posted last time, making a simple pong game as a coursework and cant seem to get the ball to...
[3 replies] Last: I have created the class for rectangle, and that all seems to be fine,... (by kjoshi)
by Irwoo
Function and arrays
 
How do you make a function accept an array and the size of the array as parameters?
[2 replies] Last: @buffbill: Umm.... I'm not sure what you were trying to do there? An ... (by ModShop)
Creating class object dynamically in a 'manager' class
 
So let's see if I can explain this right. I have an object manager class that handles a few deriv...
[4 replies] Last: Macros, people, macros! class Base {}; class MyClass1 : public Base {}... (by LB)
Sum of 2 values from map with string keys
 
Hey everyone. I'm trying to add the sum of 2 double values from a map who have a string key. I think...
[no replies]
by viliml
template inside a tempate
 
It there any difference between, for example template </*something*/> template</*something else*/...
[1 reply] : If by your first method you mean something like this template <type... (by guestgulkan)
template class function parameter errors
 
This is the class: template<class _TYPE, class _VALUE = int> class avltree; This is the fun...
[3 replies] Last: Seems to work fine for me. Simplified version below. idTree is a sta... (by rollie)
the break point will not currently be hit. invalid file line
 
in a c++ program I get this error: "the break point will not currently be hit. invalid file line" w...
[2 replies] Last: Thank you, I was looking for more sophisticated solution, I need that ... (by amiroops)
April 2012 Pages: 1... 678910... 49
  Archived months: [mar2012] [may2012]

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