C/C++
wj_j2ee
唯进步不止步努力超越追求卓越Q861898039
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
八皇后面试题
八皇后详解,有人可能看不懂上一篇帖子,我又特别整理了一下,尽量弄得简单易懂。注释很详细,基本上都有注释。 先贴一张图,看图看程序比较容易 贴上详细代码 [cpp] view plaincopyprint? #include #define ROW 8//代表列,坐标是x #define COL 8//代表行,坐标是y #define NUM转载 2013-03-11 21:59:27 · 843 阅读 · 0 评论 -
linux gtk demo
/* * wj_demo1.c * * Created on: Apr 16, 2013 * Author: jwang */ #include #include static int count = 0; void button_clicked(GtkWidget *button, gpointer data) { printf(原创 2013-04-19 22:22:10 · 1176 阅读 · 0 评论 -
linux c打印M字符
/* * print_charactor.c * * Created on: Apr 15, 2013 * Author: jwang */ #include #include #define ROW 4 #define COL 9 int main(int argc, char **argv) { char M[ROW][COL];原创 2013-04-15 23:45:01 · 710 阅读 · 0 评论 -
linux c 时间
/* * envtime.c * * Created on: Apr 13, 2013 * Author: jwang */ #include #include #include int main(int argc, char **argv) { struct tm *tm_ptr; time_t the_time;原创 2013-04-13 22:07:42 · 590 阅读 · 0 评论 -
ubuntu10.04 eclipse c/c++ 开发环境搭建
1.到ubuntu software center --->搜索eclipse ---> 选择安装 Eclipse integrated Development Environment---> 安装好后SDK是3.5版本的,下面下载的CDT是6.0.2 注意版本 2.CDT下载地址 : http://www.eclipse.org/cdt/downloads.php 3. 选择cdt-ma原创 2013-04-02 00:02:50 · 769 阅读 · 0 评论 -
linux c 模拟闹钟程序
/* * alarm.c * * Created on: Apr 13, 2013 * Author: jwang */ #include #include #include #include #include static int alarm_fired = 0; void ding(int sig) { alarm_原创 2013-04-13 21:16:37 · 1764 阅读 · 0 评论 -
linux c 扫描文件目录
/* * printdir.c * * Created on: Apr 6, 2013 * Author: jwang */ #include #include #include #include #include #include void printdir(char *dir, int depth); int main(i原创 2013-04-06 01:45:16 · 2099 阅读 · 0 评论 -
linux c copy文件内容
/* * copy_file.c * * Created on: Apr 6, 2013 * Author: jwang */ #include #include int main(int argc, char **argv) { int c; FILE *in, *out; in = fopen("/root原创 2013-04-06 00:50:18 · 950 阅读 · 0 评论 -
控制cpu的利用率
今天看到一本讲算法的好书,>。看了一节,里面讲的是控制cpu 的占有率, cpu的占有率是由进程的忙和空闲来决定的,即 rate=(busy_time)/(busy_time+idle_time); 怎么来控制她呢? busy可以用循环(这个循环用空循环,以便好控制),idle可以用sleep 比如先让任务管理器的cpu使用率始终保持在50%左右,那么在一个主循环中, 让空循环和s转载 2013-03-17 22:41:50 · 756 阅读 · 0 评论 -
C语言实现DES算法
DES(Data Encrypt Standard数据库加密标准)是迄今为止使用最广泛的加密体制。 初学信息安全的新生,一般都会被老师要求实现DES算法,如果老师不要求,那么有缘来我这里共同学习的朋友,我建议你用C去实现一下,C语言在信息安全领域很重要,更何况隶属于工科的信息安全,你只懂理论是远远不够的。 想用其他语言实现的朋友,如果你用了汇编,那么请您老人家走开不要来看小转载 2013-05-08 09:31:11 · 1519 阅读 · 0 评论
分享