摘要:
#include #include int main(){ int str[10] = {1,3,5,6,2,0,9,4,7,8}; // 1 2 5 6 9 // 0 3 4 7 8 int strTemp[10]; int i... 阅读全文
posted @ 2015-11-05 15:10
让编程成为一种习惯
阅读(151)
评论(0)
推荐(0)
摘要:
比如写出下面这段程序:for (int i = 0; i < n; ++i) do_something();然后用gcc编译,会报‘for’ loop initial declarations are only allowed in C99 mode的错误。原因是在循环条件中声明变量的话,只在C9... 阅读全文
posted @ 2015-11-05 15:09
让编程成为一种习惯
阅读(379)
评论(0)
推荐(0)
浙公网安备 33010602011771号