C/C++µÄÒ»¸ö¼òµ¥ÎÊÌ⣬Çë½Ì¡£¡£
void Main(void)
{
while(1)
{
char aa;
Uart_Printf("\nEnter the 'Y' or 'y' to test:");
aa= Uart_Getch();
Uart_Printf("%c",aa);
if((aa=='Y')||(aa=='y'))
{
(void (*)(void))Test_Iic();
}
}
}
Ϊʲô°ÑIFÑ»·µÄ¡°{}¡±À¨ºÅÈ¥µô£¬ÔÙ°Ñ"while(1){}"È¥µô±àÒëÆ÷(ads1.2)»á±¨´í£ºexpect but found 'char'ºÍundecleared name, inventing 'extern int aa'µÄ´íÎó£¿ÕâÁ½¸ö¶«Î÷²»È¥È¥µôÄܱàÒëͨ¹ý¡£Äĸö´ó¸ç´ó½ãÖªµÀΪʲô£¿£¿
ÏÔ¶øÒ×¼û
ÄãÔÚ{}ÖÐÓбäÁ¿µÄ¶¨Ò壬ȥµôÒԺ󣬱àÒëÆ÷ÎÞ·¨½«±äÁ¿Ñ¹Õ»£¬Ò²¾ÍÊÇÎÞ·¨Îª±äÁ¿·ÖÅäÄÚ´æ¡£µ±È»³ö´íÁË¡£ÁíÍ⣬°Ñ{}È¥ÁË£¬whileºÍifÖ»ÈÏʶǰһÌõÓï¾ä¡£¶ÔÆäËüÓï¾ä£¬Ã»ÓпØÖÆÁ¦ÁË¡£
ifÖеĻ¨À¨ºÅ¿ÉÒÔÈ¥µô£¬µ«whileµÄ²»ÐС£ÒòΪC90¹æ¶¨ËùÓбäÁ¿ÉùÃ÷ºÍ¶¨Òå±ØÐë·ÅÔÚ¿ÉÖ´ÐÐÓï¾ä֮ǰ¡£whileÈ¥µôÀ¨ºÅºóÄǸöaa±ä³ÉÔÚwhile(1)Ö®ºó£¬·Ç·¨¡£
°ï¶¥£¡
ѧϰÁË
while(1){};ÕûÌ嶼ȥµôÁË°¡£¬²»ÊÇֻȥwhile(1)µÄÀ¨»¡°¡¡£¡£¡£¡£
ºÇºÇ£¬¶þ¥˵µÄºÜºÃ£¬ÏÔ¶øÒ×¼ûµÄÎÊÌ⣬ȥµôÁËwhileÑ»·ÖоÍÒ»ÌõÓï¾ä£¬¾ÍÊDZäÁ¿¶¨Ò壬³öÁËÑ»·£¬´Ë±äÁ¿¾ÍÎÞÒâÒ壬ÄãµÄifÔÚwhileÈ¥µôÀ¨ºÅÖ®ºó£¬±ä³ÉÁ˺Íwhileͬ¼¶±ðµÄÓï¾ä£¬µ±È»²»¿ÉÄÜÕÒµ½whileÄÚ¶¨ÒåµÄ±äÁ¿ÁË
±¾ÈËÒÔÇ°Ò²×ö¹ýÓ²¼þ±à³Ì·½
Ïà¹ØÎÊ´ð£º
QQȺ 29152388
ÓÑÇéUP
°ï¶¥
up
°ïup
up Ö§³Ö£¡
up jf
...ÄѵÀÓзÖ..?
up up up
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
±ÈÈ磺
char c[] = "hello,world";
char *c = "hello,world";
ÔÚ·ÖÅäÄÚ´æʱÊDz»Ò»ÑùµÄ°É£¿£¨·ÖÅäµ½¶Ñ»¹ÊÇջʲôµÄ£©
ËÄܸø½²½²CÖÐÄÚ´æÊÇÔõô·ÖÅäµÄ°¡£¿
»òÕ߸øÌṩ¸öÁ´½Ó
......
±àдһ¸ö³ÌÐòÓÃÁ´±íʵÏÖ£º½«Ò»¸öÉýÐòÕûÊýÊýÁеÄÖظ´Êý¾ÝÈ¥µô
±àºÃºó£¬½á¹û²»¶Ô°¡£¬ÇóÖúc¸ßÊÖ
#include <stdio.h>
#include <stdlib.h>
struct link
{
int number;
s ......
int a=2;
int i;
i=(a++)+(++a)+(a++)+(++a)+(a++);
printf("%d",i);
½á¹ûÊÇ20£¬Çë½â¶Á
ÕâÒѾ²»ÊÇÔ¾ÌùÁË£¬Ëͳ¼Æ¹ý½ñÌ ......
µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊÊ°¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......