ºÃÎĵµ - רҵÎÄÊéд×÷·¶ÎÄ·þÎñ×ÊÁÏ·ÖÏíÍøÕ¾

C++Ìâ¿â´óÈ«

ÓÉ ÌìÏ ·ÖÏí ʱ¼ä£º ¼ÓÈëÊÕ²Ø ÎÒҪͶ¸å µãÔÞ

µÚ1Ì⣺ÊäÈë5Сд×Öĸ£¬½«ÆäÒë³ÉÃÜÂë¡£ÃÜÂë¹æÂÉÊÇ£ºÓÃÔ­À´µÄ×ÖĸºóÃæµÚ4¸ö×Öĸ´ú

ÌæÔ­À´µÄ×Öĸ¡£ÀýÈ磬ÊäÈë¡°ahoux¡±£¬¡®a¡¯->¡®b¡¯->¡®c¡¯->¡®d¡¯->¡®e¡¯£¬ËùÒÔ×Öĸ¡®a¡¯ºóÃæµÚ4¸ö×ÖĸÊÇ¡®e¡¯£¬Óá®e¡¯´úÌæ¡®a¡¯£»×Öĸ¡®x¡¯ºóÃæ²»×ã4¸ö×Öĸ£¬Ôò´Ó¡®a¡¯¿ªÊ¼²¹³ä£¬¡®x¡¯->¡®y¡¯->¡®z¡¯->¡®a¡¯->¡®b¡¯£¬ËùÒÔ×Öĸ¡®x¡¯ºóÃæµÚ4¸ö×ÖĸÊÇ¡®b¡¯£¬Óá®b¡¯´úÌæ¡®x¡¯¡£Òò´Ë£¬¡°ahoux¡±Ó¦ÒëΪ¡°elsyb¡±¡£ ÑùÀýÊäÈ룺ahoux ÑùÀýÊä³ö£ºelsyb

·½·¨Ò»£º

#include int main()

{char c1,c2,c3,c4,c5; cin>>c1>>c2>>c3>>c4>>c5;

c1+=4;c2+=4;c3+=4;c4+=4;c5+=4; if(c1>'z') c1-=26; if(c2>'z') c2-=26; if(c3>'z') c3-=26; if(c4>'z') c4-=26; if(c5>'z') c5-=26;

cout<

#include int main() {char c;

while((c=getchar())!='\\n') {

c+=4; if(c>'z') c-=26;

printf(\ }

return 0; }

µÚ2Ì⣺ÊäÈëÔ²µÄ°ë¾¶ºÍÔ²ÖùµÄ¸ß£¬ÒÀ´ÎÊä³öÔ²Öܳ¤¡¢Ô²Ãæ»ý¡¢Ô²Çò±íÃæ»ý¡¢Ô²ÖùÌå»ý£¨ÒÔ

¿Õ¸ñ·Ö¸ô£¬¦ÐÈ¡3.14£©¡£

¾«Ñ¡

ÑùÀýÊäÈ룺1.5 3

ÑùÀýÊä³ö£º9.42 7.065 28.26 21.195

#include int main()

{float r,h,c,s1,s2,v; cin>>r>>h; c=3.14*r*2; s1=3.14*r*r; s2=4*3.14*r*r; v=s1*h;

cout<

µÚ3Ì⣺ÊäÈëÒ»¸ö»ªÊÏζȣ¬ÒªÇóÊä³öÉãÊÏζȡ£¹«Ê½Îª£ºc=5/9*(F-32)¡£

ÑùÀýÊäÈ룺100 ÑùÀýÊä³ö£º37.7778

#include int main() {float c,f; scanf(\c=5*(f-32)/9; printf(\return 0; }

µÚ4Ì⣺ÓÐÒ»·Ö¶Îº¯ÊýÈçÏ£¬Çë±àд³ÌÐò£¬ÊäÈëxÖµ£¬Êä³öyÖµ¡£

ÑùÀýÊäÈ룺-2 ÑùÀýÊä³ö£º14.5 ÑùÀýÊäÈ룺1

ÑùÀýÊä³ö£º0.393654 ÑùÀýÊäÈ룺6

ÑùÀýÊä³ö£º0.848872

#include

¾«Ñ¡

#include int main() {float x,y; scanf(\if(x<0)

y=3*x*x-5/x; else if(x<5)

y=1/(2+cos(x)); else

y=sqrt(sin(x)+1); printf(\return 0;}

µÚ5Ì⣺ÊäÈë3¸öÕûÊý£¬Êä³öÆäÖÐ×î´óÊý¡£

ÑùÀýÊäÈ룺1 3 2 ÑùÀýÊä³ö£º3

#include int main()

{int a,b,c,max; cin>>a>>b>>c; max=a; if(max

µÚ6Ì⣺¼ÆËã±í´ïʽax3+bx2+cx+dµÄÖµ¡£ÊäÈëx£¬a£¬b£¬c£¬d£¬Êä³ö¼ÆËã½á¹û¡£

ÑùÀýÊäÈ룺2.2 3 4 5 6 ÑùÀýÊä³ö£º68.304

#include int main()

{float x,a,b,c,d,e; cin>>x>>a>>b>>c>>d; e=a*x*x*x+b*x*x+c*x+d; cout<

µÚ7Ì⣺¼ÆËã±í´ïʽµÄÖµ¡£ÊäÈëa£¬b£¬c£¬d£¬e£¬Êä³ö¼ÆËã½á¹û¡£

¾«Ñ¡

ÑùÀýÊäÈ룺1 2 3 4 5 ÑùÀýÊä³ö£º0.347826

#include int main()

{float a,b,c,d,e,y; cin>>a>>b>>c>>d>>e; y=a*b/(c/d+e); cout<

µÚ8Ì⣺ÊäÈëÁ½¸öÕûÊý£¬½«ËüÃǽ»»»ºóÊä³ö¡£

ÑùÀýÊäÈ룺1 2 ÑùÀýÊä³ö£º2 1

#include int main() {int a,b,c; cin>>a>>b; c=a; a=b; b=c;

cout<

µÚ9Ì⣺ÊäÈëÈý½ÇÐεÄÈýÌõ±ß³¤a£¬b£¬c£¨ÒªÇóÄܹ¹³ÉÈý½ÇÐΣ©£¬ÇóÈý½ÇÐÎÃæ»ý¡£

ÑùÀýÊäÈ룺3.2 4.4 5.6 ÑùÀýÊä³ö£º7.02624

#include #include int main()

{float a,b,c,p,s; cin>>a>>b>>c; p=(a+b+c)/2;

s=sqrt(p*(p-a)*(p-b)*(p-c)); cout<

µÚ10Ì⣺ÊäÈë´óд×Öĸ£¬Êä³ö¶ÔÓ¦µÄСд×Öĸ¡£

ÑùÀýÊäÈ룺B ÑùÀýÊä³ö£ºb

#include int main() {char a; cin>>a;

¾«Ñ¡

a=a+32; cout<

µÚ11Ì⣺¹Å´úÊýѧÎÊÌâ\¼¦ÍÃͬÁý\¡£¼¦ÓëÍù²aÖ»£¬¼¦ÓëÍõÄ×ܽÅÊýΪb£¬ÊäÈëa£¬b£¬

Çó¼¦Íø÷¼¸Ö»¡£ ÑùÀýÊäÈ룺3 10 ÑùÀýÊä³ö£º1 2

#include int main() {int a,b,c,d; cin>>a>>b; c=(4*a-b)/2; d=(b-2*a)/2; cout<

µÚ12Ì⣺ÊäÈëÒ»¸öËÄλÊý£¬½«Æä¼ÓÃܺóÊä³ö¡£·½·¨Êǽ«¸ÃÊýÿһλµÄÊý×Ö¼Ó9£¬È»ºó³ýÒÔ

10È¡Óà×÷Ϊ¸ÃλÉϵÄÐÂÊý×Ö£¬×îºó½«Ç§Î»ÉϵÄÊý×ÖºÍʮλÉϵÄÊý×Ö»¥»»£¬×é³É¼ÓÃܺóµÄÐÂËÄλÊý¡£

ÑùÀýÊäÈ룺1368 ÑùÀýÊä³ö£º5207

#include int main()

{int a,g,s,b,q,a1; cin>>a; g=a;

s=(a/10); b=(a/100); q=(a/1000); g=(g+9); s=(s+9); b=(b+9); q=(q+9);

a1=g+q*10+b*100+s*1000; cout<

µÚ13Ì⣺ÓÐÒ»·Ö¶Îº¯ÊýÈçÏ£¬Çë±àд³ÌÐò£¬ÊäÈëxÖµ£¬Êä³öyÖµ¡£

¾«Ñ¡

C++Ìâ¿â´óÈ«

µÚ1Ì⣺ÊäÈë5Сд×Öĸ£¬½«ÆäÒë³ÉÃÜÂë¡£ÃÜÂë¹æÂÉÊÇ£ºÓÃÔ­À´µÄ×ÖĸºóÃæµÚ4¸ö×Öĸ´úÌæÔ­À´µÄ×Öĸ¡£ÀýÈ磬ÊäÈë¡°ahoux¡±£¬¡®a¡¯->¡®b¡¯->¡®c¡¯->¡®d¡¯->¡®e¡¯£¬ËùÒÔ×Öĸ¡®a¡¯ºóÃæµÚ4¸ö×ÖĸÊÇ¡®e¡¯£¬Óá®e¡¯´úÌæ¡®a¡¯£»×Öĸ¡®x¡¯ºóÃæ²»×ã4¸ö×Öĸ£¬Ôò´Ó¡®a¡¯¿ªÊ¼²¹³ä£¬¡®x¡¯->¡®y¡¯->¡®z¡¯->¡®a¡¯->¡®b¡¯£¬ËùÒÔ×Öĸ¡®x¡¯ºóÃæµÚ4¸ö×ÖĸÊÇ¡®b¡¯£¬Óá®b¡¯´úÌæ¡®x¡¯¡£Òò
ÍƼö¶È£º
µã»÷ÏÂÔØÎĵµÎĵµÎªdoc¸ñʽ
2vpej2fw7a670et7c26i4qfr01784a016no
ÁìÈ¡¸£Àû

΢ÐÅɨÂëÁìÈ¡¸£Àû

΢ÐÅɨÂë·ÖÏí