能打印自己源码的C程序的版本2
摘要:
版本2#include <stdio.h>;int main(){ FILE *f; char c; if ( ( f = fopen( __FILE__, "r" ) ) != NULL ) { while ( fread( &c, 1, 1, f ) == 1 ) fwrite( &c, 1, 1, stdout ); fclose( f ); } return 0;} 阅读全文
posted @ 2012-04-25 23:48 codestyle 阅读(169) 评论(0) 推荐(0)
浙公网安备 33010602011771号