Nov 8, 2014 at 4:57pm
#include <iostream>
#include <windows.h>
using namespace std;
char Map[10][10] = {"#########",
"#@ #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"# #",
"#########"};
int Gamespeed = 100;
int Level = 0;
bool stopgame = false;
int main()
{
while(stopgame == false)
{
system ("cls")
for (int y = 0; y < 10; y++)
{
cout << Map[y] << endl;
}
Nov 8, 2014 at 4:57pm
I get errors when trying to compile it
Nov 8, 2014 at 5:36pm
Please add code tags. See the <> to the right when you are creating or editing your message.
Pick an indentation style and use it. If you do, you will see some errors.
What in the while loop will change the value of stopgame?
After you have done the above, what errors are you still getting? Make sure to copy and paste the full error so the line number is included.
Last edited on Nov 8, 2014 at 5:37pm