SDL中 callback函数的参数各来自哪里?
时间:2010-01-13
来源:互联网
附件: |
![]() Screenshot.png [ 667.3 KiB | 被浏览 1687 次 ] |
作者: silver924 发布时间: 2010-01-13
作者: chairdog 发布时间: 2010-01-13
作者: luofeng1989 发布时间: 2010-01-13
附件: |
![]() Screenshot.png [ 611.9 KiB | 被浏览 1662 次 ] |
作者: silver924 发布时间: 2010-01-13
作者: sweating 发布时间: 2010-01-13
2.找本稍微新一点的c++的书,至少书中要是 #include<iostream>,而不是 #include<iostream.h>
作者: dbzhang800 发布时间: 2010-01-13
2.找本稍微新一点的c++的书,至少书中要是 #include<iostream>,而不是 #include<iostream.h>
私以为c++找书不一定好,因为就只是语法的话就那几个点
并且千万别找一本叫做c++ primer plus的书,这本书比c++ primer差很多私以为
如果真的找书还是c++ primer罢........
作者: sweating 发布时间: 2010-01-14
2.找本稍微新一点的c++的书,至少书中要是 #include<iostream>,而不是 #include<iostream.h>
gcc 是靠文件名后缀识别文件类型的,用 gcc 编译 c++ 程序并无不妥。只是链接的时候要指定 c++ 库。
只有两种情况下你需要使用 g++:
1。你使用了非标准的文件名后缀:例如你希望把你的 c++ 程序用 .c 结尾。
2。你不知道 c++ 的标准库叫什么名字。
作者: poet 发布时间: 2010-01-14
这本身就是gcc和g++的区别嘛

1。你使用了非标准的文件名后缀:例如你希望把你的 c++ 程序用 .c 结尾。
2。你不知道 c++ 的标准库叫什么名字。
恩,非标的文件后缀,仍可以用gcc,
gcc -xc++ file1.abc -lstdc++
g++ -xc++ file1.abc
作者: dbzhang800 发布时间: 2010-01-14
hello.cpp: In function ‘int main()’:
hello.cpp:6: error: ‘cout’ was not declared in this scope
hello.cpp:6: error: ‘endl’ was not declared in this scope
这是怎么回事啊


作者: silver924 发布时间: 2010-01-14
hello.cpp: In function ‘int main()’:
hello.cpp:6: error: ‘cout’ was not declared in this scope
hello.cpp:6: error: ‘endl’ was not declared in this scope
这是怎么回事啊


std::cout
std::endl
作者: BigSnake.NET 发布时间: 2010-01-14
hello.cpp: In function ‘int main()’:
hello.cpp:6: error: ‘cout’ was not declared in this scope
hello.cpp:6: error: ‘endl’ was not declared in this scope
这是怎么回事啊


std::cout
std::endl
或者用这种语法:
using namespace std;
作者: anticlockwise 发布时间: 2010-01-15
作者: liwangli 发布时间: 2010-01-15
hello.cpp: In function ‘int main()’:
hello.cpp:6: error: ‘cout’ was not declared in this scope
hello.cpp:6: error: ‘endl’ was not declared in this scope
这是怎么回事啊


std::cout
std::endl
或者用这种语法:
using namespace std;
其实私以为
using std::cout;
using std::endl;
也许更好
不过我还是觉得最好是std::cout和std::endl
作者: sweating 发布时间: 2010-01-16

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