Revision history for C
Additions:
=====""C/C++""=====
Deletions:
Additions:
<u style="display: none;">... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... no changes ... Thanks!!! Links: <a href='http://www.areaseo.com'>pagerank main</a> : [http://www.areaseo.com improve pagerank default] - [HTTP://www.areaseo.com improve pagerank default] : [PageRank 11|http://www.areaseo.com] - [PageRank 11|HTTP://www.areaseo.com] : http://www.areaseo.com/improvepr/ : [[http://www.areaseo.com google rank 20]] : [[http://www.areaseo.com | pagerank 5]] : "online pr16" http://www.areaseo.com : [http://www.areaseo.com|google pr] </u>=====""C/C++""=====
Deletions:
Additions:
==程序crash的返回值==
程序crash以后的返回值的低8位是0, 既可以用
%%(C) int retValue;
retValue = system("./a.out");
if ( !retValue && ! (retValue && 127)) {
/* Oh, my god, the ./a.out is crashed...*/
}
%%
程序crash以后的返回值的低8位是0, 既可以用
%%(C) int retValue;
retValue = system("./a.out");
if ( !retValue && ! (retValue && 127)) {
/* Oh, my god, the ./a.out is crashed...*/
}
%%
Additions:
open()和close(), malloc()和free(), connect()和close()要成对出现,防止导致资源泄露。
Deletions:
Additions:
==注意分配和释放资源==
open()和close(), malloc()和free(), connect()和close()要重复出现,防止导致资源泄露。
open()和close(), malloc()和free(), connect()和close()要重复出现,防止导致资源泄露。
Additions:
==== Unit Test Frameworks ====
先收集一些,再作比较测试
1) http://cutest.sourceforge.net/
1) http://check.sourceforge.net/
1) http://www.falvotech.com/projects/cut.php
==== Tips ====
==千万不要用strcpy==
先收集一些,再作比较测试
1) http://cutest.sourceforge.net/
1) http://check.sourceforge.net/
1) http://www.falvotech.com/projects/cut.php
==== Tips ====
==千万不要用strcpy==
Deletions:
Additions:
=====""C/C++""=====
Deletions:
Additions:
=====C/C++=====