+ -
当前位置:首页 → 问答吧 → code::blocks中的projects如何设定startup project

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的

作者: icegirl914   发布时间: 2010-12-23