Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ria
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> using namespace std; int day =30; int guess; char name [20]; int main() { cout <<"welcome to birthday guessing"<< endl; cout << "enter your name "<< endl; cin >> name; cout << name <<"try to guess the day khawla was born .\n\n"; cin >> guess; if (guess !=day) { cout << "Oops:(... wrong answer,\ntry again :)\n\n" << endl; main(); } else { cout << "correct!"<< guess << " is correct . \nyou won \n"<< endl; cout << "thanks you for playing\n\n" << endl; } return 0; }
run
|
edit
|
history
|
help
0
dynamic_cast in assert Causing Error
student.h
new
Workaround for https://github.com/Project-OSRM/osrm-backend/pull/4385
hangman
typeid VC++
Operators overloading
Computing factorial of an integer with recursion and iteration
"Mostly invalid states" and unordered_set
Two-phase sample with Visual C++ 2015