The simple password program in C++ language.
Language Used
This program is made in C++ language.
CODING
#include
using namespace std;
int main(){
int a,z;
string b;
float c;
int x;
string e;
int f;
string q;
cout<<" Welcome to alpha pheniox 1.1"<<endl;
cout<<"1.create your account press 1"<<endl;
cout<<"2.login"<<endl;
cout<<"3.leave"<<endl;
cin>>a;
switch (a){
case 1:
cout<<"Enter Your Username"<<endl;
cin>>b;
cout<<"Enter Your Password.remember password should be in integers'in numbers'"<<endl;
cin>>c;
cout<<"Welcome "<<b<<endl;
cout<<"confimation code is sent to your email come back and enter confirmation code"<<endl;
cout<<"press any key to exit"<<endl;
break;
case 2:
cout<<"Enter Your Username"<<endl;
cin>>e;
cout<<"Enter Your Password"<<endl;
cin>>f;
if(e"sabi"&&f0000){
cout<<"Login Sucessful"<<endl;
cout<<"press 4 to go to your profile"<<endl;
}else{
cout<<"not registered. go to sign up menu"<<endl;
}
cin>>x;
if(x4){
cout<<"Welcome "<<b<<endl;
cout<<"press any key to sign out"<<endl;
if(q"exit"){
return 0;
}
}
cout<<"bye Sabi"<<endl;
break;
case 3:
return 0;
break;
case 4:
cout<<"input the test thing"<<endl;
cin>>z;
int y [2][5] ={
{
000,001,002,003,004
},
{
005,006,007,8,9
}
};
if(z==y [0][3]){
cout<<"weldone sabi"<<endl;
}
else{
cout<<"failure"<<endl;
}
return 0;
}
}
Compiler Used
the compiler that I used to compile this post is CodeBlocks
Programming is fun guys
This is damn right keep in mind
I hope you guys liked it
Leave The simple password program in C++ language. to:
Read more #programming posts
Best Posts From Emperor Sabi
We have not curated any of learnandgrow's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Emperor Sabi
- Thursday freewrite__ Prompt: cityscape
- ZapFic Monday - Prompt: engagement in 240 character or less
- Poser Pro 11 - Discover the Art of the Human Form with Poser
- YELLOW PAGES SPIDER - GET THOUSANDS OF LEADS ON DEMAND
- MindGenius Business - Creating complex business idea maps, strategies,plans & more
- Quickbooks Pro - software for managing businesses effectively and efficiently
- Autodesk Revit MEP - Best for designing 2D structural and 3D model of a building
- eDrawings Professional - The Easiest Way to Share 3D Data Across CAD Environments
- GiftedMotion - GiftedMotion is a free and easy & open source GIF animator
- Blumentals WeBuilder - fast, intelligent & all in one code editor for web developer