- 博客(19)
- 收藏
- 关注
转载 寻址技术
寻址技术主要指寻找数据及其他信息的地址的技术,是软件与硬件的一个主要分界面,是计算机系统结构的一个重要组成部分。寻址技术主要研究内容有编址方式、寻址方式、定位方式。主要研究对象为寄存器、主存储器、堆栈、输入输出设备。
2006-03-31 09:34:00 2415
转载 用 C 语言编写 Windows 服务程序的五个步骤
摘要 Windows 服务被设计用于需要在后台运行的应用程序以及实现没有用户交互的任务。为了学习这种控制台应用程序的基础知识,C(不是C++)是最佳选择。本文将建立并实现一个简单的服务程序,其功能是查询系统中可用物理内存数量,然后将结果写入一
2006-03-31 09:30:00 1079
转载 数码管显示数字之C语言模拟
#define N 10 //最多可以输入10个数字#i nclude int check(char array[],int n){ //检查输入是否全为数字 int i; for(i=0;i
2006-03-31 09:28:00 2792
转载 编译指令#pragma详解
编译指令#pragma详解 编译指令#pragma详解With #pragma, C++Builder can define the directives it wants without interfering with other compilers that supp
2006-03-31 09:26:00 1167
转载 BMP文件读取的程序
http://blog.blogchina.com/zhaoyh/3639915.html最近做一个图像处理的作业,写了个BMP文件读取的程序。在网上找了些资料,还是当作学习笔记记下来,以后也好看看。读取的文件是cameraman.bmp黑白图像,256×256×256色的。#include #include using namespace std; typedef unsigned char
2006-03-18 13:24:00 2539
原创 c语言与汇编的混合编程代码
#include #define count 16 /*显示二进制的位数*/extern dip(int,int);extern check(int);extern wait(void);int main() { int num; char ch; printf("input a num>>"); scanf("%d",&num); printf("result:check(%d)=%d/n"
2006-03-12 13:16:00 1417
转载 debug常用的命令
Debug:A(汇编)直接将 8086/8087/8088 记忆码合并到内存。 该命令从汇编语言语句创建可执行的机器码。所有数值都是十六进制格式,必须按一到四个字符输入这些数值。在引用的操作代码(操作码)前指定前缀记忆码。 a [address] 参数 address 指定键入汇编语言指令的位置。对 address 使用十六进制值,并键入不以“h”字符结尾的每个值。如果不指定地址,a 将在它上次停
2006-03-12 13:12:00 1389
转载 linux常用的含数---日期时间篇
asctime(将时间和日期以字符串格式表示) 相关函数 time,ctime,gmtime,localtime 表头文件 #include 定义函数 char * asctime(const struct tm * timeptr); 函数说明 asctime()将参数timeptr所指的tm结构中的信息转换成真实世界所使用的时间日期表示方法,然后将结果以字符串形态返回。此函数已经由
2006-03-10 14:57:00 1435
原创 我的第二个C++作业——打印日历
//date.h//选择输出日期前请先设置日期//制作:杨忠学//E_mail: yzx_xue@163.com#include#include#includeusing namespace std;int const NoLeapday[]={31,28,31,30,31,30,31,31,30,31,30,31}; //平年int const Leapday[]={31,29,31,
2006-03-10 12:19:00 3317
转载 C语言注册表操作实例(转)
#include #include int main(void){char regname[]="Software//Microsoft//Windows//CurrentVersion//Run";HKEY hkResult;int ret=RegOpenKey(HKEY_LOCAL_MACHINE,regname,&hkResult);ret=RegSetValueEx(hkResult,"h
2006-03-10 11:51:00 1410
转载 VC获取系统时间、程序运行时间
1.使用CTime类CString str; //获取系统时间 CTime tm; tm=CTime::GetCurrentTime();//Returns the year, based on local time, in the range January 1,1970 to //January 18, 2038 (inc
2006-03-10 11:49:00 2586
转载 C/C++头文件一览
转载自: [http://www.rayoko.com/article/106.htm]C/C++头文件一览 C、传统 C++#include //设定插入点#include //字符处理#include //定义错误码#include //浮点数处理#include //文件输入/输出#include //参数化输入/输出#inc
2006-03-10 07:24:00 896
原创 linux实验报告二--文件操作(续)
#include #include #include #include // stat 函数所在的文件#include int main(void){ DIR *dp; struct dirent *ep; struct stat st; char dirp[50]; printf("Please input a d
2006-03-09 10:55:00 3082
原创 linux实验报告二--文件操作
//利用底层文件操作函数编写一个mycopy.c程序#include #include #include #include #include #define maxsize 256 //定义一次从文件读字符的最大数 main(int argc,char *argv[]) { int fd1,fd2;
2006-03-09 10:28:00 3754 1
原创 linux实验报告一
// 统计字符串中数字,大小写以及空格的个数。#define maxsize 100#include #include int main(){ int dxnum=0,xxnum=0,spnum=0,digitnum=0; int i=0; char *str; str=(char *)malloc(maxsiz
2006-03-09 10:10:00 2235
原创 c语言实现香农编码(信息论论文)
/*程序中通过修改宏定义#define max_PN 6,是消息符号的个数具有可变性,在一定意义上说有灵活性*//*在写完程序之后,我才发现直接使用数组也可以实现,而且省去对消息符号概率的排序,因为时间有限,我再没有编写*/#include #include #include #define max_CL 10 /*maxsize of length of code*/#define max
2006-03-08 22:02:00 9479
原创 c语言实现哈夫曼编码
#include #include #define MAX 100#define MAXSYMBS 30#define MAXNODE 59#define DEEP 10typedef struct{ float weight; int flag; int parent; int lchilde; int rchilde; }huffnode;/*哈夫曼树结构定义*/typedef stru
2006-03-08 21:21:00 3762
转载 《visual C++ 6.0开发工具与调试
原文地址:http://blog.csdn.net/LYH_Studio/archive/2006/01/26/588906.aspx 1、 如何快速地规范代码缩进格式选中所需要规范的代码,按shift+F82、 如何在Release状态下进行调试Project->Setting=>ProjectSetting对话框,选择Release状态。
2006-03-08 10:54:00 1070
原创 模拟霓虹灯滚动的c代码
#include #include #include #include #include #define xstart 50#define ytop 50#define ybut 150#define lednum 21#define offnum 2#define midnum (lednum+1)/2#define xpos(i) xstart+25*ivoid Init(void);void
2006-03-08 09:31:00 8092 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人