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

Õâ¸öc³ÌÐòÈçºÎд - C/C++ / C++ ÓïÑÔ

±¾È˳õѧc£¬ÓкܶàÌâÄ¿²»¶®×ö£¬²Î¿¼Ò»Ï´óÅ£µÄ˼Ïë

±àд³ÌÐò
1:)ÊäÈëÈý½ÇÐεÄ3Ìõ±ß³¤£¬ÅжϸÃÈý½ÇÐÎÊÇ·ñΪֱ½ÇÈý½ÇÐΣ¬ÊÇÔòÊä³ö½á¹ûºÍÃæ»ý£»
2:)ÇóÊäÈëÁ½¸öÕýÕûÊýµÄ×î´ó¹«Ô¼ÊýºÍ×îС¹«±¶Êý£»
3:)ÊäÈëһЩÕûÊý£¬·Ö±ð¼ÆËã³öËùÓÐÆæÊýºÍËùÓÐżÊýÖ®ºÍ£»
4:)Êä³öËùÓеġ°Ë®ÏÉ»¨Êý¡±£¬ÊÇÖ¸Ò»¸ö3λÊý£¬¸÷λÊý×ÖµÄÁ¢·½ºÍµÈÓÚ¸ÃÊý±¾Éí£¬Èç153=1^3+5^3+3^3
5:)´òÓ¡Ò»¸öÁâÐΣ¬¸Ãͼ·ÖÉÏÏ£¬Éϲ¿ËÄÐУ¬Ï²¿3ÐУ¬ÓÃÁ½¸öÑ­»·£¬·Ö±ðÊä³ö¿Õ¸ñºÍÐǺţ¬ËüÃǸöÊýÓйæÂÉ
  ÏÂÃæÊÇÒ»¸öÁâÐΣ¬ÒòΪ±à¼­ÎÊÌ⣬ÎÒÓÃ@´ú±íÁË¿Õ¸ñ£¬ÊµÏÖʱÇëÓûؿոñ
@@@@@@*
@@@@*@*@*
@@*@*@*@*@*
*@*@*@*@*@*@*
@@*@*@*@*@*
@@@@*@*@*
@@@@@@*
¡°²»¶®×ö¡±ÊǸö³ÂÊö£¬²»ÊǸöÒÉÎÊ


ÕâÊǸöÊýѧÎÊÌâ,²»ÊdzÌÐòÉè¼ÆµÄÎÊÌâ,¸ú³ÌÐòÉè¼Æûʲô¹ØÁª


°ï¶¥£¬²»¹ý»¹Êǽ¨Òélz×Ô¼ºÊÔ×Åȥд

×î´ó¹«Ô¼Êý£º
#include<stdio.h>
int gcc(int a,int b)
{
int tmp;
while(a%b)
{
tmp=a%b;
a=b;
b=tmp;
}
return b;
}
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",gcc(a,b));//×î´ó¹«Ô¼Êý
printf("%d\n",(a*b)/gcc(a,b));// ×îС¹«±¶Êý
return 0;
}

Ë®ÏÉ»¨

#include<stdio.h>
int main()
{
int i,j,k,l;
for(i=100;i<=999;++i)
{
j=i%10;//¸öλ
k=(i/10)%10;//ʮλ
l=i/100;//°Ùλ
if(j*j*j+k*k*k+l*l*l==i)
printf("%d ",i);
}printf("


Ïà¹ØÎÊ´ð£º

execlÔõôµ÷ÓÃjava³ÌÐò - C/C++ / CÓïÑÔ

ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£

²»»á.

ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ

ËÑË÷Ï£ºjni ......

c¾²Ì¬±àÒëÁíÒ»¸öÎļþ¼ÐµÄ¿âº¯Êý - C/C++ / CÓïÑÔ

ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

¸ÕѧÍêCµÄ»ù´¡£¬ÇóÏÂÒ»²½ - C/C++ / CÓïÑÔ

ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë 
Äã²»Àí½âÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ