求C\C++程序

[复制链接]
查看11 | 回复2 | 2007-11-19 19:43:29 | 显示全部楼层 |阅读模式
/*密码:031548 只有密码输入正确,才能进入plus程序.*/ #include #include void plus() { int a,b,m; printf("please enter two integer:"); scanf("%i%i",&a,&b); m=a+b; printf("\n %i + %i =%i",a,b,m); } int main(void) { char c[6]; char m[6]; m[0]='0',m[1]='3',m[2]='1',m[3]='5',m[4]='4',m[5]='8'; int i; printf("please enter the code:"); for(i=0;i='0'||c='a'||c='A'||c #include void plus() { int a,b,m; printf("please enter two integer:"); scanf("%i%i",&a,&b); m=a+b; printf("\n %i + %i =%i",a,b,m); } int main(void) { char c[6]; char m[6]; m[0]='0',m[1]='3',m[2]='1',m[3]='5',m[4]='4',m[5]='8'; int i; printf("please enter the code:"); for(i=0;i='0'||c='a'||c='A'||c<='Z') putchar('*'); } if(c[0]==m[0]&&c[1]==m[1]&&c[2]==m[2]&&c[3]==m[3]&&c[4]==m[4]&&c[5]==m[5]) { printf("\nwelcome to the programe!\n"); plus(); } else printf("\nthe code is wrong!"); while(1); return 0;
回复

使用道具 举报

千问 | 2007-11-19 19:43:29 | 显示全部楼层
现在谁还用ACCESS
回复

使用道具 举报

千问 | 2007-11-19 19:43:29 | 显示全部楼层
我们学校专周做了个不过没那么完整 你要的话加2188029可以参考
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行