so sorry

This is a discussion on so sorry within the C++ Programming forums, part of the General Programming Boards category; hello . I tryed to run your program jlou but I gave this error "declaration syntax error" in the third ...

  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    177

    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 :

    Code:
    code
    #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
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21