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 Help into understanding this error will be greatly appreciat...
[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 E*logV time? Thanks in advance.
[no replies]
Is this a bug in MinGW compiler?
 
For a base class and a derived class: class MyBase { public: double mynum; }; class MyDerived : public MyBase { void start(); }; Now the weird thi...
[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 labeled as the "main loop" Specifically the receiving and sendin...
[no replies]
Solve this please....
 
What is the mistake which should be remove to work the following program ok.Remember the class userDetails is templated and for this the error is shown by the c...
[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 the day into the program, the day comes up as 1 every time. s...
[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, then reads them out again as letters and converts them to an in...
[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: // ifstream constructor. #include <iostream> #include <fstream> usi...
[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 trying to set up some of the main functions. ◦ If this life...
[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 come across a few errors, which i can't understand why. H...
[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> *objForCAffairs; and then: cin>>(*sizeG); objFo...
[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. Any help would be much appreciated. // lab5.cpp : Define...
[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 hit of the paddle I will post the code because I really am ...
[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 derived classes. Everything to do with the derived classes is sor...
[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 the operator needs to be overloaded to accomplish this. ...
[no replies]
by viliml
template inside a tempate
 
It there any difference between, for example template </*something*/> template</*something else*/> /* your function or class that uses those templates*/ a...
[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 function: template<class _TYPE, class _VALUE> avltree<_TYP...
[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" what should I do?
[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.