| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1393 人关注过本帖
标题:c++ 语言 这个code 无语法错误 为什么跟我表达的意思不一样 求大神指点
取消只看楼主 加入收藏
lche361
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2019-6-28
收藏
 问题点数:0 回复次数:0 
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++ 萌新 问的问题可能比较低级 望见谅 谢谢
还有一个问题 最近老是碰到 路径不对是怎么个回事??
求解决方法 谢谢!!
搜索更多相关主题的帖子: c++ 语言 表达 cout option 
2019-06-28 15:40
快速回复:c++ 语言 这个code 无语法错误 为什么跟我表达的意思不一样 求大神指 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011975 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved