I'm getting a few error codes on this part of my lab. I showed it to another colleague and he said that it should work as written. Maybe one of you can see the error that I'm missing. I'd love to be done with it and get it turned in.
//*****************************************************************************
// BEGINNING OF PROGRAMMING CODE
//*****************************************************************************
/* there's a bunch of other functions here, but they aren't part of the problem so I'm going to save space and not include them here */
void centerLine(const string &text, unsigned int lineLength)
// this prints out a pretty center bar line
{
cout << setw.((text.length() + lineLength) /2) << text << endl;
}
void printDoubleHorizontalLine(unsigned int lineLength)
// they're actually '=' characters, but they look like double lines
{
char currentFill = cout.fill('=');
cout << setw(lineLength) << '=' << endl;
cout.fill(currentFill);
}
/*
ERRORS
1>------ Build started: Project: IOpractice, Configuration: Debug Win32 ------
1>Build started 11/13/2010 12:23:51 PM.
1>InitializeBuildStatus:
1> Touching "Debug\IOpractice.unsuccessfulbuild".
1>ClCompile:
1> SphereFunctions.cpp
1>c:\users\mommabear\documents\visual studio 2010\projects\215\new folder\iopractice\iopractice\spherefunctions.cpp(103): error C2059: syntax error : '('
1>c:\users\mommabear\documents\visual studio 2010\projects\215\new folder\iopractice\iopractice\spherefunctions.cpp(109): error C2228: left of '.cout' must have class/struct/union
1> unable to recover from previous error(s); stopping compilation
1> Lab2Main.cpp
1> Generating Code...
1>
1>Build FAILED.
1>
*/