Whats wrong with my program?

This is a discussion on Whats wrong with my program? within the C++ Programming forums, part of the General Programming Boards category; It compiles successfully but when I actually run the program an error comes up. I'm using Dev-C++....

  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++.
    Attached Files Attached Files

  2. #2
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    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.
    MSVC++ 6.0

  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,136
    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 Ruflano@hotmail.com

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, 01: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, 01: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, 04:09 PM

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