Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
11/18
//clang 6.0.0 #include <iostream> #include <vector> #include <string> using namespace std; int main() { cout << "Hello, what is your name?" << endl; string userName; cin >> userName; cout << userName << ", choose the Difficulty: " << endl << "Easy, Medium, or Hard" << endl; string gameDifficulty; cin >> gameDifficulty; if ((gameDifficulty == "Easy")||(gameDifficulty == "easy")) { cout << "easy" << "\n"; } if ((gameDifficulty == "Medium")||(gameDifficulty == "medium")) { cout << "medium" << "\n"; } if ((gameDifficulty == "Hard")||(gameDifficulty == "hard")) { cout << "hard" << "\n"; } //boardDisplay (int Array, int size){ // for(int i=0; i>0 ;i++){ //} // for(int j=0; j>0 ;j++){ // } // cout Array[i][j]; return 0; }
run
|
edit
|
history
|
help
0
mddd
non-deduced context
34534
Composite pattern
Variable declarations in while loop conditions are also C++-only.
GreedyProblem1
BucketSort
C++ Standard Template Library
template specialization inheritance problem
LOOL