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
34534
C++ Template
Copy uint64 data into uint32 with padding
C++ out of ref
ArrayList Example Starter Code 2
return reference (clang)
STL stack
Fundamentos de programación. Tema 7. Ejercicio 6.
Rounding float to nearest 1000
cv5_class