2008年11月18日

gcc编译的东东

摘要: 1.分析普通的helloworld程序 先书写一下一个简单的helloworld程序如下:/* hello.c */int main(int argc, char * argv[]){return 0} 编译程序:gcc -o hello hello.c 等价的编译方法:gcc -c hel... 阅读全文

posted @ 2008-11-18 16:49 dhj 阅读(133) 评论(0) 推荐(0)

strchr

摘要: #include #include int main(void) { char string[15]; char *ptr, c = 'r'; strcpy(string, "This is a string"); ptr = strchr(string, c); if (pt... 阅读全文

posted @ 2008-11-18 16:18 dhj 阅读(170) 评论(0) 推荐(0)

行转列

摘要: SQL> select * from test;ID MC---------- -------------1 111111 222222 111112 222223 111113 222223 33333已选择7行。SQL> select id,ltrim(max(sys_connect_by_p... 阅读全文

posted @ 2008-11-18 14:28 dhj 阅读(147) 评论(0) 推荐(0)

导航