Char
共 416 篇文章
Char 相关的电子技术资料,包括技术文档、应用笔记、电路设计、代码示例等,共 416 篇文章,持续更新中。
操作系统课程设计_进程调度演示源程序 #include "stdio.h" #include "stdlib.h" #include "string.h" typedef struct
操作系统课程设计_进程调度演示源程序
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
typedef struct node
{
char name[10] /*进程标识符*/
int prio /*进程优先数*/
int round /*进程时间轮转时间片*/
int cputime /*进程
1602数字时钟
<p class="MsoNormal">
# include < reg52.h ><o:p></o:p>
</p>
<p class="MsoNormal">
# include < 24C02.h><o:p></o:p>
</p>
<p class="MsoNormal">
# define uint unsigned int<o:p></o:p>
</p>
<
#include "REG51.H" #include <intrins.h> #include "Common.h" //#include "Remote.h" #def
#include "REG51.H"
#include <intrins.h>
#include "Common.h"
//#include "Remote.h"
#define OSD_EN
//typedef unsigned char uCHAR
//#include "T100Data_A.h"
//#include "T100Data_PA.h"
C51精确延时分析探讨 从精度考虑
C51精确延时分析探讨
从精度考虑,它得研究结果是:
void delay2(unsigned char i)
{
while(--i)
}
为最佳方法。
本文关键词: c++ 字符串 函数 char *strcpy(char *s1, const char *s2) 将字符串s2复制到字符串数组s1中
本文关键词: c++ 字符串 函数
char *strcpy(char *s1, const char *s2)
将字符串s2复制到字符串数组s1中,返回s1的值
char *strncpy(char *s1, const char *s2, size_t n)
将字符串s2中最多n个字符复制到字符串数组s1中,返回s1的值
我所采用的内存管理思想是链表管理思想
我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为
struct node
{
char* p
int memosize
int flag
struct node* next
}
这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小
DESProcess FILE *mfp,*cfp int ttch=0,xorRes,ttbitdiff=0 char mch,cch float bdiff=0 if
DESProcess
FILE *mfp,*cfp
int ttch=0,xorRes,ttbitdiff=0
char mch,cch
float bdiff=0
if((mfp=fopen(mfile,"r"))==NULL)
{cout<<"Cannot open the file to compare"<<endl }
if((
调光C程序
/*#include<reg52.h><br />
#define uint unsigned int<br />
#define uchar unsigned char<br />
#define uchar unsigned char<br />
sbit K1=P3^4;<br />
sbit K2=P3^5;<br />
sbit ledr=P1^0;<br />
sbit l
红外遥控RGB
<pre class="prettyprint lang-cpp">#include "STC90.h"
#include < intrins.h >
#define uchar unsigned char
#define uint unsigned int
#define led_port P1
sbit IR_RE = P3^2;
sbit led_r = P1^3;
sbit
编写一个C程序
编写一个C程序,用char *malloc(unsigned size)函数向系统申请一次内存空间(如size=1000,单位为字节),用循环首次适应法
addr = (char *)lmalloc(unsigned size) 和
lfree(unsigned size,char * addr)模拟可变分区内存管理,实现对该内存区的分配和释放管理。
孙鑫老师VC视频第十二课代码:const char *与char * const的区别。C语言对文件读写的支持
孙鑫老师VC视频第十二课代码:const char *与char * const的区别。C语言对文件读写的支持,FILE指针;文本文件和二进制文件的区别。用文本方式读写文件和以二进制方式读写文件的注意事项。C++对文件读写的支持,ofstream和ifstream的用法。Win32 SDK对文件读写的支持,CreateFile函数、WriteFile函数、ReadFile函数的使用;MFC对文件读
很完整的51串口程序 包括如下: 串口中断服务程序
很完整的51串口程序
包括如下:
串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理
出入均设有缓冲区,大小可任意设置。
可供使用的函数名:
char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。
getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义最
自己写的二进制编辑器.二进制阅读器.类似于ultra Edit. 功能:decimal,hexadecimal,char: 十进制显示
自己写的二进制编辑器.二进制阅读器.类似于ultra Edit.
功能:decimal,hexadecimal,char:
十进制显示,十六进制显示.字符串显示.
十进制查找,十六进制查找.字符串查找.十进制替换,十六进制替换.字符串替换.
五子棋小游戏#include<stdlib.h> #include<time.h> #include<stdio.h> #include<conio.h
五子棋小游戏#include<stdlib.h>
#include<time.h>
#include<stdio.h>
#include<conio.h>
int chess[169]={0} /*棋盘*/
struct chess_t/*作为辅助,即是作为建意*/
{
char attack /*攻防用的,0表示守,1表示攻*/
#include <reg52.h> #include <stdio.h> #include <string.h> #define uchar unsigne
#include <reg52.h>
#include <stdio.h>
#include <string.h>
#define uchar unsigned char
#define uint unsigned int
#define isp_iap_byte_read 0x1
#define isp_iap_byte_program 0x2
单片机C语言(for)延时计算
<p class="MsoNormal">
C<span style="font-family:宋体;">程序中可使用不同类型的变量来进行延时设计。经实验测试,使用</span><span style="font-family:Arial;">unsigned char</span><span style="font-family:宋体;">类型具有比</span><span style="fo
12864液晶原程序.#include <reg52.h> #include <intrins.h> typedef unsigned char BYTE typede
12864液晶原程序.#include <reg52.h>
#include <intrins.h>
typedef unsigned char BYTE
typedef bit BOOL
sbit rs=P2^0
sbit rw=P2^1
sbit e =P2^2
BYTE code dis[]={"www.zansi.com"}
dela
char find in a book where you can find
char find in a book where you can find
编程题(15_01.c) 结构 struct student { long num char name[20] int score struct student *
编程题(15_01.c)
结构
struct student
{
long num
char name[20]
int score
struct student *next
}
链表练习:
(1).编写函数struct student * creat(int n),创建一个按学号升序排列的新链表,每个链表中的结点中
的学号、成绩由键盘输入,
#include <reg51.h> void delay_ms(unsigned short ms) { unsigned short i unsigned char j
#include <reg51.h>
void delay_ms(unsigned short ms)
{
unsigned short i
unsigned char j
for(i=0 i<ms i++)
{
for(j=0 j<200 j++)
for(j=0 j<102 j++)
}
}