Sam LaManna
Sam LaManna

Reputation: 425

C++ Basic function program wont compile with a screen worth of errors

This program is giving me a full screen of errors when i try to compile it with g++ but i didnt even start the hard part. Just printing instructions. What is wrong here?

/* Samuel LaManna
CSC 135 Lisa Frye
Program 2 Functions (Shipping Charges)
Calculate the shipping and total charge
for shipping spools of wire
*/

#include <iostream>

using namespace std;

void instruct();     //Function Declaration for instruction function

int main()
{
  instruct();     // Function to print instructions to user

  return 0;
}


/********************************************/
// Name: Instruct                            /
// Description: Print instructions to user   /
// Parameters: N/A                           /
// Reture Value: N/A                         /
/********************************************/

void instruct()
{
  cout << "This program will calculate the shipping information "
       << "for a batch of wire spools. " << endl < endl;

  return;
}

Upvotes: 0

Views: 122

Answers (1)

Mysticial
Mysticial

Reputation: 471339

Here's one problem:

<< endl < endl;

It should be:

<< endl << endl;

Upvotes: 4

Related Questions