Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C 100 µÀ¾­µäÌâÄ¿


¡¾³ÌÐò1¡¿
ÌâÄ¿£ºÓÐ1¡¢2¡¢3¡¢4¸öÊý×Ö£¬ÄÜ×é³É¶àÉÙ¸ö»¥²»ÏàͬÇÒÎÞÖظ´Êý×ÖµÄÈýλÊý£¿¶¼ÊǶàÉÙ
£¿
1.³ÌÐò·ÖÎö£º¿ÉÌîÔÚ°Ùλ¡¢Ê®Î»¡¢¸öλµÄÊý×Ö¶¼ÊÇ1¡¢2¡¢3¡¢4¡£×é³ÉËùÓеÄÅÅÁкóÔÙÈ¥
¡¡¡¡¡¡¡¡¡¡¡¡µô²»Âú×ãÌõ¼þµÄÅÅÁС£ 
2.³ÌÐòÔ´´úÂ룺
main()
{
int i,j,k;
printf("\n");
for(i=1;i<5;i++)¡¡¡¡¡¡¡¡£¯*ÒÔÏÂΪÈýÖØÑ­»·*/
¡¡for(j=1;j<5;j++)¡¡
¡¡¡¡for (k=1;k<5;k++)
¡¡¡¡¡¡{
¡¡¡¡¡¡¡¡if (i!=k&&i!=j&&j!=k) ¡¡¡¡¡¡/*È·±£i¡¢j¡¢kÈý뻥²»Ïàͬ*/
¡¡¡¡¡¡¡¡printf("%d,%d,%d\n",i,j,k);
¡¡¡¡¡¡}
}
==============================================================
¡¾³ÌÐò2¡¿
ÌâÄ¿£ºÆóÒµ·¢·ÅµÄ½±½ð¸ù¾ÝÀûÈóÌá³É¡£ÀûÈó(I)µÍÓÚ»òµÈÓÚ10ÍòԪʱ£¬½±½ð¿ÉÌá10%£»Àû
Èó¸ß
¡¡¡¡¡¡ÓÚ10ÍòÔª£¬µÍÓÚ20ÍòԪʱ£¬µÍÓÚ10ÍòÔªµÄ²¿·Ö°´10%Ìá³É£¬¸ßÓÚ10ÍòÔªµÄ²¿·Ö£¬¿É
¿ÉÌá
¡¡¡¡¡¡³É7.5%£»20Íòµ½40ÍòÖ®¼äʱ£¬¸ßÓÚ20ÍòÔªµÄ²¿·Ö£¬¿ÉÌá³É5%£»40Íòµ½60ÍòÖ®¼äʱ
¸ßÓÚ
¡¡¡¡¡¡40ÍòÔªµÄ²¿·Ö£¬¿ÉÌá³É3%£»60Íòµ½100ÍòÖ®¼äʱ£¬¸ßÓÚ60ÍòÔªµÄ²¿·Ö£¬¿ÉÌá³É1.5%
£¬¸ßÓÚ
¡¡¡¡¡¡100ÍòԪʱ£¬³¬¹ý100ÍòÔªµÄ²¿·Ö°´1%Ìá³É£¬´Ó¼üÅÌÊäÈëµ±ÔÂÀûÈóI£¬ÇóÓ¦·¢·Å½±½ð
×ÜÊý£¿
1.³ÌÐò·ÖÎö£ºÇëÀûÓÃÊýÖáÀ´·Ö½ç£¬¶¨Î»¡£×¢ÒⶨÒåʱÐè°Ñ½±½ð¶¨Òå³É³¤ÕûÐÍ¡£¡¡¡¡¡¡¡¡
¡¡¡¡
2.³ÌÐòÔ´´úÂ룺
main()
{
long int i;
int bonus1,bonus2,bonus4,bonus6,bonus10,bonus;
scanf("%ld",&i);
bonus1=100000*0.1;bonus2=bonus1+100000*0.75;
bonus4=bonus2+200000*0.5;
bonus6=bonus4+200000*0.3;
bonus10=bonus6+400000*0.15;
¡¡if(i<=100000)
¡¡¡¡bonus=i*0.1;
¡¡else if(i<=200000)
¡¡¡¡¡¡¡¡¡¡bonus=bonus1+(i-100000)*0.075;
¡¡¡¡¡¡¡¡else if(i<=400000)
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡bonus=bonus2+(i-200000)*0.05;
¡¡¡¡¡¡¡¡¡¡¡¡¡¡else if(i<=600000)
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡bonus=bonus4+(i-400000)*0.03;
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡else if(i<=1000000)
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡bonus=bonus6+(i-600000)*0.015;
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡else
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡bonus=bonus10+(i-1000000)*0.01;
printf("bonus=%d",bonus);
}
==============================================================
¡¾³ÌÐò3¡¿
ÌâÄ¿£ºÒ»¸öÕûÊý£¬Ëü¼ÓÉÏ100ºóÊÇÒ»¸öÍêȫƽ·½Êý£¬ÔÙ¼ÓÉÏ168ÓÖÊÇÒ»¸öÍêȫƽ·½Êý£¬Çë
ÎʸÃÊýÊǶàÉÙ£¿
1


Ïà¹ØÎĵµ£º

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í

Delphi Óë C/C++ Êý¾ÝÀàÐͶÔÕÕ±í
DelphiÊý¾ÝÀàÐÍC/C++
ShorInt
8λÓзûºÅÕûÊý
char
Byte
8λÎÞ·ûºÅÕûÊý
BYTE,unsigned short
SmallInt
16λÓзûºÅÕûÊý
short
Word
16λÎÞ·ûºÅÕûÊý
unsigned short
Integer,LongInt
32λÓзûºÅÕûÊý
int,long
Cardinal,LongWord/DWORD
32λÎÞ·ûºÅÕûÊý
unsigned long
Int6 ......

Windows Via C/C++: CreateThreadº¯Êý

CreateThreadº¯Êý
Ç°Ãæ½²¹ý£¬½ø³ÌµÄÖ÷Ï̻߳áÔÚCreateProcessµ÷ÓÃʱ×Ô¶¯´´½¨¡£¼ÙÈçÄãÒªÊÖ¹¤´´½¨Ị̈߳¬Äã¿ÉÒÔµ÷ÓÃCreateThreadº¯Êý£º
HANDLE CreateThread(
PSECURITY_ATTRIBUTES psa,
DWORD cbStackSize,
PTHREAD_START_ROUTINE pfnStartAddr,
PVOID pvParam,
DWORD dwCreateFlags,
PDWORD pdwThreadID) ......

c/c++ÄÚ´æ»®·Ö

      Ò»¡¢¸ö¾­¹ý±àÒëµÄC/C++µÄ³ÌÐòÕ¼ÓõÄÄÚ´æ·Ö³ÉÒÔϼ¸¸ö²¿·Ö:
      1¡¢Õ»Çø£¨stack£©£ºÓɱàÒëÆ÷×Ô¶¯·ÖÅäºÍÊÍ·Å £¬´æ·Åº¯ÊýµÄ²ÎÊýÖµ¡¢¾Ö²¿±äÁ¿µÄÖµµÈ£¬ÉõÖÁº¯ÊýµÄµ÷Óùý³Ì¶¼ÊÇÓÃÕ»À´Íê³É¡£Æä²Ù×÷·½Ê½ÀàËÆÓÚÊý¾Ý½á¹¹ÖеÄÕ»¡£ 
¡¡¡¡2¡¢¶ÑÇø£¨heap£© £ºÒ»°ãÓɳÌÐ ......

CÅÌת»»ÎªNTFS¸ñʽ.cmd

@ ECHO OFF
@ ECHO.
@ ECHO.                               ˵   Ã÷
@ ECHO ----------------------------------------------------------------- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ