当我尝试用g ++进行编译时,该程序给了我一个错误的全屏幕,但我甚至没有启动硬件部分。只是印刷说明。这里有什么问题?C++基本功能程序不会编译出现错误的屏幕
/* 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;
}
有什么错误? –
在图像中提供重叠。 http://imageshack.us/g/829/39224773.png/ –