All pastes #542256 Raw Edit

Theillbehaviored

public cpp v1 · immutable
·published 2007-06-05 19:39 UTC
rendered paste body
#include <cstdlib>#include <iostream>#include <string>using namespace std;int main(int argc, char *argv[]){    char command;    int location = 1;    while (location == 1) {             cout<<"Obvious Exits: East, West, North, South\nThis is a large damp room\n";             cin>>command;             else if (command == "e") {location = 2;}             else if (command == "w") {location = 3;}             else if (command == "n") {location = 4;}             else if (command == "s") (location = 5;}             else {cout<<"That is not a command\n";}     }     return EXIT_SUCCESS;}