C ºê¶¨ÒåµÄ¼òµ¥×ܽá
ÎÒÔÚд´úÂëµÄʱºòϲ»¶Ê¹Óú꣬²»½öʹ´úÂë¿´ÆðÀ´Õû½à£¬¶øÇÒÓúÃÁË»¹Äܼ«´óµÄ¼õÇá±àÂëµÄ¹¤×÷Á¿£¬µ«ÊÇÈç¹ûʹÓò»µ±µÄ»°£¬³öÁËÎÊÌâ²éÕÒÆðÀ´¾Í¾Í·Ç³£µÄÄÑÁË£¬ÏÂÃæµÄ×ܽá´ó²¿·ÖÊÇ´ÓÍøÉÏ¿´µ½µÄ£¬Ò²ÓÐһЩÊÇÎÒ×Ô¼ºÔÚ¹¤×÷ÖÐ×ܽá³öÀ´µÄ¡£
ºêʹÓÃÖеij£¼ûµÄ»ù´¡ÎÊÌâ
1. ·ÀÖ¹Ò»¸öÍ·Îļþ±»Öظ´°üº¬
#ifndef BODYDEF_H
#define BODYDEF_H
//Í·ÎļþÄÚÈÝ
#endif
2. ÖØÐ¶¨ÒåһЩÀàÐÍ£¬·ÀÖ¹ÓÉÓÚ¸÷ÖÖÆ½Ì¨ºÍ±àÒëÆ÷µÄ²»Í¬£¬¶ø²úÉúµÄÀàÐÍ×Ö½ÚÊý²îÒ죬·½±ãÒÆÖ²¡£
typedef unsigned char boolean; /* Boolean type. */
typedef unsigned long uint32; /* Unsigned 32 bit */
typedef unsigned short uint16; /* Unsigned 16 bit */
typedef unsigned char uint8; /* Unsigned 8 bit */
typedef signed long int int32; /* Signed 32 bit */
typedef signed short int16; /* Signed 16 bit */
typedef signed char int8; /* Signed 8 bit */
//ÏÂÃæµÄ²»½¨ÒéʹÓÃ
typedef unsigned char byte; /* Unsigned 8 bit type. */
typedef unsigned short word; /* Unsinged 16 bit type. */
typedef unsigned long dword; /* Unsigned 32 bit type. */
typedef unsigned char uint1; &nbs
Ïà¹ØÎĵµ£º
ÖØÒªµÄ¼¸µã£º
ÈκÎÒ»¸öÂß¼ÔËËã·ûµÄÓÅÏȼ¶µÍÓÚÈκÎÒ»¸ö¹ØÏµÔËËã·û
ÒÆÎ»ÔËËã·ûµÄÓÅÏȼ¶Òª±ÈËãÊýÔËËã·ûµÍ£¬µ«±È¹ØÏµÔËËã·û¸ß¡£
º¯Êýµ÷ÓÃÓÅÏȼ¶Òª¸ßÓÚµ¥Ä¿ÔËËã·ûµÄÓÅÏȼ¶¡£È磺pÊÇÒ»¸öº¯ÊýÖ¸Õ룬Ҫµ÷ÓÃpÖ¸ÏòµÄº¯Êý£¬ÐëΪ(*p)()£¬ÈôΪ*p()£¬Ôò±àÒëÆ÷»á½âÊͳÉ*(p())£¬¼´´Ëʱp()ÊÇÒ»¸öº¯Êý¡£ÀàÐÍת»»Êǵ¥Ä¿ÔËËã·û£¬½áºÏÐÔÊÇ×ÔÓ ......
ͻ񻣼
Îĵµ×«Ð´ÊÇÒ»ÏîÊ®·Ö·±Ëö¶øÇÒ·ÑÁ¦µÄ¹¤×÷£¬ÏàÐÅÒѾÓкܶàÈ˶ԴËÉî¸ÐÍ·Í´¡£ÎĵµÉú³É¹¤¾ßµÄ³öÏÖ×î´óÏ޶ȵذïÖú³ÌÐòÔ±½â¾öÁËÕâ¸öÎÊÌ⣬ÕâЩ¹¤¾ßͨ³£¿ÉÒÔ´Ó³ÌÐòÔ´´úÂë×Ô¶¯Éú³ÉÎĵµ£¬´ó´ó·½±ãÁËÎĵµ¹¤×÷¡£ÕâÆªÐ¡¶«Î÷Ö÷Òª½éÉÜÁËÈçºÎÓÃVIMºÍdoxygenÀ´¿ìËÙÉú³É×¢ÊÍ£¬²¢ÓÃ×îÉٵĶîÍâÀͶ¯À´Íê³Éרҵˮ׼µÄ³ÌÐòÎĵµµÄ¹ý³Ì¡£½ö¹© ......
wchar_t wsWorkingDir[256] = _T("");
CString strPDF(_T(""));
::GetCurrentDirectory(256, wsWorkingDir);
strPDF.Format(_T("%s"), wsWorkingDir);
if (strPDF.GetAt(strPDF.GetLength()-1) != '\\')
{
strPDF += '\\';
}
strPDF += "doc\\my.pdf" ......
4*4¼üÅÌɨÃèC³ÌÐò
#include<reg52.h>
#define uchar unsigned char
uchar code table[]={0xC0,0xF9,0xA4,0xB0,0x99,
0x92,0x82,0xF8,0x80,0x90,
0x88,0x83,0xC6,0xA1,0x86,0x8E};
uchar temp,num;
void display(uchar);
void delay(uchar a)
{
......