- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 linux中描述符和标准IO流对文件的基本操作
在linux中,对于文件的操作可以使用文件描述符来对文件进行操作,也可以使用传统的标准的IO(即VC6.0中所对文件的操作),下面利用一个文件拷贝的程序使用两种方式展示两种文件操作的不同之处。 文件描述符方式: #include #include #include #include #include #include #include #define FilePat
2015-07-07 23:01:27 852 1
原创 Linux中验证CPU架构模式及变量类型段的查找
readelf -S 可执行文件 //查看段 vi 进入vi编辑器,三种模式: 命令模式 输入模式:底部有-insert-,按ESC回到命令模式 末行模式:在命令模式中,输入:进入末行模式。 :w 文件名 ---保存文件 :q! ---退出vi编辑器 :wq 文件名---保存强行退出 -bss 未初始化数据段 -data 可读数据段 -rodata
2015-07-06 00:03:55 467
原创 linux命令简单编译C代码
/*Linux命令*/ farsight@ubuntu:~$ cd /home/farsight/dir farsight@ubuntu:~/dir$ gedit test.c farsight@ubuntu:~/dir$ gcc -o testexe test.c farsight@ubuntu:~/dir$ ./testexe Enter the username:farsight
2015-07-05 01:25:31 516
原创 linux中简单编译C语言
/*Linux命令*/ farsight@ubuntu:~$ cd /home/farsight/dir farsight@ubuntu:~/dir$ gedit test.c farsight@ubuntu:~/dir$ gcc -o testexe test.c farsight@ubuntu:~/dir$ ./testexe Enter the username:farsight
2015-07-05 00:53:07 369
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人