bahi sawal ak dafa phir clear nahi hay .. app nayyah nahi bataya kay app kiss tarah yah program bana cahtay ho ??? Khair mujhay jo samjh aya osay may nay nahiyat hi asan coding may bana diyah hay .. app try karoo . agar app yah nahi cahtay to phir say likhna
Code:
#include<iostream.h>
#include<conio.h>
main()
{
char a[50]="Moeed >>> Mooderator>>> Student";
char b[50]="Sheeda_pastool >>> Moderator >>> Nice Man";
int c;
cout<<"press the Number of person you want to get data\n";
cout<<"1. Moeed\n"<<"2.Sheeda_pastool\n\n";
cin>>c;
if(c=1)
{
cout<<a;
}
else
{
cout<<b;
}
getch();
}
Bookmarks