易截截图软件、单文件、免安装、纯绿色、仅160KB

红外接收(nec)稳定程序 c文件

 /* =========================================================================== */
/* Project:        s3c44b0_lib                           */
/* File:           irda.c                                                  */
/* Organization:   cug-1200525                             */
/* Author:         yuyongbao                                  */
/* Date:           5/11/2007                              */
/* Describe:       lib                               */
/* =========================================================================== */
#include "..\mcu_lib\lib_config.h"
#include "irda.h"   
unsigned char bitcnt;
unsigned char Irdata[4];
unsigned char IrBegin,IrOK;
void Irda_Init(void)
{
 bitcnt=0;
 IrOK=FALSE;
 IrBegin=FALSE;
   rTCON   &= 0xf0ffffff;   // clear manu


相关文档:

c 语言获取系统时间和世界各时区时间

The meaning of each is:
MemberMeaningRange
tm_sec
seconds after the minute
0-61*
tm_min
minutes after the hour
0-59
tm_hour
hours since midnight
0-23
tm_mday
day of the month
1-31
tm_mon
months since January
0-11
tm_year
years since 1900
tm_wday
days since Sunday
0-6
tm_yday
d ......

C/C++程序中结构体字节流的网络传输

 经常需要在程序中将远程传来的字节流进行结构化,或者将结构化的数据变成字节流传给远程主机。在C/C++程序中,结构化数据通常用结构体来组织,结构体也能够方便的转换为字节流,因此结构化的数据传输本不该成为问题,但在VC或GCC的默认设置下编译出的程序,却有一个值得注意的问题——结构体的对齐。  ......

#ifdef __cplusplus extern "C"

面试时被问到过,不甚明了,网上百度一下,整合了两个仁兄的文章,如下。:-)
时常在cpp的代码之中看到这样的代码:
#ifdef __cplusplus //c++编译环境中才会定义__cplusplus (plus就是"+"的意思)
extern "C" { //告诉编译器下面的函数是c语言函数(因为c++和c语言对函数的编译转换不一样,主要是c++中存在重载)
#en ......

C/C++ assert() 函数用法

assert
函数名: assert
功  能: 测试一个条件并可能使程序终止
用  法: void assert(int test);
程序例:
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
struct ITEM {
   int&n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号