| Compiler is twitching at me. |
by Llyr |
2002-08-28 14:28:52 |
Incomprehensibly. My (short test) program:
#include <iostream.h>
int main() {
int t = 0;
for(t, t < 10, ++t){ //this is the line it says I have problems with
cout << t << endl;
}
return 0;
}
The error message it gives me is "parse error before ')'", whatever the heck that means. My syntax seems to be correct, so what am I doing wrong?
Spencer |
|
[ Reply ] |
|
Two problems: | by nhaggin | 2002-08-28 14:31:00 |
|
ah, danke! (n/t) | by Llyr | 2002-08-28 14:32:14 |
|
New problem: | by Llyr | 2002-08-28 14:35:43 |
|
Use the debuger, and step through... | by Ston | 2002-08-28 14:37:40 |
|
cin>> | by Ston | 2002-08-28 14:38:52 |
|
Never mind, I figgered it out | by Llyr | 2002-08-28 14:40:12 |
|
Correctness corollary | by nhaggin | 2002-08-28 14:46:55 |
|
And a small correction... | by nhaggin | 2002-08-28 14:50:20 |
|
bloodshed dev c++... | by Llyr | 2002-08-28 14:52:50 |
|
New problem | by Llyr | 2002-08-28 14:53:17 |
|
Clarify, please... (n/t) | by nhaggin | 2002-08-28 14:54:47 |
|
Okay | by Llyr | 2002-08-28 15:00:53 |
|
Send me the source for the setHours function. | by nhaggin | 2002-08-28 15:03:33 |
|
How's about I posts it? | by Llyr | 2002-08-28 15:07:53 |
|
All righty then... | by nhaggin | 2002-08-28 15:17:20 |
|
Then wouldn't I have to declare | by Llyr | 2002-08-28 15:19:48 |
|
Well... | by nhaggin | 2002-08-28 15:24:13 |
|
It's giving me | by Llyr | 2002-08-28 15:27:40 |
|
Oh, and | by Llyr | 2002-08-28 15:30:28 |
|
OK. | by nhaggin | 2002-08-28 15:34:28 |
|
Ohh! That's what I've been doing wrong! | by Llyr | 2002-08-28 15:36:11 |
|
Shoot, it still doesn't work... | by Llyr | 2002-08-28 15:39:42 |
|
okay know you've confused me | by ToLazyToThink | 2002-08-28 18:41:25 |
|
No | by ston | 2002-08-28 18:51:40 |
|
that or throw an exception | by ToLazyToThink | 2002-08-28 19:08:51 |
|
what does your header file look like? | by ToLazyToThink | 2002-08-28 15:46:39 |
|
Here it is | by Llyr | 2002-08-28 16:34:15 |
|
shouldn't your getters... | by ToLazyToThink | 2002-08-28 18:43:34 |
|
Void is my friend... | by Llyr | 2002-08-28 19:19:10 |
|
I get it.... | by ToLazyToThink | 2002-08-28 19:24:36 |
|
That is... | by nhaggin | 2002-08-28 15:01:48 |
|
Now wait. Is there an existing time class? (n/t) | by Llyr | 2002-08-28 15:04:25 |
|
Not that I know of. (n/t) | by nhaggin | 2002-08-28 15:18:05 |
|
GOOD. (n/t) | by Llyr | 2002-08-28 15:20:06 |
|
hmmm.. | by MrTrick | 2002-08-28 17:15:39 |