|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 | |
|
Member (6 bit)
Join Date: Oct 2004
Posts: 38
|
Need some help with a code
Well after starting programing and reading all kind of tuts off the websites. I found a pretty cool one to do.. Well after writing it all out and compiling it i found a error and trying to fix it.. And i tryed everything but still couldnt fix it.. So i was hoping one of you programers that know a lot might be able to help me.
Code:
//Listing 20.2 static data members #include Quote:
Last edited by Josh2k4; 02-22-2005 at 09:06 PM. |
|
|
|
|
|
|
#2 |
|
Member (9 bit)
Join Date: Jan 2004
Location: Kansas City(westwood), KS
Posts: 458
|
I'm not sure what language this is, c++? I do java myself but they are pretty similiar. In line 6 it says "pubic:" is it suppoused to be "public:" public would be the keyword in java but it might be different here. But its a syntax error so its something like a mispelled word or misplaced :
|
|
|
|
|
|
#3 |
|
Member (6 bit)
Join Date: Oct 2004
Posts: 38
|
Im doing C++
|
|
|
|
|
|
#4 |
|
Member (9 bit)
Join Date: Jan 2004
Location: Kansas City(westwood), KS
Posts: 458
|
did you try what i suggested?
|
|
|
|
|
|
#5 |
|
Member (6 bit)
Join Date: Oct 2004
Posts: 38
|
Yep it worked
|
|
|
|
|
|
#6 |
|
Member (9 bit)
Join Date: Jan 2004
Location: Kansas City(westwood), KS
Posts: 458
|
I see you're still a little new, with only 30 posts. Its always good to report back and say what you did and how well it worked. That way the people helping know what happened for future reference and they can help more people, also they will know what your problem is solved.
--- colecifer ---
|
|
|
|
|
|
#7 |
|
Member (6 bit)
Join Date: Oct 2004
Posts: 38
|
Well after i done that i came accross more errors.. ANd my friend helped me.. While looking at the tut it was about cpas and something else.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|