会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
朝北教室的风筝
用心做每一件事
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
69
70
71
72
73
74
75
76
下一页
2014年2月17日
Linux 中文乱码问题
摘要: 弄了好久还是乱码 最终方法:进入 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
阅读(325)
评论(1)
推荐(0)
2014年2月16日
双向链表排序
摘要: 双向链表排序 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
阅读(1477)
评论(0)
推荐(0)
2014年2月15日
Linux vim 底下显示行号
摘要: 使用 vim /etc/vimrc 然后进入之后再 set ruler" show the cursor position all the time 底下再加上 set nu 保存退出 :wq 即可
阅读全文
posted @ 2014-02-15 14:49 aspirant
阅读(328)
评论(0)
推荐(0)
backslash and newline separated by space
摘要: 原来是因为\ 后面多了一个空格 检查写的代码中将\后面的空格去掉就可以了.
阅读全文
posted @ 2014-02-15 11:04 aspirant
阅读(5629)
评论(0)
推荐(1)
LinuxC语言读取文件,分割字符串,存入链表,放入另一个文件
摘要: //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
阅读(1342)
评论(0)
推荐(0)
2014年2月12日
Linux C 知识 char型数字转换为int型 int型 转换为Char
摘要: 前言 在九度oj做acm的时候,经常会遇到了char类型和int类型相互转化的问题,这里进行一下总结。今后,可能会多次更新博客,因为半年做了很多总结,但是都是保存在word文档上了,现在开始慢慢向CSDN博客转移。 问题类型 char型数字转换为int型 转换方法 a[i] - '0' 参考程序 a
阅读全文
posted @ 2014-02-12 08:50 aspirant
阅读(3603)
评论(0)
推荐(0)
2014年2月11日
Linux 底下使用C 对文件进行遍历
摘要: #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
阅读(207)
评论(0)
推荐(0)
Xshell 中文乱码
摘要: Xshell对于嵌入式开发来说,是个非常不错的工具。但或许都有过被中文显示为乱码的问题感觉有点不爽。解决方法其实很简单的,即把xshell编码方式改成UTF-8即可。 [文件]–>[打开]–>在打开的session中选择连接的那个,点击[属性] -> [终端], 编码选择为:Unicode(UTF-
阅读全文
posted @ 2014-02-11 19:26 aspirant
阅读(202)
评论(0)
推荐(0)
Linux底下的第一个C程序
摘要: 首先保证你的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
阅读(328)
评论(0)
推荐(0)
linux安装gcc
摘要: 方法:输入命令: :(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
阅读(2372)
评论(0)
推荐(0)
上一页
1
···
69
70
71
72
73
74
75
76
下一页
公告