05 2017 档案

摘要:参考文章详解stdin,stdout,stderr 阅读全文
posted @ 2017-05-31 09:25 杨来 阅读(1196) 评论(0) 推荐(0) 编辑
摘要:assert: assert.c:24: main: Assertion `fp' failed.已放弃 函数原型: #include <assert.h> void assert( int expression ); assert的作用是现计算表达式 expression ,如果其值为假(即为0) 阅读全文
posted @ 2017-05-29 20:23 杨来 阅读(577) 评论(1) 推荐(0) 编辑
摘要:1.参考:Linux系统编程 2.参考:制作简单计算器 3.参考:制作2048小游戏 4.参考:五子棋实现 阅读全文
posted @ 2017-05-29 15:14 杨来 阅读(743) 评论(0) 推荐(0) 编辑
摘要:命名为open_browser.py 存于\Data\Packages\User下注:url_map是将路径替换为域名,前面为路径,后面为域名。 2 ctrl+shift+p或者导航条 工具->命令面板调出命令面板 找到首选项:按键绑定-用户 如果是英文版的sublime找key Bindings 阅读全文
posted @ 2017-05-22 13:56 杨来 阅读(931) 评论(0) 推荐(0) 编辑
摘要:运行结果: 阅读全文
posted @ 2017-05-21 10:16 杨来 阅读(3145) 评论(0) 推荐(0) 编辑
摘要:1 /************************************************************************* 2 > File Name: scanf2.c 3 > Author: Mr.Yang 4 > Purpose:scanf演示 5 > Created Time: 2017年05月21日 星期日 09时28分55秒 6 *****... 阅读全文
posted @ 2017-05-21 09:39 杨来 阅读(660) 评论(0) 推荐(0) 编辑
摘要:1.范例:如果指令串太长的话,如何使用两行来输出?[dmtsai@study ~]$ cp /var/spool/mail/root /etc/crontab \> /etc/fstab /root “\Enter” (\加键盘回车)即可实现 2.ctrl+u ctrl+k 分别代表光标处往前和光标 阅读全文
posted @ 2017-05-20 16:01 杨来 阅读(29205) 评论(0) 推荐(3) 编辑
摘要:命令别名设定功能: (alias)假如我需要知道这个目录底下的所有文件 (包含隐藏档) 及所有的文件属性,那么我就必须要下达『 ls -al 』这样的指令串,比较麻烦,我们可以为其设定别名为lm alias lm='ls -al' 阅读全文
posted @ 2017-05-20 15:40 杨来 阅读(221) 评论(0) 推荐(0) 编辑
摘要:[Tab] 接在一串指令的第一个字的后面,则为命令补全; 实例怎么描述?什么叫一串指令的第一个字?[Tab] 接在一串指令的第二个字以后时,则为『文件补齐』 实例怎么描述?什么叫一串指令的第二个字?若安装 bash-completion 软件,则在某些指令后面使用 [tab] 按键时,可以进行『选项 阅读全文
posted @ 2017-05-20 15:35 杨来 阅读(1630) 评论(0) 推荐(0) 编辑
摘要:1 /************************************************************************* 2 > File Name: clearing.c 3 > Author: Mr.Yang 4 > Purpose:演示流中剩余字符的解决方法 5 > Created Time: 2017年05月20... 阅读全文
posted @ 2017-05-20 14:43 杨来 阅读(644) 评论(1) 推荐(0) 编辑
摘要:1.确保在debian下安装了挂载工具。2.进入windows关闭windows快速启动功能,关闭办法是控制面板,在电源管理中,选择关闭盖子的功能,点击“更改不能更改的选项”,去掉快速启动的钩,重启进linux查看挂载情况 阅读全文
posted @ 2017-05-20 10:09 杨来 阅读(479) 评论(0) 推荐(0) 编辑
摘要:1 /************************************************************************* 2 > File Name: getchar2.c 3 > Author: Mr.Yang 4 > Purpose:演示getchar输入整行文本 5 > Created Time: 2017年05月2... 阅读全文
posted @ 2017-05-20 09:59 杨来 阅读(11545) 评论(0) 推荐(0) 编辑
摘要:1 /************************************************************************* 2 > File Name: system.c 3 > Author: Mr.Yang 4 > Purpose:演示system()函数 5 > Created Time: 2017年05月19日 星期... 阅读全文
posted @ 2017-05-19 19:51 杨来 阅读(4095) 评论(0) 推荐(0) 编辑
摘要:1.第一种“段错误”出现的场景 1 /************************************************************************* 2 > File Name: goto.c 3 > Author: Mr.Yang 4 > Purpose:演示goto的用法 (段错误出现的场景) 5 > Created... 阅读全文
posted @ 2017-05-19 18:55 杨来 阅读(3535) 评论(0) 推荐(1) 编辑
摘要:1 /************************************************************************* 2 > File Name: continue.c 3 > Author: Mr.Yang 4 > Purpose:continue的运用 5 > Created Time: 2017年05月19日 ... 阅读全文
posted @ 2017-05-19 18:32 杨来 阅读(370) 评论(0) 推荐(0) 编辑
摘要:1、上传本地文件到服务器 scp /path/filename username@servername:/path/ 2、从服务器上下载文件 scp username@servername:/path/filename /var/www/local_dir(本地目录) 3.从服务器下载整个目录 sc 阅读全文
posted @ 2017-05-19 16:55 杨来 阅读(3506) 评论(1) 推荐(0) 编辑
摘要:1.同时打开多个文件:vi 1.txt 2.txt 3.txt 在多个文件中来回切换,命令行模式输入“:next"表示下一个,输入":previous"代表进入上一个,”:rewind“表示进入第一个文件,”:last“表示进入最后一个文件 2.在当前行上面新插入一行,命令行模式输入”O“ ,在当前 阅读全文
posted @ 2017-05-19 15:17 杨来 阅读(210) 评论(0) 推荐(0) 编辑
摘要:1 /************************************************************************* 2 > File Name: mybreaking.c ... 阅读全文
posted @ 2017-05-19 13:32 杨来 阅读(7489) 评论(0) 推荐(0) 编辑
摘要:apt-get install kde-l10n-zhcn, language里面改中文 亲测可用 来源:http://tieba.baidu.com/p/2489771177 阅读全文
posted @ 2017-05-19 10:13 杨来 阅读(667) 评论(0) 推荐(0) 编辑
摘要:1: cat 1.txt 2.txt 3.txt > 4.txt 这个操作可以把前三个文件的内容全部复制到第四个文件中去 阅读全文
posted @ 2017-05-18 21:10 杨来 阅读(516) 评论(0) 推荐(0) 编辑
摘要:1.错误描述: /tmp/ccAu32Cb.o:在函数‘main’中:static.c:(.text+0x2d):对‘print_value’未定义的引用 2.通过对错误内容分析,我在编写程序时,main函数中引用了一个定义的函数“print_value”,但我编译时此处却报了错误,说我未定义的引用 阅读全文
posted @ 2017-05-18 19:31 杨来 阅读(7979) 评论(0) 推荐(0) 编辑
摘要:第一步:sudo vi /etc/systemd/logind.conf /*最好备份下再修改*/ 把下面的参数改为ignoreHandleLidSwitch=ignore第二步: sudo service systemd-logind restart来源:http://www.jianshu.co 阅读全文
posted @ 2017-05-18 17:22 杨来 阅读(5211) 评论(0) 推荐(0) 编辑
摘要:1.安装ntpdate 2.设置当前年月 如:sudo date -s 2017-05-18 3.同步:sudo ntpdate /usr/sbin/ntpdate time.nist.gov 阅读全文
posted @ 2017-05-18 16:07 杨来 阅读(289) 评论(0) 推荐(0) 编辑
摘要:安装ATI显卡驱动(开源)(方法步骤来自Debian WiKi) A.先升级可用的包 A.先升级可用的包 # aptitude upgrade B.安装下面3个包 B.安装下面3个包 # apt-get install firmware-linux-nonfree libgl1-mesa-dri x 阅读全文
posted @ 2017-05-17 21:40 杨来 阅读(638) 评论(0) 推荐(0) 编辑
摘要:传动们:http://blog.csdn.net/gatieme/article/details/43883261?spm=5176.100239.blogcont47532.3.yXiEuB 感觉挺不错的一个,收藏了 阅读全文
posted @ 2017-05-17 21:27 杨来 阅读(620) 评论(0) 推荐(0) 编辑
摘要:第一步:下载: wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb //32位 wget https://dl.google.com/linux/direct/google-chrome-stab 阅读全文
posted @ 2017-05-17 16:02 杨来 阅读(4245) 评论(0) 推荐(0) 编辑
摘要:传送门:http://www.cnblogs.com/ligongzi/p/6137601.html 亲测可用 阅读全文
posted @ 2017-05-17 11:39 杨来 阅读(334) 评论(0) 推荐(0) 编辑
摘要:##163源 deb http://mirrors.163.com/debian/ jessie main non-free contribdeb http://mirrors.163.com/debian/ jessie-updates main non-free contribdeb http: 阅读全文
posted @ 2017-05-17 11:32 杨来 阅读(3724) 评论(1) 推荐(0) 编辑
摘要:1、进入root用户,su root 输入密码,我们首先修改 /etc/sudoers 文件的属性为可写权限# chmod +w /etc/sudoers2、编辑 vim /etc/sudoers,添加如下行root ALL=(ALL) ALL#文件内部已经有了user ALL=(ALL) ALL 阅读全文
posted @ 2017-05-16 23:16 杨来 阅读(918) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示