Thread: Whats wrong with my program?

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    106

    Whats wrong with my program?

    It compiles successfully but when I actually run the program an error comes up. I'm using Dev-C++.

  2. #2
    Registered User samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Newport
    Posts
    382
    Well, I got 5 errors in compilation:

    cannot find conio.h
    undefined: sinese1, sinese2, sinadd and tissue.

    i commented out conio.c and declared the vars as globals. The program then proceeded to tell me that 3+4 was 0.
    Current Setup: Win 10 with Code::Blocks 17.12 (GNU GCC)

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    >cout << sinese1 << " + " << sinese2 << "= " << sinadd;

    cout << sinese1 << " + " << sinese2 << "= " << sinese1+sinese2;

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Code:
    switch(mainresponse) {
     case 1:
       //do whatever
    }
    
    switch(mainresponse){
     case 2:
      //do whatever
    }
    should be condensed into

    Code:
    switch(mainresponse){
     case 1:
       //do whatever
      case 2:
        //do whatever
    }

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    106

    can someone......

    can someone revise it and e-mail it to me at [email protected]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Maze Program - What am I doing wrong?
    By Gipionocheiyort in forum C++ Programming
    Replies: 20
    Last Post: 08-02-2007, 01:31 PM
  2. Replies: 5
    Last Post: 01-13-2007, 02:14 AM
  3. What is wrong with my code? My first program......
    By coreyt1111 in forum C++ Programming
    Replies: 11
    Last Post: 11-14-2006, 02:03 PM
  4. Whats wrong with this program - Output of a series
    By duffmckagan in forum C Programming
    Replies: 2
    Last Post: 07-26-2006, 09:57 AM
  5. Whats wrong with my program?
    By Ruflano in forum C++ Programming
    Replies: 5
    Last Post: 02-21-2002, 05:09 PM