Hey steemit and steemians.
here is password program and item program in C++.
Program Body:
#include <iostream>
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"&&f==0000){
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(x==4){
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;
}
}
Item program
Program Body:
#include<iostream>
using namespace std;
int main (){
int *pointer= 0;
cout<<"how many items you want"<<endl;
int itemsno;
cin>>itemsno;
pointer=new int [itemsno];
int nitem;
for(int no_s=0;no_s<itemsno;no_s++){
cout<<"enter the item no "<<no_s+1<<endl;
cin>>nitem;
*(pointer+no_s)=nitem;
}
for(int no=0;no<itemsno;no++){
cout<<"item is "<<*(pointer+no)<<endl;
}
delete pointer;
}
Yeah! Learn and Grow! Moving on! Good day!👍
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks @nismhd ..I hope you will do good here
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You're welcome @learnandgrow. Thansk😀
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
😊
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has received gratitude of 1.05 % from @appreciator thanks to: @learnandgrow.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You got a 1.75% upvote from @postpromoter courtesy of @learnandgrow!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
This post has received a 3.31 % upvote from @boomerang thanks to: @learnandgrow
@boomerang distributes 100% of the SBD and up to 80% of the Curation Rewards to STEEM POWER Delegators. If you want to bid for votes or want to delegate SP please read the @boomerang whitepaper.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit