|
Home
Entertainment
Recite Quran
Institute of Computing
IMS/Commerceý
Science/Agriculture
Arts/Languagesý
|
|
#1 | |||||||||||
|
Addicted to Computer
![]() ![]() ![]()
Join Date: Sep 2007 Location: ------------Age: 20
Posts: 1,103
Thanks: 320
Thanked 212 Times in 178 Posts
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
Time Spent Online: 1 Month 49 Minutes 24 Seconds
|
The simple One
Code:
#include <iostream>
using namespace std;
char email[20];
string output;
int index;
int main()
{
index=0;
cout<<"please enter and email address : ";
cin>>email;
while(email[index]!='@')
{
cout<<email[index];
index++;
}
cout<<endl;
return 0;
}
Code:
#include <iostream>
using namespace std;
char email[20];
char output[20];
int index;
int main()
{
index=0;
cout<<"please enter and email address : ";
cin>>email;
while(email[index]!='@')
{
output[index]=email[index];
index++;
}
output[index]='\0';
cout<<"Email Address Before @ sign is "<<output<<endl;
return 0;
}
__________________
![]() ![]() ![]() ![]()
|
|||||||||||
|
|
|
![]() |
| Bookmarks |
| Tags |
| address, assignment, c++, display, email, programme, sign |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
(View-All)
Members who have read this thread : 1
|
|
| killer |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| National Scholarship Programme 2010-11 ICT R&D specially for BZU and IUB | .BZU. | Alumni/Careers/Jobs | 0 | 21-01-2010 09:04 PM |
| Have you seen this funny sign boards | usman_latif_ch | Funniest Pictures | 1 | 07-01-2010 11:51 AM |
| Nokia introduces its Old Cell Phone recycling programme | usman_latif_ch | Daily News And halat-e-hazra | 0 | 13-06-2009 11:36 PM |
| This is Pakistan : Some Funny Pictures and messages on sign boards and Banners | .BZU. | Funniest Pictures | 2 | 28-02-2009 07:59 AM |
| plz share your comments about BS four years programme | engradnan_87 | Chit Chat | 1 | 29-10-2008 03:19 AM |