随笔分类 -  C

摘要:尝试用C语言写windows程序: 简单的计算器 1.0版,仅用来熟悉C 开发windows的一些语法和语句用法 1 #include "stdafx.h" 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include "resource.h" 8 #include "MainDlg.h" 9 10 /* 11 http://www.cnblogs.com/daomul/ 12 */ 13 BOOL WINAPI Main_Proc(HWND hWnd, UINT 阅读全文
posted @ 2013-09-20 22:01 daomul 阅读(325) 评论(0) 推荐(0)
摘要:分别实现选择排序和冒泡排序(在上上篇文章)对以下文件进行排序。支持如下形式调用:BubbleSort.exe input.txt output.txt 0 BubbleSort.exe input.txt output.txt 1 (0:从小到大,1:从大到小)。注意中文处理(若无法处理可以只对学号排序,需要在文档中说明) 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 #define N 200 6 struct student{ 7 char num[200]; 8 ch 阅读全文
posted @ 2012-10-16 23:24 daomul 阅读(1717) 评论(0) 推荐(1)
摘要:实现对以下英文文本的关键词查找。支持如下形式调用:search.exe input.txt keyword输出:关键词首次出现位置若实现通配符查找有加分(若实现了在文档中说明) 1 #include "stdio.h" 2 #include "string.h" 3 #include "stdlib.h" 4 #include "conio.h" 5 6 void main(int argc,char **argv) 7 { 8 int MyCount; //文件字符总数 9 int i=0,j;10 int m= 阅读全文
posted @ 2012-10-16 23:20 daomul 阅读(640) 评论(0) 推荐(0)
摘要:分别实现选择排序(在下下一篇文章)和冒泡排序对以下文件进行排序。支持如下形式调用:BubbleSort.exe input.txt output.txt 0 BubbleSort.exe input.txt output.txt 1 (0:从小到大,1:从大到小)。注意中文处理(若无法处理可以只对学号排序,需要在文档中说明) 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 #define N 200 6 struct student{ 7 char num[200]; 8 c 阅读全文
posted @ 2012-10-16 22:33 daomul 阅读(531) 评论(0) 推荐(0)