摘要: #include<iostream> #include<string> usingnamespacestd; inlinestringdbtest(inta);//函数原形声明为inline即:内联函数 voidmain() { for(inti=1;i<=10;i++) { cout<<i<<":"<<dbtest(i)<... 阅读全文
posted @ 2010-03-10 23:11 greencolor 阅读(211) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, char *argv[])== int main(int argc, char **argv)char *argv[] = {"hello","hi"}; char argv[] = {'h','e','l','l','o','h','i'};char *argv[]//是一个数组,存储char指针 char argv[] //是一个数组,存储charargc... 阅读全文
posted @ 2010-03-10 22:29 greencolor 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Install ApacheTo start off we will install Apache.1. Open up the Terminal (Applications > Accessories > Terminal).2. Copy/Paste the following line of code into Terminal and then press enter:sudo... 阅读全文
posted @ 2010-03-10 12:15 greencolor 阅读(198) 评论(0) 推荐(0) 编辑