c++用户登录注册系统

上传人:洪易 文档编号:32416783 上传时间:2018-02-11 格式:DOC 页数:5 大小:26.50KB
返回 下载 相关 举报
c++用户登录注册系统_第1页
第1页 / 共5页
c++用户登录注册系统_第2页
第2页 / 共5页
c++用户登录注册系统_第3页
第3页 / 共5页
c++用户登录注册系统_第4页
第4页 / 共5页
c++用户登录注册系统_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《c++用户登录注册系统》由会员分享,可在线阅读,更多相关《c++用户登录注册系统(5页珍藏版)》请在金锄头文库上搜索。

1、用户登录注册#include stdafx.h#include iostream#include string#include stdlib.h#include string#include conio.h#include fstream#include windows.husing namespace std;struct userstring name;string password;void nterface(user custum);int main()void login();void regist();int options;cout options;while (options!

2、=1&options!=2)cout options; cout name;cout 0)cout custumer.name custumer.password)if (custumer.name = name&custumer.password = password)cout custumer.name custumer.password)elsecout name;while (fin custumer.name custumer.password)if (custumer.name = name) i+;if (i 0)cout 0)cout 0)cout test test;pass

3、word2i- = 0;elseif (i 20)cout *;password2i = test;i+;password2i = 0;if (strcmp(password,password2)!=0)cout endl 两次输入密码不一致,请重新注册。 。 。 endl;Sleep(3000);system(CLS);regist();elsecoutendl 注册成功!撸一发庆祝一下;ofstream fout;fout.open(user.txt,ios_base:out|ios_base:app);fout name password endl;fout.close();coutendl 3 秒后跳到登录界面.;Sleep(3000);void nterface(user custum)system(CLS);cout 您好!custum.name endlendl;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 教育/培训

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号