摘要:
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( 阅读全文
摘要:
http://www.w3school.com.cn/php/php_functions.asp 阅读全文
摘要:
#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 阅读全文
摘要:
隐藏名字为HGE的窗口HWND h=FindWindow(NULL, "HGE"); ShowWindow(h,SW_HIDE);linux 守护进程产考http://www.cnblogs.com/xiaouisme/archive/2012/08/07/2627456.html 阅读全文