- UID
- 7428
注册时间2006-1-25
阅读权限40
最后登录1970-1-1
独步武林
TA的每日心情 | 奋斗 2025-1-2 00:02 |
---|
签到天数: 935 天 [LV.10]以坛为家III
|
就从这里开始如何一步步做出注册机~
以下是代码,对高手来说算是简单的吧~
#include "iOStream.h"
#include "stdio.h"
#include "windows.h"
void main()
{
char name[50];
int mul=0,sum=0,len=0;
byte n; //Chinese
cout<<"Please Input Your Name:\n";
cin>>name;
len = strlen(name);
if(len>=6)
{
for(int i=0;i<6;i++)
{
n = name;
mul=n*2;
sum+=mul;
}
cout<<"Your Serial is:\n"<<sum+len*2<<endl;
getchar();
}
else
cout<<"your name must be at least 6 chars long !\n";
}
生成好像这样子的窗口界面就OK了~
动画要详细啊,不然看不懂的~
:handshake |
|