///////////////////////////////////
// Map rendition //
// for //
// rouge RPG //
// This program is under the//
//GPL Public License you may mod //
//it as you see fit. -Noah Klabo //
///////////////////////////////////
//standard librarys
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <cstdlib>
#ifndef _RENDER_
#define _RENDER_
usingnamespace std;
///////VARIABLES///////
string input;
int refresh()
{
system("clear");//this is a linux command, I have no idea what the Windows equivalent is
}
int screen() //screen function displays,revives and clears the screen.
{
cout << drawmap();
getline(cin, input);
navigate();
refresh();
}
//day one finished!
#endif
///////////////////////////////////
// Navigation subroutines //
// for //
// rouge RPG //
// This program is under the//
//GPL Public License you may mod //
//it as you see fit. -Noah Klabo //
///////////////////////////////////
//standard librarys
#include <iostream>
#include <fstream>
#include <iomanip>
#include <string>
#include <cstdlib>
#ifndef _NAVIGATION_
#define _NAVIGATION_
usingnamespace std;
///////VARIABLES///////
int location = 1;
int navigate() //I am aware of how crude this navigation system is, but it works.
{
cin >> location;
if (location == 1)
{
pix1 = 1;
}
if (location == 2)
{
pix2 = 1;
}
if (location == 3)
{
pix3 = 1;
}
if (location == 4)
{
pix4 = 1;
}
if (location == 5)
{
pix5 = 1;
}
if (location == 6)
{
pix6 = 1;
}
if (location == 7)
{
pix7 = 1;
}
if (location == 8)
{
pix8 = 1;
}
else
{
cout<< "Could you repeat that?";
}
}//FIXME //not finished
#endif
The first thing you need to look up is arrays. That should shrink all this code down to about a dozen lines, then you can worry about any other errors if they still exist after the fix.