- 博客(3)
- 收藏
- 关注
转载 C语言string常用函数源代码及使用
1 memcmp ( ) /* -- C语言库函数源代码 - */ 2 /* 3 Compares count bytes of memory starting at buffer1 and buffer2 and find if equal or which one is first in lexical order. 4 比较内存区域...
2013-08-08 23:06:00 174
转载 std::vector 值得一提错误
std:: vector 你会使用吗? 下面我们来看个简单的代码吧: View Code 1 #include <iostream> 2 #include <vector> 3 4 using std::vector; 5 using std::cout; 6 using std::endl; 7 8 ...
2013-04-10 22:39:00 119
转载 一个易犯的条件运算符错误
#include<stdio.h>int main() { int a=1,b=0; a=1?a=3:b=4; printf("%d,%d\n",a,b); return 0; } ~/myprotects$ gcc hello.c -o hellohello.c: 在函数‘main’中:hello.c:5:12: 错误: 赋值运算的左操作数必须是左值份额符...
2013-03-29 08:38:00 80
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人