|
-
Sep 17th, 2001, 11:47 AM
#1
Thread Starter
Frenzied Member
VCPP hates me!!
what the hell
--------------------Configuration: SolveForX - Win32 Debug--------------------
Compiling...
Error spawning cl.exe
SolveForX.exe - 1 error(s), 0 warning(s)
Code:
#include <iostream.h>
int main()
{
char num1;
char num2;
char total;
char oper;
cout<<"what is number1/n";
cin>> num1;
cout<<"what is number2/n";
cin>>num2;
cout<<"what sign shall i use/n in the middle of the two?";
cin>>oper
cout<<"what is the total/n";
cin>>total;
cout<<"am i correct in saying that "<<num1<<oper<<num2<<"="<<total<<"?";
return 0
}
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Sep 17th, 2001, 02:22 PM
#2
Member
-
Sep 17th, 2001, 02:22 PM
#3
Member
And none here: return 0 you ol' VB programmer
-
Sep 17th, 2001, 02:32 PM
#4
Thread Starter
Frenzied Member
ok, still don't think thats giving me that error though...it doesn't even attempt to compile the code.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Sep 17th, 2001, 02:34 PM
#5
Thread Starter
Frenzied Member
nope, that didn't do a thing... anyone care to compile it and see if it works for them?? (it doesn't do anything but accept the input as of yet.)
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Sep 17th, 2001, 02:41 PM
#6
It works for me.
But your escape character is wrong. Use a backslash instead of a forward slash.
-
Sep 17th, 2001, 02:57 PM
#7
cl.exe is the compiler. If msdev is having trouble finding it, it means it's probably not there, or in the wrong place. I would re-install VC++.
Z.
-
Sep 17th, 2001, 02:58 PM
#8
Thread Starter
Frenzied Member
hm... its giving me errors in borland too (but its prolly cuz i've never used borland befor so im prolly screwing something up). I think ill try re-installing VC++ and seeing if that fixes it.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Sep 17th, 2001, 03:00 PM
#9
Thread Starter
Frenzied Member
yeah, thx zaei... i posted that id try re-installing right after you posted so i didn't see your post. It is where its supposed to be, i checked... i think it just don't like me. Well ill be back soon i gotta re-start and re-install.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Sep 17th, 2001, 03:17 PM
#10
Thread Starter
Frenzied Member
god damned piece of sh*t still won't work, i restarted, re-intalled, and still got the error!!!!!!!!!!
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Sep 20th, 2001, 03:48 PM
#11
Addicted Member
strange, it worked perfectly well for me too. Can't or shouldn't be the code, are you sure that you've installed everything correct? maybe something screwed up during installation.......?
-
Sep 22nd, 2001, 12:29 AM
#12
Fanatic Member
PHP Code:
#include <iostream.h>
int main()
{
int num1;
int num2;
int total;
char oper;
cout << "what is number1\n";
cin >> num1;
cout << "what is number2\n";
cin >> num2;
cout << "what sign shall i use\n in the middle of the two?";
cin >> oper;
cout << "what is the total\n";
cin >> total;
cout << "am i correct in saying that " << num1 <<
oper << num2 << "=" << total << "?";
return 0;
}
That worked for me Also, whenever you use cin, make sure to use cin.ignore() after that so you dont have any cariage return (\n or \r) on your cin buffer.
-
Sep 22nd, 2001, 01:38 PM
#13
Thread Starter
Frenzied Member
i got it almost working, i had to change the environmental settings because of a previous un-finished un-install.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|