Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
11/18
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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; }
clang++
Show compiler warnings
[
+
] Compiler args
[
+
]
Show input
fork mode
|
history
|
discussion