Thread: so sorry

  1. #1
    Registered User
    Join Date
    Nov 2003

    Unhappy so sorry

    hello .
    I tryed to run your program jlou but I gave this error "declaration syntax error" in the third line (using name...).
    I tryed to to make it true but i didnt succeed .
    I have borland c++ 3.1 and I must write (.h) in headers name .
    my program is too simple , even it is funny . my calculator isn't programable and it is why I wrote this program . here it is :

    #include <iostream.h>
    #include <conio.h>

    int main()
    float a ;
    cin >> a ;
    a=a-(a*a*a-a-1)/(3*a*a-1) ;
    cout << "ans=" << a ;
    getch() ;
    return 0;

  2. #2
    Registered User
    Join Date
    May 2003
    Don't create a new thread, keep all replies in the original thread for easy viewing.

    Your compiler is also WAAAAY out of compliance with the C++ standards of today, so if you are serious about C++, I highly recommend you get a free or paid compiler that is C++98 compliant.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed