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
Ï£ÍûÓеüӷ֣¬¹þ¹þ¡£
Ö§³Ö£¬ÎÒ¼ÓÁË£¬Ï£ÍûÂ¥Ö÷ÄܼÓÎÒ£¬¹²Í¬Ñ§Ï°¹þ
¼ÓÁË¡£
¶¥ÉÏ£¬Ã¿ÌìÊÕ»ñÒ»µã£¬Ö§³Ö ......
ÏÂÃæÊÇÎҵĴúÂë ´ÓÄÚ´æдÈëÎļþÕýÈ· µ«´ÓÎļþ¶ÁÈëÄڴ涼ÊÇÂÒÂë ¶øÇÒ³ÌÐò±ÀÀ£ Çëc¸ßÊÖÖ¸µã
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct inf
{
& ......
µØµãÔÚÉîÛÚÄÏɽ
¡¡¡¡×öCÈí¼þ¡£ÊÔÓÃ2K£¬²»ÖªµÀתÕý¸ø¹«Ë¾Ì¸¶àÉÙºÏÊÊ°¡£¿
¡¡¡¡ÁíÍ⣬±¾ÈËС±¾£¬Ó¢ÓïÁù¼¶£¬ÊÔÓÃÈý¸öÔ±íÏÖµÃÒ²ËãÖÐÉÏˮƽ¡£µ«ÊÇÏÖÔÚ»¹²»ÄÜ×öÏîÄ¿¡£ÁíÍâ±ÏҵѧУûÓÐÃûÆø¡£
¡¡¡¡×ªÕý¸ø¹«Ë¾Ì¸¶àÉ ......
RT
pow(x,y)
exp( x, 1/y)
float x=27.0f;
float y=1/3.0f; //¿ª3´Î·½
float z=pow(x,y);
printf("%f",z);
¡£¡£¡£ ÊÇpow(x, 1/y)
Â¥ÉÏ ÎÒÔËÐÐÔõôÊÇ0 °¡
ÓÐûÓÐÕâÖÖд·¨ ......