Thread: How to convert angle degrees into radians

  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

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, 01:15 PM
  3. sin() and cos() that use degrees
    By dwks in forum C Programming
    Replies: 3
    Last Post: 05-14-2005, 04: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, 02:21 AM