开发者

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

开发者 https://www.devze.com 2023-04-12 06:32 出处:网络
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?

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;
}


Here's one problem:

<< endl < endl;

It should be:

<< endl << endl;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号