Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
Sell your Land, House on idamata.lk for FREE
sajith.xp.pk
Updated:
Yesterday at 9:03 AM
Handmade Character Soft Toys
anil1961
Updated:
Tuesday at 2:11 PM
Bodim.lk out now !
Manoj Suranga Bandara
Updated:
Sunday at 3:05 AM
Power Lifting Lever Belt
SkullVamp
Updated:
Jun 13, 2026
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Jun 13, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
ElaKiri Programmer's Club
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="amilapradeep100" data-source="post: 18016222" data-attributes="member: 305312"><p><span style="font-size: 12px">මෙහි එක් වරක් නිවැරදි passward භාවිතා කර ඇතුළු විය හැකි නමුත් එක් වරක් වැරදි password භාවිතා කර නැවත නිවැරදි password භාවිතා කලද ඇතුළු විය නොහැකිය අනේ උදව් කරන සේක්වා...</span></p><p></p><p>#include<iostream></p><p>#include<string></p><p>#include <conio.h></p><p>using namespace std;</p><p></p><p>void m();</p><p>void m2();</p><p>void main()</p><p>{</p><p> int counter =3;</p><p> string username;</p><p> string passward;</p><p> system ("color 12");</p><p> while(counter>0)</p><p> {</p><p>cout<<"=========================================================="<<endl;</p><p>cout<<" "<<endl;</p><p>cout<<"Enter your username and passward to loging to the system "<<endl; </p><p>cout<<""<<endl;</p><p>cout<<"========================================================== "<<endl;</p><p>cout<<"Enter username = ";</p><p>cin>>username;</p><p>char ch;</p><p>cout<<"Enter passward = ";</p><p> ch = _getch();</p><p> while(ch != 13){//character 13 is enter</p><p> passward.push_back(ch);</p><p> cout << '*';</p><p> ch = _getch();</p><p> </p><p> }</p><p></p><p></p><p>if((username=="user")&&(passward=="pass"))</p><p>{</p><p> cout<<""<<endl;</p><p> cout<<"=========================================="<<endl;</p><p> cout<<"Welcome To 66666 "<<endl;</p><p> cout<<"=========================================="<<endl;</p><p>cout<<""<<endl;</p><p>m2();</p><p> {</p><p> bool quit=false;</p><p> char z;</p><p> </p><p> m2();</p><p> while(quit==false) {//start while</p><p> cout<<"select a "<<endl;</p><p> cin>>z;</p><p> switch(z) </p><p> {</p><p> case 'a': cout<<"Item List "<<endl;</p><p> </p><p> </p><p> default:cout<<"Wrong selection.Use only a,b,c,d"<<endl;</p><p> system ("pause");</p><p> }</p><p></p><p>char z;</p><p>cout<<"do you want to continue y/n"<<endl;</p><p>cin>>z;</p><p>if(z=='y'||z=='y')</p><p>m2();</p><p>else if (z=='n'||z=='N')</p><p> quit=true;</p><p> }//end while</p><p>break;</p><p> }</p><p>}</p><p> else </p><p> { cout<<""<<endl;</p><p> cout<<"wrong passward or username"<<endl;</p><p>}</p><p>counter--;</p><p> }</p><p> if(counter==0)</p><p> { cout<<"unauthorized user.Contac administrator"<<endl;</p><p> }</p><p> else</p><p> {</p><p> m();</p><p> }</p><p> system("pause");</p><p>}</p><p>void m()</p><p>{</p><p>}</p><p>void m2()</p><p>{</p><p>}</p><p></p><p></p><p></p><p></p><p><span style="font-size: 12px">මෙහි එක් වරක් නිවැරදි passward භාවිතා කර ඇතුළු විය හැකි නමුත් එක් වරක් වැරදි password භාවිතා කර නැවත නිවැරදි password භාවිතා කලද ඇතුළු විය නොහැකිය අනේ උදව් කරන සේක්වා...</span></p></blockquote><p></p>
[QUOTE="amilapradeep100, post: 18016222, member: 305312"] [SIZE=3]මෙහි එක් වරක් නිවැරදි passward භාවිතා කර ඇතුළු විය හැකි නමුත් එක් වරක් වැරදි password භාවිතා කර නැවත නිවැරදි password භාවිතා කලද ඇතුළු විය නොහැකිය අනේ උදව් කරන සේක්වා...[/SIZE] #include<iostream> #include<string> #include <conio.h> using namespace std; void m(); void m2(); void main() { int counter =3; string username; string passward; system ("color 12"); while(counter>0) { cout<<"=========================================================="<<endl; cout<<" "<<endl; cout<<"Enter your username and passward to loging to the system "<<endl; cout<<""<<endl; cout<<"========================================================== "<<endl; cout<<"Enter username = "; cin>>username; char ch; cout<<"Enter passward = "; ch = _getch(); while(ch != 13){//character 13 is enter passward.push_back(ch); cout << '*'; ch = _getch(); } if((username=="user")&&(passward=="pass")) { cout<<""<<endl; cout<<"=========================================="<<endl; cout<<"Welcome To 66666 "<<endl; cout<<"=========================================="<<endl; cout<<""<<endl; m2(); { bool quit=false; char z; m2(); while(quit==false) {//start while cout<<"select a "<<endl; cin>>z; switch(z) { case 'a': cout<<"Item List "<<endl; default:cout<<"Wrong selection.Use only a,b,c,d"<<endl; system ("pause"); } char z; cout<<"do you want to continue y/n"<<endl; cin>>z; if(z=='y'||z=='y') m2(); else if (z=='n'||z=='N') quit=true; }//end while break; } } else { cout<<""<<endl; cout<<"wrong passward or username"<<endl; } counter--; } if(counter==0) { cout<<"unauthorized user.Contac administrator"<<endl; } else { m(); } system("pause"); } void m() { } void m2() { } [SIZE=3]මෙහි එක් වරක් නිවැරදි passward භාවිතා කර ඇතුළු විය හැකි නමුත් එක් වරක් වැරදි password භාවිතා කර නැවත නිවැරදි password භාවිතා කලද ඇතුළු විය නොහැකිය අනේ උදව් කරන සේක්වා...[/SIZE] [/QUOTE]
Insert quotes…
Verification
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom