BZU Multan Student Community


HOME BZU Mail Box Online Games Radio and TV Cricket All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan > Institute of Computing > Bachelor of Science in Information Technology > BsIT 3rd Semester > Data Structure

Data Structure Lectures by Sir Ahsan..

Ad

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Old 02-09-2008, 06:51 AM   #1
Addicted to Computer


 
BSIT07-01's Avatar
 
Join Date: Sep 2007


Location: ------------
Age: 22
Posts: 1,336
Thanks: 597
Thanked 354 Times in 287 Posts
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Time Spent Online: 1 Month 3 Days 8 Hours 29 Minutes 9 Seconds
Default [C++] Programme to display an email address before @ sign

The simple One
#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; }
An extended One

#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; }

Advertisement
Views: 780
BSIT07-01 is offline  
Reply With Quote
Top 10 Lists

Reply

Tags
address, assignment, c++, display, email, programme, sign


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Funny Sign Boards... Raheel Funniest Pictures 0 19-05-2010 04:00 PM
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
plz share your comments about BS four years programme engradnan_87 Chit Chat 1 29-10-2008 04:19 AM

Best view in Firefox
Free File Hosting | Webmaster Forum | Cloud Computing | Dedicated server hosting
Note: This is an unofficial Site...
All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.