摘要: 1 #include 2 3 using namespace std; 4 5 int count = 1; 6 7 int record( int x); 8 9 extern int main01() 10 { 11 cout << record(5);; 12 return 0; 13 } 14 15 int record( int x) 16... 阅读全文
posted @ 2016-06-16 15:32 岑小良 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 using namespace std; 4 5 6 void test() 7 { 8 cout << "test with no arguments\n"; 9 } 10 void test2(int a) 11 { 12 cout << "test with one arguments "<< a <<"\n"; 13... 阅读全文
posted @ 2016-06-12 16:00 岑小良 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 using namespace std; 4 5 const int Len = 66; 6 const int Divs = 6; 7 8 void Subdivide(char ar[], int low, int high, int level); 9 10 extern int main01() 11 { 12 char ... 阅读全文
posted @ 2016-06-03 17:11 岑小良 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 void countdown(int n); 6 7 extern int main01() 8 { 9 countdown(4); 10 return 0; 11 } 12 13 void cou 阅读全文
posted @ 2016-06-03 14:47 岑小良 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <process.h> #include <sys/types.h> int main() { pid_t pid; pid = getpid(); printf("%d\n" ,pid); getchar(); } 阅读全文
posted @ 2016-04-25 10:48 岑小良 阅读(98) 评论(1) 推荐(1) 编辑