code::blocks中的projects如何设定startup project
时间:2010-12-23
来源:互联网
我新建了一个console application工程,在main.cpp中输入:
#include <iostream>
using namespace std;
int main()
{
int a = 100, b = 99, c = 101;
int d = min(min(a, b),c);
int e = max(a, max(b, c));
cout << "minimum is there" << d << '\n';
cout << "maximum is there" << e << '\n';
return 0;
}
点Build,结果:
-------------- Build: Debug in prj ---------------
Compiling: main.cpp
Linking console executable: bin/Debug/prj
Output size is 63.11 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
但是我点Run,结果:
1: s'yntax error: word unexpected( expected ")")
这到底怎么回事呢,我的ubuntu10.04,codeblocks8.02的
#include <iostream>
using namespace std;
int main()
{
int a = 100, b = 99, c = 101;
int d = min(min(a, b),c);
int e = max(a, max(b, c));
cout << "minimum is there" << d << '\n';
cout << "maximum is there" << e << '\n';
return 0;
}
点Build,结果:
-------------- Build: Debug in prj ---------------
Compiling: main.cpp
Linking console executable: bin/Debug/prj
Output size is 63.11 KB
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
但是我点Run,结果:
1: s'yntax error: word unexpected( expected ")")

作者: icegirl914 发布时间: 2010-12-23
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28