C/C++编程语言
文章平均质量分 61
林晓海
The only way to do great work is to love what you do. If you havent found it yet keep looking. Dont settle. As with all matters of the heart y...
展开
-
快速排序算法
#include #include #include #define ARRAYNUM 10int *SortarrayCreate(int num){ int *ptr=(int *)calloc(num,sizeof(int)); if(!ptr) { printf("calloc failed!\n"); ex原创 2013-01-23 19:07:26 · 525 阅读 · 0 评论 -
C语言之排序算法-冒泡法的改进
#include #include #include #define ARRAYNUM 10int *SortarrayCreate(int num){ int *ptr=(int *)calloc(num,sizeof(int)); if(!ptr) { printf("calloc failed!\n"); ex原创 2013-01-22 15:19:49 · 742 阅读 · 0 评论 -
程序员的七大工具
转载自http://blog.tianya.cn/blogger/post_show.asp?BlogID=158010&PostID=5960445信息技术的发展时间虽然不长,但其爆炸式的发展速度使信息技术迅速覆盖社会和人类生活的各个角落。程序员们是这场信息化浪潮的见证者之一,更是其中的主要参与者,这是时代赋予每个程序员的机会和责任。 信息技术的更新速度是惊人的,程序员的职业生涯则是转载 2013-03-10 22:23:16 · 1517 阅读 · 0 评论 -
在QtextBrower中添加超链接的方法
ui->textBrowser->append(QString::fromLocal8Bit("baidu"));ui->textBrowser->append(QString::fromLocal8Bit("qq"));原创 2013-03-01 17:13:13 · 1572 阅读 · 0 评论 -
weak symbol属性
A function with this attribute has its name emitted as a weak symbol instead of a global name. This is primarily for the naming of library routines that can be overridden by user code.一个具有这个属性的函数原创 2013-03-13 15:08:43 · 1210 阅读 · 0 评论 -
Ubuntu目录介绍
目录结构及主要内容 “/”根目录部分有以下子目录: /usr 目录包含所有的命令、程序库、文档和其它文件。这些文件在正常操作中不会被改变的。这个目录也包含你的Linux发行版本的主要的应用程序,譬如,Netscape。 /var 目录包含在正常操作中被改变的文件:假脱机文件、记录文件、加锁文件、临时文件和页格式化文件等。 /home 目录包含用户的文件:参数设置转载 2013-04-10 00:14:23 · 3521 阅读 · 0 评论 -
Linux 常用命令行工具
dstat & sariostat, vmstat, ifstat and much more in one.slurm网络流量图形化工具vim & emacs这个没人不知道吧~screen, dtach, tmux, byobu保持你的终端连接活跃。multitail在不同的窗口查看日志文件。tpp命令行下面的PPT工具!转载 2013-05-20 11:57:29 · 751 阅读 · 0 评论 -
如何阅读源代码
写在前面的话: 自从我在linuxaid.com.cn上发表一些文章开始,就不断的有网友发来电子邮件,或者是就其中某些问题进行探讨,或者是查询其他文章的地址(往往这些网友看的是其他网站转载的我的文章),我很高兴自己写出的文章有这么多人回应,因为这是对我最好的赞赏,也很高兴有这么多人对我的文章感兴趣。但是常常因为工作关系。有很多邮件是询问我的其他文章在哪里能够找到,我不一定能够及时回复,也觉转载 2013-05-07 20:29:34 · 465 阅读 · 0 评论 -
9个offer,12家公司,35场面试,从微软到谷歌
1, 简介毕业答辩搞定,总算可以闲一段时间,把这段求职经历写出来,也作为之前三个半月的求职的回顾。 首先说说我拿到的offer情况:1) 微软,3面->终面,搞定(+1)2) 百度,3面->终面,口头offer(+1)3) 搜狗,2面,悲剧4) 腾讯,1面,悲剧5) 布丁移动,3面,搞定(+1)6) 涂鸦游戏,3面,搞定(+1)转载 2013-05-30 14:22:06 · 2343 阅读 · 0 评论 -
让 Ubuntu 开机以命令行登录的两种方法
尽管基于linux内核的 Ubuntu 在图形界面方面已经非常易于用户操作,不过,这却是以大大降低了开机速度为代价的。由此,不少 Ubuntu 用户仍然希望开机后以传统的命令行字符模式登录系统,其主要目的就是为了加快开机速度,下面就为Ubuntu用户提供两种实现命令行界面登录Ubuntu系统的方法。 方法一: Ubuntu在很早之前的版本就开始利用upstart来替代init,其主转载 2013-06-14 12:41:03 · 1494 阅读 · 0 评论 -
C语言之排序算法---选择法排序
#include #include #include #define ARRAYNUM 10int *SortarrayCreate(int num){ int *ptr=(int *)calloc(num,sizeof(int)); if(!ptr) { printf("calloc failed!\n"); ex原创 2013-01-22 16:15:29 · 571 阅读 · 0 评论 -
C语言之排序算法---插入排序
#include #include #include #define ARRAYNUM 10int *SortarrayCreate(int num){ int *ptr=(int *)calloc(num,sizeof(int)); if(!ptr) { printf("calloc failed!\n"); ex原创 2013-01-22 19:14:11 · 319 阅读 · 0 评论 -
希尔排序算法
#include #include #include #define ARRAYNUM 10int *SortarrayCreate(int num){ int *ptr=(int *)calloc(num,sizeof(int)); if(!ptr) { printf("calloc failed!\n"); ex原创 2013-01-22 21:01:18 · 314 阅读 · 0 评论 -
使用快速排序算法对字符串数组进行排序(复习指向指针的指针以及指针数组的使用)
#include #include char *strArray[]={ "Jimmy", "Love", "Lucy", "One", "Two",原创 2013-01-23 20:08:01 · 1164 阅读 · 0 评论 -
C语言数据结构之队列
#include #include #define MAX 60int top=0,bottom=0;int Queue[MAX];int ToQueue(int element){ if(top==MAX) { printf("The Queue is full\n"); return -1; }原创 2013-01-24 10:32:50 · 364 阅读 · 0 评论 -
C语言数据结构之循环队列
#include #define MAX 5typedef struct{ int QueueCache[MAX]; int front; int rear;}Queue;Queue *initQueue(Queue *q){ q->front=0; q->rear=0; return q;}int原创 2013-01-24 11:51:00 · 523 阅读 · 0 评论 -
C语言数据结构之堆栈
#include #define MAX 6typedef struct{ int element[MAX]; int index;}Stack;int InitStack(Stack *s){ s->index=0; return 1;}int IsFull(Stack *s){ if(s->index==MA原创 2013-01-24 17:08:39 · 731 阅读 · 0 评论 -
C语言数据结构之单向链表(已经调试可以实现相应的功能了,可是还是有几个问题现在还是不大理解,希望大家能够一起探讨)
#include #include typedef struct NodeStruct{ int num; struct NodeStruct *next;}Node;int Nodenum=0;int IsEmpty(Node **headp){ if(*headp==NULL||headp==NULL) {原创 2013-01-26 14:56:09 · 910 阅读 · 0 评论 -
C语言数据结构之双向链表
#include #include typedef struct DoubleList{ struct DoubleList *Pre; struct DoubleList *Next; int data;} Node;int Nodenum=0;//增加一个节点int IsEmpty(Node **Start,Node **End){原创 2013-01-27 10:28:37 · 2169 阅读 · 0 评论 -
C语言数据结构之二叉树
#include #include //声明一个树的节点typedef struct tree{ char node; struct tree *left; struct tree *right;} TreeNode;TreeNode * TreeRoot=NULL;//建立根节点int IsEmptyTree(TreeNode *root原创 2013-01-27 20:47:09 · 471 阅读 · 0 评论 -
C语言之排序算法---冒泡法排序
#include #include #include #define ARRAYNUM 10int *SortarrayCreate(int num){ int *ptr=(int *)calloc(num,sizeof(int)); if(!ptr) { printf("calloc failed!\n"); ex原创 2013-01-22 15:10:22 · 675 阅读 · 0 评论 -
文件锁
功能描述:根据文件描述词来操作文件的特性。#include #include int fcntl(int fd, int cmd); int fcntl(int fd, int cmd, long arg); int fcntl(int fd, int cmd, struct flock *lock);[描述]fcntl()针对(文件)描述符提供控制。参数fd是被参数转载 2013-06-25 12:31:48 · 585 阅读 · 0 评论