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
#22.2
copy
Copy_and_base
seh exception in constructor memory leak
Adaptive return type
pi
masodijegy.cpp
kkk
MSVC14 <exception> header
SFINAE with std::enable_if