1.微软çRegCleanåè¶
级å
åå¢ä¸ªå¥½?兔游收租源码
2.Cè¯è¨ç»¼å设计
微软çRegCleanåè¶ çº§å åå¢ä¸ªå¥½?
è§çREGCELAN好äºããè¶ çº§å ååè½å¤äº
ç¨åºæºç ï¼
软硬交æµï¼
éªå®¢å¤©å°ï¼
Cè¯è¨ç»¼å设计
å¦æ对楼主æ帮å©ï¼ç»ä¸ªé纳好ä¸ï¼è°¢è°¢å¦1.ç¨åºåæï¼å¯å¡«å¨ç¾ä½ãåä½ã个ä½çæ°åé½æ¯1ã2ã3ã4ãç»æææçæåååå»
æä¸æ»¡è¶³æ¡ä»¶çæåã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
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);
}
getch();
}
==============================================================
ãç¨åº2ã
é¢ç®ï¼ä¼ä¸åæ¾çå¥éæ ¹æ®å©æ¶¦ææãå©æ¶¦(I)ä½äºæçäºä¸å æ¶ï¼å¥éå¯æ%ï¼å©æ¶¦é«
äºä¸å ï¼ä½äºä¸å æ¶ï¼ä½äºä¸å çé¨åæ%ææï¼é«äºä¸å çé¨åï¼å¯å¯æ
æ7.5%ï¼ä¸å°ä¸ä¹é´æ¶ï¼é«äºä¸å çé¨åï¼å¯ææ5%ï¼ä¸å°ä¸ä¹é´æ¶é«äº
ä¸å çé¨åï¼å¯ææ3%ï¼ä¸å°ä¸ä¹é´æ¶ï¼é«äºä¸å çé¨åï¼å¯ææ1.5%ï¼é«äº
ä¸å æ¶ï¼è¶ è¿ä¸å çé¨åæ1%ææï¼ä»é®çè¾å ¥å½æå©æ¶¦Iï¼æ±åºåæ¾å¥éæ»æ°ï¼
1.ç¨åºåæï¼è¯·å©ç¨æ°è½´æ¥åçï¼å®ä½ã注æå®ä¹æ¶éæå¥éå®ä¹æé¿æ´åããããããã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
long int i;
int bonus1,bonus2,bonus4,bonus6,bonus,bonus;
scanf("%ld",&i);
bonus1=*0. 1;
bonus2=bonus1+*0.;
bonus4=bonus2+*0.5;
bonus6=bonus4+*0.3;
bonus=bonus6+*0.;
if(i<=)
bonus=i*0.1;
else if(i<=)
bonus=bonus1+(i-)*0.;
else if(i<=)
bonus=bonus2+(i-)*0.;
else if(i<=)
bonus=bonus4+(i-)*0.;
else if(i<=)
bonus=bonus6+(i-)*0.;
else
bonus=bonus+(i-)*0.;
printf("bonus=%d",bonus);
getch();
}
==============================================================
ãç¨åº3ã
é¢ç®ï¼ä¸ä¸ªæ´æ°ï¼å®å ä¸åæ¯ä¸ä¸ªå®å ¨å¹³æ¹æ°ï¼åå ä¸åæ¯ä¸ä¸ªå®å ¨å¹³æ¹æ°ï¼è¯·é®è¯¥æ°æ¯å¤å°ï¼
1.ç¨åºåæï¼å¨ä¸ä»¥å å¤æï¼å å°è¯¥æ°å ä¸ååå¼æ¹ï¼åå°è¯¥æ°å ä¸ååå¼æ¹ï¼å¦æå¼æ¹å
çç»æ满足å¦ä¸æ¡ä»¶ï¼å³æ¯ç»æã请çå ·ä½åæï¼
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "math.h"
#include "stdio.h"
#include "conio.h"
main()
{
long int i,x,y,z;
for (i=1;i<;i++)
{
x=sqrt(i+); /*x为å ä¸åå¼æ¹åçç»æ*/
y=sqrt(i+); /*y为åå ä¸åå¼æ¹åçç»æ*/
if(x*x==i+&&y*y==i+) /*å¦æä¸ä¸ªæ°çå¹³æ¹æ ¹çå¹³æ¹çäºè¯¥æ°ï¼è¿è¯´ææ¤æ°æ¯å®å ¨å¹³æ¹æ°*/
printf("\n%ld\n",i);
}
getch();
}
==============================================================
ãç¨åº4ã
é¢ç®ï¼è¾å ¥æå¹´ææææ¥ï¼å¤æè¿ä¸å¤©æ¯è¿ä¸å¹´ç第å 天ï¼
1.ç¨åºåæï¼ä»¥3æ5æ¥ä¸ºä¾ï¼åºè¯¥å æå两个æçå èµ·æ¥ï¼ç¶ååå ä¸5天å³æ¬å¹´ç第å 天ï¼ç¹æ®
æ åµï¼é°å¹´ä¸è¾å ¥æ份大äº3æ¶éèèå¤å ä¸å¤©ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int day,month,year,sum,leap;
printf("\nplease input year,month,day\n");
scanf("%d,%d,%d",&year,&month,&day);
switch(month) /*å 计ç®ææ以åæ份çæ»å¤©æ°*/
{
case 1:sum=0;break;
case 2:sum=;break;
case 3:sum=;break;
case 4:sum=;break;
case 5:sum=;break;
case 6:sum=;break;
case 7:sum=;break;
case 8:sum=;break;
case 9:sum=;break;
case :sum=;break;
case :sum=;break;
case :sum=;break;
default:printf("data error");break;
}
sum=sum+day; /*åå ä¸æ天ç天æ°*/
if(year%==0||(year%4==0&&year%!=0)) /*å¤ææ¯ä¸æ¯é°å¹´*/
leap=1;
else
leap=0;
if(leap==1&&month>2) /*å¦ææ¯é°å¹´ä¸æ份大äº2,æ»å¤©æ°åºè¯¥å ä¸å¤©*/
sum++;
printf("It is the %dth day.",sum);
getch();
}
==============================================================
ãç¨åº5ã
é¢ç®ï¼è¾å ¥ä¸ä¸ªæ´æ°x,y,zï¼è¯·æè¿ä¸ä¸ªæ°ç±å°å°å¤§è¾åºã
1.ç¨åºåæï¼æ们æ³åæ³ææå°çæ°æ¾å°xä¸ï¼å å°xä¸yè¿è¡æ¯è¾ï¼å¦æx>yåå°xä¸yçå¼è¿è¡äº¤æ¢ï¼
ç¶ååç¨xä¸zè¿è¡æ¯è¾ï¼å¦æx>zåå°xä¸zçå¼è¿è¡äº¤æ¢ï¼è¿æ ·è½ä½¿xæå°ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int x,y,z,t;
scanf("%d%d%d",&x,&y,&z);
if (x>y)
{ t=x;x=y;y=t;} /*交æ¢x,yçå¼*/
if(x>z)
{ t=z;z=x;x=t;} /*交æ¢x,zçå¼*/
if(y>z)
{ t=y;y=z;z=t;} /*交æ¢z,yçå¼*/
printf("small to big: %d %d %d\n",x,y,z);
getch();
}
==============================================================
ãç¨åº6ã
é¢ç®ï¼ç¨*å·è¾åºåæ¯Cçå¾æ¡ã
1.ç¨åºåæï¼å¯å ç¨'*'å·å¨çº¸ä¸ååºåæ¯Cï¼ååè¡è¾åºã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
printf("Hello C-world!\n");
printf(" ****\n");
printf(" *\n");
printf(" * \n");
printf(" ****\n");
getch();
}
==============================================================
ãç¨åº7ã
é¢ç®ï¼è¾åºç¹æ®å¾æ¡ï¼è¯·å¨cç¯å¢ä¸è¿è¡ï¼çä¸çï¼Very Beautiful!
1.ç¨åºåæï¼åç¬¦å ±æ个ãä¸åå符ï¼å¾å½¢ä¸ä¸æ ·ããããããã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
char a=,b=;
printf("%c%c%c%c%c\n",b,a,a,a,b);
printf("%c%c%c%c%c\n",a,b,a,b,a);
printf("%c%c%c%c%c\n",a,a,b,a,a);
printf("%c%c%c%c%c\n",a,b,a,b,a);
printf("%c%c%c%c%c\n",b,a,a,a,b);
getch();
}
==============================================================
ãç¨åº8ã
é¢ç®ï¼è¾åº9*9å£è¯ã
1.ç¨åºåæï¼åè¡ä¸åèèï¼å ±9è¡9åï¼iæ§å¶è¡ï¼jæ§å¶åã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int i,j,result;
printf("\n");
for (i=1;i<;i++)
{
for(j=1;j<;j++)
{
result=i*j;
printf("%d*%d=%-3d",i,j,result); /*-3d表示左对é½ï¼å 3ä½*/
}
printf("\n"); /*æ¯ä¸è¡åæ¢è¡*/
}
getch();
}
==============================================================
ãç¨åº9ã
é¢ç®ï¼è¦æ±è¾åºå½é 象æ£æ£çã
1.ç¨åºåæï¼ç¨iæ§å¶è¡ï¼jæ¥æ§å¶åï¼æ ¹æ®i+jçåçååæ¥æ§å¶è¾åºé»æ¹æ ¼ï¼è¿æ¯ç½æ¹æ ¼ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int i,j;
for(i=0;i<8;i++)
{
for(j=0;j<8;j++)
if((i+j)%2==0)
printf("%c%c",,);
else
printf(" ");
printf("\n");
}
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼æå°æ¥¼æ¢¯ï¼åæ¶å¨æ¥¼æ¢¯ä¸æ¹æå°ä¸¤ä¸ªç¬è¸ã
1.ç¨åºåæï¼ç¨iæ§å¶è¡ï¼jæ¥æ§å¶åï¼jæ ¹æ®içååæ¥æ§å¶è¾åºé»æ¹æ ¼ç个æ°ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int i,j;
printf("\1\1\n"); /*è¾åºä¸¤ä¸ªç¬è¸*/
for(i=1;i<;i++)
{
for(j=1;j<=i;j++)
printf("%c%c",,);
printf("\n");
}
getch();
}
ãç¨åºã
é¢ç®ï¼å¤å ¸é®é¢ï¼æä¸å¯¹å åï¼ä»åºçå第3个æèµ·æ¯ä¸ªæé½çä¸å¯¹å åï¼å°å åé¿å°ç¬¬ä¸ä¸ªæ
åæ¯ä¸ªæåçä¸å¯¹å åï¼åå¦å åé½ä¸æ»ï¼é®æ¯ä¸ªæçå åæ»æ°ä¸ºå¤å°ï¼
1.ç¨åºåæï¼ãå åçè§å¾ä¸ºæ°å1,1,2,3,5,8,,....
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
long f1,f2;
int i;
f1=f2=1;
for(i=1;i<=;i++)
{
printf("%ld %ld",f1,f2);
if(i%2==0) printf("\n"); /*æ§å¶è¾åºï¼æ¯è¡å个*/
f1=f1+f2; /*å两个æå èµ·æ¥èµå¼ç»ç¬¬ä¸ä¸ªæ*/
f2=f1+f2; /*å两个æå èµ·æ¥èµå¼ç»ç¬¬ä¸ä¸ªæ*/
}
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼å¤æ-ä¹é´æå¤å°ä¸ªç´ æ°ï¼å¹¶è¾åºææç´ æ°ã
1.ç¨åºåæï¼å¤æç´ æ°çæ¹æ³ï¼ç¨ä¸ä¸ªæ°åå«å»é¤2å°sqrt(è¿ä¸ªæ°)ï¼å¦æè½è¢«æ´é¤ï¼
å表ææ¤æ°ä¸æ¯ç´ æ°ï¼åä¹æ¯ç´ æ°ã ãããããã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
#include "math.h"
main()
{
int m,i,k,h=0,leap=1;
printf("\n");
for(m=;m<=;m++)
{
k=sqrt(m+1);
for(i=2;i<=k;i++)
if(m%i==0)
{
leap=0;
break;
}
if(leap)
{
printf("%-4d",m);
h++;
if(h%==0)
printf("\n");
}
leap=1;
}
printf("\nThe total is %d",h);
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼æå°åºææçâæ°´ä»è±æ°âï¼æè°âæ°´ä»è±æ°âæ¯æä¸ä¸ªä¸ä½æ°ï¼å ¶åä½æ°åç«æ¹åçäºè¯¥æ°
æ¬èº«ãä¾å¦ï¼æ¯ä¸ä¸ªâæ°´ä»è±æ°âï¼å 为=1çä¸æ¬¡æ¹ï¼5çä¸æ¬¡æ¹ï¼3çä¸æ¬¡æ¹ã
1.ç¨åºåæï¼å©ç¨for循ç¯æ§å¶-个æ°ï¼æ¯ä¸ªæ°å解åºä¸ªä½ï¼åä½ï¼ç¾ä½ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int i,j,k,n;
printf("'water flower'number is:");
for(n=;n<;n++)
{
i=n/;/*å解åºç¾ä½*/
j=n/%;/*å解åºåä½*/
k=n%;/*å解åºä¸ªä½*/
if(i*+j*+k==i*i*i+j*j*j+k*k*k)
printf("%-5d",n);
}
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼å°ä¸ä¸ªæ£æ´æ°å解质å æ°ãä¾å¦ï¼è¾å ¥,æå°åº=2*3*3*5ã
ç¨åºåæï¼å¯¹nè¿è¡å解质å æ°ï¼åºå æ¾å°ä¸ä¸ªæå°çè´¨æ°kï¼ç¶åæä¸è¿°æ¥éª¤å®æï¼
(1)å¦æè¿ä¸ªè´¨æ°æ°çäºnï¼å说æå解质å æ°çè¿ç¨å·²ç»ç»æï¼æå°åºå³å¯ã
(2)å¦æn<>kï¼ä½nè½è¢«kæ´é¤ï¼ååºæå°åºkçå¼ï¼å¹¶ç¨né¤ä»¥kçå,ä½ä¸ºæ°çæ£æ´æ°ä½ n,
éå¤æ§è¡ç¬¬ä¸æ¥ã
(3)å¦ænä¸è½è¢«kæ´é¤ï¼åç¨k+1ä½ä¸ºkçå¼,éå¤æ§è¡ç¬¬ä¸æ¥ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
/* zheng int is divided yinshu*/
#include "stdio.h"
#include "conio.h"
main()
{
int n,i;
printf("\nplease input a number:\n");
scanf("%d",&n);
printf("%d=",n);
for(i=2;i<=n;i++)
while(n!=i)
{
if(n%i==0)
{
printf("%d*",i);
n=n/i;
}
else
break;
}
printf("%d",n);
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼å©ç¨æ¡ä»¶è¿ç®ç¬¦çåµå¥æ¥å®ææ¤é¢ï¼å¦ä¹ æ绩>=åçåå¦ç¨A表示ï¼-åä¹é´çç¨B表示ï¼
å以ä¸çç¨C表示ã
1.ç¨åºåæï¼(a>b)?a:bè¿æ¯æ¡ä»¶è¿ç®ç¬¦çåºæ¬ä¾åã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int score;
char grade;
printf("please input a score\n");
scanf("%d",&score);
grade=score>=?'A':(score>=?'B':'C');
printf("%d belongs to %c",score,grade);
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼è¾å ¥ä¸¤ä¸ªæ£æ´æ°månï¼æ±å ¶æå¤§å ¬çº¦æ°åæå°å ¬åæ°ã
1.ç¨åºåæï¼å©ç¨è¾é¤æ³ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int a,b,num1,num2,temp;
printf("please input two numbers:\n");
scanf("%d,%d",&num1,&num2);
if(num1<num2)/*交æ¢ä¸¤ä¸ªæ°ï¼ä½¿å¤§æ°æ¾å¨num1ä¸*/
{
temp=num1;
num1=num2;
num2=temp;
}
a=num1;b=num2;
while(b!=0)/*å©ç¨è¾é¤æ³ï¼ç´å°b为0为æ¢*/
{
temp=a%b;
a=b;
b=temp;
}
printf("gongyueshu:%d\n",a);
printf("gongbeishu:%d\n",num1*num2/a);
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼è¾å ¥ä¸è¡å符ï¼åå«ç»è®¡åºå ¶ä¸è±æåæ¯ãç©ºæ ¼ãæ°ååå ¶å®å符ç个æ°ã
1.ç¨åºåæï¼å©ç¨whileè¯å¥,æ¡ä»¶ä¸ºè¾å ¥çå符ä¸ä¸º'\n'.
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
char c;
int letters=0,space=0,digit=0,others=0;
printf("please input some characters\n");
while((c=getchar())!='\n')
{
if(c>='a'&&c<='z'||c>='A'&&c<='Z')
letters++;
else if(c==' ')
space++;
else if(c>='0'&&c<='9')
digit++;
else
others++;
}
printf("all in all:char=%d space=%d digit=%d others=%d\n",letters,
space,digit,others);
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼æ±s=a+aa+aaa+aaaa+aa...açå¼ï¼å ¶ä¸aæ¯ä¸ä¸ªæ°åãä¾å¦2++++(æ¤æ¶
å ±æ5个æ°ç¸å )ï¼å 个æ°ç¸å æé®çæ§å¶ã
1.ç¨åºåæï¼å ³é®æ¯è®¡ç®åºæ¯ä¸é¡¹çå¼ã
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
int a,n,count=1;
long int sn=0,tn=0;
printf("please input a and n\n");
scanf("%d,%d",&a,&n);
printf("a=%d,n=%d\n",a,n);
while(count<=n)
{
tn=tn+a;
sn=sn+tn;
a=a*;
++count;
}
printf("a+aa+...=%ld\n",sn);
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼ä¸ä¸ªæ°å¦ææ°å¥½çäºå®çå åä¹åï¼è¿ä¸ªæ°å°±ç§°ä¸ºâå®æ°âãä¾å¦6=1ï¼2ï¼3.ç¼ç¨
æ¾åºä»¥å çææå®æ°ã
1. ç¨åºåæï¼è¯·åç §ç¨åº<--ä¸é¡µç¨åº.
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "conio.h"
main()
{
static int k[];
int i,j,n,s;
for(j=2;j<;j++)
{
n=-1;
s=j;
for(i=1;i<j;i++)
{
if((j%i)==0)
{
n++;
s=s-i;
k[n]=i;
}
}
if(s==0)
{
printf("%d is a wanshu",j);
for(i=0;i<n;i++)
printf("%d,",k);
printf("%d\n",k[n]);
}
}
getch();
}
==============================================================
ãç¨åºã
é¢ç®ï¼ä¸çä»ç±³é«åº¦èªç±è½ä¸ï¼æ¯æ¬¡è½å°ååè·³ååé«åº¦çä¸åï¼åè½ä¸ï¼æ±å®å¨
第次è½å°æ¶ï¼å ±ç»è¿å¤å°ç±³ï¼ç¬¬æ¬¡åå¼¹å¤é«ï¼
1.ç¨åºåæï¼è§ä¸é¢æ³¨é
2.ç¨åºæºä»£ç ï¼
å¤å¶ä»£ç 代ç å¦ä¸:
#include "stdio.h"
#include "stdio.h"
main()
{
float sn=.0,hn=sn/2;
int n;
for(n=2;n<=;n++)
{
sn=sn+2*hn;/*第n次è½å°æ¶å ±ç»è¿çç±³æ°*/
hn=hn/2; /*第n次åè·³é«åº¦*/
}
printf("the total of road is %f\n",sn);
printf("the tenth is %f meter\n",hn);
getch();
}