Results 1 to 13 of 13

Thread: VCPP hates me!!

  1. #1

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943

    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

  2. #2
    No semicolon: cin>>oper

  3. #3
    And none here: return 0 you ol' VB programmer

  4. #4

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  5. #5

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  6. #6
    Megatron
    Guest
    It works for me.

    But your escape character is wrong. Use a backslash instead of a forward slash.

  7. #7
    Zaei
    Guest
    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.

  8. #8

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  9. #9

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  10. #10

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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

  11. #11
    Addicted Member
    Join Date
    Aug 2001
    Location
    I'm mobile
    Posts
    166
    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.......?
    [p r a e t o r i a n]

  12. #12
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    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.
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  13. #13

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    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
  •  



Click Here to Expand Forum to Full Width