My question is do you have to be good at math to be a good programer?
Here's my first error:been
legion\scores.cpp(99): Error! E029: col(25) symbol 'getline' has not
declared
for (i = 0; !ins.eof ( ) && i < 10; i++)
{
getline (ins, top_five[i].name, '#');
ins >> top_five[i].score;
eatwhite(ins);
ins >> top_five[i].tnclass;
eatwhite(ins);
}
I don't understand this one.
Nightfox wrote to Jon Justvig <=-
Here's my first error:
legion\scores.cpp(99): Error! E029: col(25) symbol 'getline' has not
been
declared
for (i = 0; !ins.eof ( ) && i < 10; i++)
{
getline (ins, top_five[i].name, '#');
ins >> top_five[i].score;
eatwhite(ins);
ins >> top_five[i].tnclass;
eatwhite(ins);
}
It doesn't know about 'getline'. You can do either of the following:
- Prefix that call with std:: - Example:
std::getline(ins, top_five[i].name, '#');
- After your #include lines, put "using std::getline;" (without the double- quotes)
Also, be sure to #include <string>
This is for the first idea:
leg034.cpp(42): Error! E921: col(18) namespace 'std' not allowed in using-declaration
leg034.cpp(42): Error! E006: col(11) syntax error; probable cause: missing ';'
Re: Programming Is Like tryin
By: Jon Justvig to Nightfox on Mon Dec 28 2015 18:22:00
Can you post the code that is generating those errors? It's difficult to help without seeing the code (what's at columns 18 and 11?). This is what it should look like (underneath your #includes and before your functions):
using namespace std;
It looks like the compiler knows about namespaces, so I'm not sure why std would not be allowed (unless perhaps it's an older compiler and its headers don't declare the standard library things in the std namespace).
Interesting to read all the comments here about different languages. I remember the old
programing days of BASIC.. If you didn't have any ROMS to plug in you tried to learn from
the book. I've tried to learn CW I get too bored with it move on to something else.. It has to
be something you like to stay interested. I don't think I could learn on my own. I took RPG
in college shorlty after RPG has become obsolete.
My question is do you have to be good at math to be a good programer? I have always liked Linux I would say I'm pretty good with config files. Doesn't make you a
programer. Makes you above the average user. I can't beleive all the public source code
available. I can't imagine all the time people spend typing that stuff in and as a everyday
user of portage <gentoo source tree> I thank you for all the time. I compile source code
about everyday. What is it about watching a compiler that is addictive verses gaming.
Anyway Thanks to all the programers out there..
---
� Synchronet � Draconian BBS - Boone, Iowa
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 579 |
Nodes: | 8 (0 / 8) |
Uptime: | 01:33:29 |
Calls: | 10,740 |
Files: | 5 |
Messages: | 444,497 |