Hi...i'm getting many (at least 10) parse errors in my program. First of all, i have no idea what 'parse' is.
an example of code, then my error follow. I'm only including one function of the program, all parameters (variables) are properly declared and sent; the function is not overloaded
//----------------------------------------------
/*This function will print out a line of text that simulates a racetrack; pgap is the space on the left before the track, the sides of the track are ^^, the car in the track is @, and gap1 and gap2 are the amount of spaces between the car and side of the track on the left and right, respectively.
Include files currently in use:
#include <iostream.h>
#include <conio.h>
#include "rando.h"
note: only member fucntions from iostream are used in this function (cout)
numbers on left are line numbers; they are not included in my origional code
string literals are in red (excluding the quotes), comments in blue*/
void Printline (int pgap,int gap1,int gap2)
//gaps are all >= 0
//next line of game output
{
int loop;
/*92*/ for (loop=1,loop<=pgap,loop++)
/*93*/ cout<<" ";
/*94*/ cout<<"^^";
/*95*/ for (loop=1,loop <= gap1,loop++)
/*96*/ cout<<" ";
/*97*/ cout<<"@";
/*98*/ for (loop=1,loop <= gap2,loop++
/*99*/ cout<<" ";
/*100*/ cout<<"^^"<<endl;
/*101*/ }
//----------------------------------------------
the error i'm getting is
line 92 : parse error before `)'
line 95 : parse error before `for'
line 99 : parse error before `<'
line 101: parse error before `}'
any solutions?
an example of code, then my error follow. I'm only including one function of the program, all parameters (variables) are properly declared and sent; the function is not overloaded
//----------------------------------------------
/*This function will print out a line of text that simulates a racetrack; pgap is the space on the left before the track, the sides of the track are ^^, the car in the track is @, and gap1 and gap2 are the amount of spaces between the car and side of the track on the left and right, respectively.
Include files currently in use:
#include <iostream.h>
#include <conio.h>
#include "rando.h"
note: only member fucntions from iostream are used in this function (cout)
numbers on left are line numbers; they are not included in my origional code
string literals are in red (excluding the quotes), comments in blue*/
void Printline (int pgap,int gap1,int gap2)
//gaps are all >= 0
//next line of game output
{
int loop;
/*92*/ for (loop=1,loop<=pgap,loop++)
/*93*/ cout<<" ";
/*94*/ cout<<"^^";
/*95*/ for (loop=1,loop <= gap1,loop++)
/*96*/ cout<<" ";
/*97*/ cout<<"@";
/*98*/ for (loop=1,loop <= gap2,loop++
/*99*/ cout<<" ";
/*100*/ cout<<"^^"<<endl;
/*101*/ }
//----------------------------------------------
the error i'm getting is
line 92 : parse error before `)'
line 95 : parse error before `for'
line 99 : parse error before `<'
line 101: parse error before `}'
any solutions?