All pastes #257601 Raw Edit

Mirchiss

public cpp v1 · immutable
#257601 ·published 2006-11-25 15:26 UTC
rendered paste body
#include <iostream>using namespace std;int main (){  int map[10];  int i;  // Player location  int PL=5;  // Clean array  i=0;  while(i<10)  {map[i]=0; i++;}  // Set player location  map[PL]=1;  while(true)  {      i=0;      while(i<10)      {cout <<map[i]; i++;}      cout << endl ;      cout << endl ;      map[PL]=0;      // Key Input      char KI;      KI=0;      cin >> KI;            if(KI=='D' || KI=='d')        {++PL;}      else if(KI=='A' || KI=='a')        {--PL;}      else      {/*PL*/}        map[PL]=1;  }  cin >> i; }