摘要: 弄了好久还是乱码 最终方法:进入 vim /etc/vimrc中 原先只有一个 set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936改成: let &termencoding=&encoding set encoding=utf-8 fileenc 阅读全文
posted @ 2014-02-17 19:13 aspirant 阅读(316) 评论(1) 推荐(0) 编辑
摘要: 双向链表排序 2006-10-11*/#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h> typedef struct Node{ int data; struct Node* left; struc 阅读全文
posted @ 2014-02-16 10:09 aspirant 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 使用 vim /etc/vimrc 然后进入之后再 set ruler" show the cursor position all the time 底下再加上 set nu 保存退出 :wq 即可 阅读全文
posted @ 2014-02-15 14:49 aspirant 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 原来是因为\ 后面多了一个空格 检查写的代码中将\后面的空格去掉就可以了. 阅读全文
posted @ 2014-02-15 11:04 aspirant 阅读(5596) 评论(0) 推荐(1) 编辑
摘要: //file_op.c file.txt 内容 ID;NAME;SEX;COLLEGE;SUBJECT;REMARKS 1;jean;male;electron;communicate;no marks 2;luce;female;legal;legal;thanks 3;devide;male;b 阅读全文
posted @ 2014-02-15 10:55 aspirant 阅读(1310) 评论(0) 推荐(0) 编辑
摘要: 前言 在九度oj做acm的时候,经常会遇到了char类型和int类型相互转化的问题,这里进行一下总结。今后,可能会多次更新博客,因为半年做了很多总结,但是都是保存在word文档上了,现在开始慢慢向CSDN博客转移。 问题类型 char型数字转换为int型 转换方法 a[i] - '0' 参考程序 a 阅读全文
posted @ 2014-02-12 08:50 aspirant 阅读(3572) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>main (int argc,char *argv[]){char ch;FILE *fp;int i; if((fp=fopen("test.txt","r"))==NULL){ printf("Can not open t 阅读全文
posted @ 2014-02-11 20:09 aspirant 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Xshell对于嵌入式开发来说,是个非常不错的工具。但或许都有过被中文显示为乱码的问题感觉有点不爽。解决方法其实很简单的,即把xshell编码方式改成UTF-8即可。 [文件]–>[打开]–>在打开的session中选择连接的那个,点击[属性] -> [终端], 编码选择为:Unicode(UTF- 阅读全文
posted @ 2014-02-11 19:26 aspirant 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 首先保证你的Linux底下安装了GCC,假如没有安装GCC的话请参考: http://www.cnblogs.com/aspirant/p/3544398.html 假如输入 gcc -v 不再是command not found 说明gcc安装成功. 在自己的机器上建立一个目录,比如score 然 阅读全文
posted @ 2014-02-11 15:59 aspirant 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 方法:输入命令: :(1) :yum -y install gcc (2) yum -y install gcc-c++(3)yum install make 我的再输入 yum -y install gcc 时候报错了: [root@cddserver2 ~]# yum -y install gc 阅读全文
posted @ 2014-02-11 14:53 aspirant 阅读(2363) 评论(0) 推荐(0) 编辑