- 博客(21)
- 资源 (5)
- 收藏
- 关注
转载 利用函数启动另外的函数,将输入的字符串转化为大写
upper.c #include #include #include int main() { char ch; while((ch=getchar()) != EOF) putchar(toupper(ch)); exit(0); } usupper.c #include #include #include int main(int argc,c
2012-07-25 15:05:44 664
转载 file read and write
system read and write #include #include int main() { char a[128]; int nread; nread=read(0,a,128); if(nread==-1) write(1,"an err\n",10); if(write(1,a,nread) != nread) wr
2012-07-25 15:01:05 433
转载 makefile
computer 一个文件 main.c #include "mywin.h" #include extern GtkWidget *window; int main(int argc,char* argv[]) { gtk_init(&argc,&argv); my_interface(); my_connect(); gtk_widget
2012-07-25 14:51:12 486
转载 PIPE
PIPE1.C #include #include #include #include int main() { FILE* file; char buffer[BUFSIZ+1]; int chars_read; memset(buffer,'\0',sizeof(buffer)); file=popen("uname -a","r"); if
2012-07-25 14:47:47 446
转载 rc_example3
log.h #ifndef __LOG_H__ #define __LOG_H__ #include #include #include #include #include #ifndef _DEBUG #define _DEBUG 0 #endif #ifndef _SYSLOG #define _SYSLOG
2012-07-25 14:32:19 359
转载 rc_example2
button.c #include "button.h" enum { BUTTON_PRESS_SIGNAL, BUTTON_RELEASE_SIGNAL, LAST_SIGNAL }; static gint ctn_button_signals[LAST_SIGNAL] = {0}; void btn_press (GtkWidget *button, Gd
2012-07-25 14:31:37 446
转载 rc_example1
makefile CC = gcc CFLAGS = -g -O2 -Wall -D_DEBUG=1 -export-dynamic `pkg-config --libs --cflags gtk+-2.0 ` all: @${CC} ${CFLAGS} -Iinc *.c -o test clean : @rm -f demo test.c #
2012-07-25 14:30:51 422
转载 shell
shell1.sh #!/bin/bash #shell5 if test -w $1 then echo "writeable" else echo "unwriteable" fi if test -r $1 then echo "readable" else echo "unreadable" fi if test -x $1
2012-07-25 14:17:17 386
原创 signal
ctl_sig2.c #include #include #include #include void ouch(int sig) { printf("get the signal is %d\n",sig); printf("SIGKILL%d\n",SIGKILL); printf("SIGQUIT %d\n",SIGQUIT); } int main()
2012-07-25 14:11:38 511
原创 thread
thread1.c #include #include #include #include #include char message[]="hello"; void* th_fun(void *arg) { printf("the thread is runing,the arg is %s\n",(char*)arg); sleep(3); strcpy(me
2012-07-25 14:08:05 509
原创 timer
localtime.c #include #include main() { time_t temp; struct tm* p; time(&temp); p = localtime(&temp); printf("year %d\n",p->tm_year+1900); printf("month %d\n",p->tm_mon+1); printf("da
2012-07-25 14:06:23 394
原创 gtk by myself ------callback
buttonclick.c #include void on_clicked() { gtk_main_quit(); } int main(int argc,char* argv[]) { GtkWidget *window; GtkWidget *button; gtk_init(&argc,&argv); window=gtk_window_new(
2012-07-25 13:47:07 623
转载 汇编语言编译器 masm.exe and link.exe
http://download.csdn.net/detail/adengou/3446549
2012-07-18 10:33:57 2458
转载 动态网站的搭建
lamp Linux+Apache+Mysql+Perl/PHP/Python一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台。随着开源潮流的蓬勃发展,开放源代码的LAMP已经与J2EE和.Net商业软件形成三足鼎立之势,并且该软件开发的项目在软件方面的投资成本较低,因此受到整个I
2012-07-16 22:27:51 3364
转载 offer选择分析
大纲: 一、缘由、概述 二、创新工场的模式 三、职业发展道路的影响因素 四、职业选择的几个小问题 五、李开复的移动互联网和我眼中的移动互联网 六、再见和祝福 一、缘由、概述 1、缘由 前两周,有个师弟咨询我个offer选择——360产品经理offer和创新工场某团队产品经理。他说面试的时候,创新工场某面试官说在360
2012-07-16 21:57:04 6120
转载 经典书籍介绍
这里我把我认为的经典书籍做个整理..并附上相关的豆瓣链接..这个列表肯定不全..我会及时更新的.. 有的需要买..有的需要借..不过大都需要精读学习掌握 算法类: 算法导论 http://book.douban.com/subject/1885170/ 算法艺术与信息学竞赛 http://book.douban.com/subject/1154204/
2012-07-16 21:19:50 2782
转载 中国电商
国内著名电子商务网站: B2B 1、阿里巴巴 2、中国制造网 3、环球资源 4、数百亿网 5、慧聪网 C2C 1、淘宝 2、拍拍 3、百度有啊 4、易趣网 B2C 家电数码:京东商城、新蛋网、一点达、绿森数码、世纪电器城 家居摆设:多样屋、九洲鹿 美容护肤:致美网、NO.时尚广场、果皮网、sasa莎莎 服装配饰:麦考林、凡客、马萨
2012-07-16 16:50:31 2111
转载 next_permutation()实现全排序
#include #include #include void func(const char *str_in) { std::string str(str_in); std::sort(str.begin(),str.end()); std::cout do {
2012-07-02 15:34:14 491
转载 next_permutation()函数实现全排序
#include #include #include void func(const char *str_in) { std::string str(str_in); std::sort(str.begin(),str.end()); std::cout do {
2012-07-02 15:33:35 635
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人