Thread: Need help with my code

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2020
    Posts
    4

    system("pause")

    I put the system("pause") beacuse If I don't put here, for example:
    Code:
    }else if (points_pc == 7.5){
                printf("The PC won");
                system("pause") ;
               }
    
    it reads the follow line
    Code:
    printf("Do you want another card? (Press 1 if you want it)\t");
    scanf("%d", &key);
    

    even though the game is clearly over

    Last edited by BatteryLife; 12-01-2020 at 02:59 AM. Reason: beacuse I wrote it wrong before

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-19-2012, 01:58 PM
  2. Replies: 1
    Last Post: 03-10-2010, 11:28 AM
  3. Replies: 14
    Last Post: 04-01-2008, 02:23 AM
  4. producing c/c++ code from flowcharts,pseudo code , algorithims
    By rohit83.ken in forum C++ Programming
    Replies: 3
    Last Post: 02-20-2008, 07:09 AM
  5. Replies: 0
    Last Post: 02-21-2002, 06:05 PM

Tags for this Thread