How to convert angle degrees into radians

This is a discussion on How to convert angle degrees into radians within the C++ Programming forums, part of the General Programming Boards category; Code: int main() { Program OMGDOIT; int y; C.exit = 1; while(C.exit == 1) { ....... ....... switch(y) { ........ ...

  1. #31
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    Code:
    int main() 
    {
         Program OMGDOIT; 
         int y;
         C.exit = 1;
         while(C.exit == 1)
         {
        
            .......
            .......
             
            
            switch(y)
            {         
             ........
             ........
            }
            clrscr(); //Clears screen maybe?
            }
                  
            return 0;
    }
    There you go... C.exit = 1,and while it is equal to 1 it continues

  2. #32
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So at the end of "case 7:" (before break) print the "C.exit" variable.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #33
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    Code:
     case 7: 
                          OMGDOIT.Case7();
                          OMGDOIT.TerminationPrevention();
                          OMGDOIT.RorQ();  
                          C.exit = 1;
    Like this I suppose?

  4. #34
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    Uhh...actually I found the problem...it has got nothing to do with C.exit or cin.ignore() or any of that crap...I forgot to put a break statement in Case 7 LOL

  5. #35
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You mean this one:
    case 7:
    OMGDOIT.Case7();
    OMGDOIT.TerminationPrevention();
    OMGDOIT.RorQ();
    break;
    [/code]
    It was in your original post, so I didn't look too carefully in the code you posted next - I should have...

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #36
    Cryptanalyst
    Join Date
    Sep 2007
    Posts
    52
    In my original post, I ADDED the break statement thinking why it wasn't there..if only I had the brains to look in my original code :P

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convert DegMinSec to Decimal Degrees
    By JacquesLeJock in forum C Programming
    Replies: 3
    Last Post: 11-21-2007, 11:59 PM
  2. Temperature conversion...
    By Onslaught in forum C Programming
    Replies: 3
    Last Post: 10-21-2005, 02:15 PM
  3. sin() and cos() that use degrees
    By dwks in forum C Programming
    Replies: 3
    Last Post: 05-14-2005, 05:29 PM
  4. Convert Char to Int Function
    By drdroid in forum C++ Programming
    Replies: 9
    Last Post: 02-19-2003, 12:53 PM
  5. Is this right
    By Granger9 in forum C Programming
    Replies: 6
    Last Post: 08-14-2002, 03:21 AM

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