CµÄscanf()
ºÃ¾ÃûÉÏÀ´ÁË...Óеã¶Ô²»Æð×Ô¼ºµÄÁ¼ÐÄ...
»°ËµÕâ¶Îʱ¼ä¿ì¸øÕâ¸öº¯Êý¸ãËÀÁË...
ÎÒÕÒÕÒ...ÎÒÕÒÎÒÕÒ...ÎÒ¾ÍÊÇÒª°ÑËü¸ø¸ãÃ÷°×ÁË...
»°ËµÇ°¶Îʱ¼äÄǸöËÀÈËËÄÔòÔËËãÒ²°Ñ×Ô¼º¸ãµÃ°ëËÀÁË...¶î...ÏÖÔÚ»¹ÔÚÍ£¹¤×´Ì¬...ÔÎËÀ....
ÔÙ˵scanf(),ÉÏÍøÊÇ¿ÉÒÔÕÒµ½Ð©¶«Î÷....µ«ÊǶ¼²»ÔõôÃ÷°×...´òËã×Ô¼º¸ãÃ÷°×ÁËÔÙÉÏÀ´Ð´¸öÏêϸµãµÄ°É...
ÎÒÒ»¶¨Òª°ÑËü¸øÕÒ³öÀ´....ÏÂ×ÊÔ´È¥...
×ÜËã·ÁËÏÂCSDNÕÒµ½ÁË...ÓÐÒâ˼...¹ûÈ»ºÜ¿ì¾Í½â¾öÁË...²»¹ýÒÉ»ó»¹Ã»ÍêÈ«½â¾ö....ÔÙÈ¥¿´¶àµãÕâ¸öº¯ÊýµÄÌû×Ó....
PS½ñÍíµÄ´úÂë:
printf("?\t");
scanf("%f",&num);
while(num != -1)
{
if(num == -1)
{
break;
}
else
{
printf("?\t");
scanf("%f",&num);
average += num;
count = count + 1;
}
}
ÔÀ´ÊÇ×Ô¼ºÔÏÈÔÚscanf()ÀïÃæµÄ%fºó¼ÓÁ˻سµ....¸ÕÈ¥µôºó¾Í冇ÎÊÌâÁË...»¹Ã»È¥¿´Ïêϸ˵·¨...²»¹ýÒѾÓеã²ÂÏëÁË....
¿ÉÄÜÊÇscanf()ÔÚÊäÈëÁ÷Àï¾Í¼ÓÉÏÁËÒ»¸ö»Ø³µ...ËùÒÔʹµ½Ã¿´Î¼ÓÈë»Ø³µÊ±,ÊäÈëÁ÷×Ü»á¶Á¼ÓÒ»¸ö»Ø³µ...¶øÇÒ»¹°Ñµ±Ç°µÄÊäÈëÍϵ½ÏÂÒ»´ÎÊä³ö...Óлº³åµÄ¿ÉÒÉ...ÏÖÔÚ¾ÍÔÙÈ¥¿´Ïêϸ...¹þ¹þ¹þ
²¹ÉÏÔÚCSDNÀï¿´µ½µÄ²¿·ÖÄÚÈÝ:
scanf("%d%d%d\n",&a,&b,&c);ÐèÒªÊäÈëËĸöÕûÊý²ÅÄܽáÊø.
¼ÙÉèÂ¥Ö÷µÄÊäÈëΪ: 1 2 3
4;
Õâʱ²¢Ã»ÓÐÁ¢¼´´æ´¢µ½±äÁ¿À¶øÊÇÏȵ½¼üÅÌ»º³åÇøÀï¡£
È»ºóscanf¿ªÊ¼Æ¥Å乤×÷¡£µÚÒ»¸ö%dºöÂÔÇ°ÃæµÄ¿Õ×Ö·û£¬¿ªÊ¼Æ¥ÅäÊý×Ö1,
µ±Ëü³¢ÊÔÆ¥ÅäÏÂÒ»¸ö×Ö·û(Ϊ¿Õ¸ñ)µÄʱºò£¬·¢ÏÖËü²»ÊÇÊý×Ö£¬Æ¥Åä½áÊø£¬scanf½«¿Õ¸ñ·Å»Ø¼üÅÌ»º³åÇø.aµÄֵΪ1.´Ëºó£¬¼üÅÌ»º³åÇøÀïµÄÄÚÈÝΪ" 2 3
4&q
Ïà¹ØÎĵµ£º
Ñ¡Á½¸ö±È½ÏÓдú±íÐԵĺ¯Êý
Ê×ÏÈÏÂÔØ°²×°sdk£¬½«ÆäÖеÄsde.dll,pe.dllºÍsg.dll¿½±´¹ýÀ´
ʹÓÃÈçϵĴúÂ룬ָ¶¨dllºóÖ±½Óµ÷ÓÃÆäÖеĺ¯Êý£¬
/// <summary>
/// Sets the value for a small integer column.
/// </summary>
[DllImport(".\\sde91.dll", SetLastError = true, ......
9Ô¶¼¿ì½áÊøÁË£¬Ö®Ç°Ò»Ö±Ã¦µ½Ð´×Ô¼ºµÄ¶«Î÷¼ÓÉÏÉÏ°à¡£»ù±¾Ã»ÓÐʱ¼äÑо¿Ï»ã±àºÍC C++·½ÃæµÄ¸ÐÐËȤµÄ¶«Î÷¡£ÔÙÔõô˵Â9Ô»¹ÊǵÃдһƪÈö£¬ÒÔºóÿÔÂÖÁÉÙһƪ°É¡£¸ø×Ô¼º¶¨ÁË£¬Ï£Íû´ó¼Ò¼à¶½¡£ºÙºÙ£¡
ÕâƪÎÄÕ¾ÍÀ´Ì¸Ì¸Æ½³£ºÜ³£¼ûµÄHOOK¼¼Êõ£¬ÕâÀïÄØ¡£Ð´µÃ±È½Ï¼òµ¥£¬·½·¨ºÜ¶à¡£Ö»½²ÔÀí£¡Ï£Íû´óÄñÃDZðÍÂÎÒ¿ÚË®¹þ - -¡£ºÃ£¡ÇÐÈëÕ ......
1. CµÄʵÏÖ
//stack.h
#ifndef STACK_H
#define STACK_H
#define STACK_CAPACITY 20//maximum size of stack
typedef int stackEle;
typedef struct
{
stackEle myArray[ STACK_CAPACITY ];
int myTop;
}stack;
//construct(initialize) an empty stack
stack *stack_init(void);
//return 1 if stack is em ......
ÔÚµ±½ñǶÈëʽ“ÎäÁÖ”ÖУ¬Á÷´«×ż¸±¾ÈËÈ˶¼Ïë͵ѧ¼¸ÕеÄCÓïÑÔµÄÎ书Ãؼ®¡£ÕâЩÃؼ®¶¼ÊÇ¿õÊÀÎäѧÆæ²ÅºÄ¾¡±ÏÉú¾«Á¦ËùÖø£¬²¿·ÖÃؼ®Á÷¾ÊýÊ®ÔØÈÔ¾¾Ã²»Ë¥£¬ÈÃËüµÄÎÞÊýʵϰÕßÊÜÒæ·Ëdz¡£¡¡¡¡½ñÌ죬³ÐÃÉÎäÁÖ´ó»áËùÍÏ£¬ÔÚÕ⹫²¼Õ⼸±¾¹ØÓÚCµÄ“¾Ê锣¬Èøü¶àÈËʵϰ֮£¬Á·¾ÍÒ»Éí¾øÊÀµÄǶÈëʽCÓïÑԺù¦·ò¡£Î书à ......