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
Crow unordered_map Quiz
nontype template parameter produced with decltype for function
Graphs Iteration2 Directed Graphs
001
Arduino Bluetooth Periodiek Systeem
projecte1
function returning a function demo
return reference (clang)
specialized template
Diamond example