摘要: 1、将一整数逆序后放入一数组中(要求递归实现)#include <stdio.h>void convert(int *result, int n) { if(n>=10) convert(result+1, n/10); *result = n%10; } int main(int argc, char* argv[]) { int n = 123456789; int result[20]={}; convert(result, n); for(int i=0; i<9; i++) printf("%d", result[i]); getchar( 阅读全文
posted @ 2012-10-17 20:27 byfei 阅读(145) 评论(0) 推荐(0) 编辑
摘要: http://www.w3school.com.cn/php/php_functions.asp 阅读全文
posted @ 2012-10-17 19:56 byfei 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <sys/param.h>#include <sys/stat.h>#include <sys/types.h>#include <fcntl.h>#include <signal.h>void my_daemon(){ int pid, fd; // 1.转变为后台进程 if ((pid = fork()) == -1) exit(1); if (pid != 0) e 阅读全文
posted @ 2012-10-17 16:53 byfei 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 隐藏名字为HGE的窗口HWND h=FindWindow(NULL, "HGE"); ShowWindow(h,SW_HIDE);linux 守护进程产考http://www.cnblogs.com/xiaouisme/archive/2012/08/07/2627456.html 阅读全文
posted @ 2012-10-17 11:29 byfei 阅读(168) 评论(0) 推荐(0) 编辑