Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to make a c++ iostream program restart when finished

if (whatever condition)
    correct();
else
{
    incorrect();
    cout << "Enter y to restart: ";
    char c;
    cin >> c;
    if (c == 'y')
        continue;
    else
        return 1;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: friend class c++ 
Cpp :: c++ excel cell blank cells 
C :: hello word c 
C :: run time in c 
C :: find string in all files powershell 
C :: swapping of two numbers in c without temporary variable 
C :: how to get time and date in c 
C :: factorial in c 
C :: write in file in c 
C :: arma 3 get group size 
C :: c program for threaded binary tree 
C :: how to print hello world in c 
C :: send http request in C 
C :: see if two strings are equal in C 
C :: how to remove from a string c 
C :: libdvd-pkg: `apt-get check` failed 
C :: how to ban websites on mac 
C :: c float to string 
C :: how to print value of pointer in c 
C :: typedef pointer 
C :: how make a character in c scanf 
C :: c printing char pointer 
C :: c style string 
C :: isspace 
C :: to run Blazor project using CLI 
C :: c pointers 
C :: c convert string to size_t 
C :: continue statement in c 
C :: pygramid program in c 
C :: c strcmp 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =