c++ 语言 这个code 无语法错误 为什么跟我表达的意思不一样 求大神指点
#include <iostream>using namespace std;
int runMenu()
{
cout << endl;
cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << endl;
cout << " The amazing story generator " << endl;
cout << endl;
cout << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << endl;
cout << " [0] end testing the program " << endl;
cout << " [1] display 'about' information " << endl;
cout << " [2] read and store data from field " << endl;
cout << " [3] generate a random story line " << endl;
cout << " [4] save a story line to file " << endl;
cout << " [5] load saved story lines from file " << endl;
cout << "which option would you like (0-5): " << endl;
}
int main()
{
runMenu();
cin >> option;
if (option == 0)
{
cout << "bye" << endl;
system("pause");
return 0
}
else if ((option == 1) | (option == 'I'))
{
displayInfo();
}
return 0;
system("pause");
}
c++ 萌新 问的问题可能比较低级 望见谅 谢谢
还有一个问题 最近老是碰到 路径不对是怎么个回事??
求解决方法 谢谢!!