How to extract words from char type string

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jun 2007
Posts: 82
Reputation: hinduengg is an unknown quantity at this point 
Solved Threads: 3
hinduengg's Avatar
hinduengg hinduengg is offline Offline
Junior Poster in Training

Re: How to extract words from char type string

 
0
  #21
Jun 16th, 2007
By input stream you refer to Array and whitespace-blank?
Or it is the same stream which we use in file operations.
I generally deal with arrays of char size-100.For this means that it will store upto 100 charecters .Right?

Thank you ,I am reading about poniters
by the link you send

You are really nice in explainations
Last edited by hinduengg; Jun 16th, 2007 at 11:26 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,868
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 755
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: How to extract words from char type string

 
0
  #22
Jun 16th, 2007
>By input stream you refer to Array and whitespace-blank?
cin is an input stream. cout is an output stream.

>For this means that it will store upto 100 charecters .Right?
If it's just an array, yes. If it's a string, it will store up to 99 characters and always leave room for the '\0' terminator at the end of every C-style string.
New members chased away this month: 5
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 82
Reputation: hinduengg is an unknown quantity at this point 
Solved Threads: 3
hinduengg's Avatar
hinduengg hinduengg is offline Offline
Junior Poster in Training

Re: How to extract words from char type string

 
0
  #23
Jun 16th, 2007
Very well.I am getting it. With the link I would be able to understand about syntax for creation of n sized 1D,2D ARRAYS of char and int type for that is one thing that I cant understand at all and learn.

By the way I want to make sure that concept of and use of pointers is same in both Cand C++
for i am restricted to C++

Thank you for taking up so much pains .I will not tax you more for now.Even my college cant explain as well as you do.Thank you once again
Last edited by hinduengg; Jun 16th, 2007 at 11:57 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,868
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 755
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: How to extract words from char type string

 
0
  #24
Jun 16th, 2007
>By the way I want to make sure that concept of and use of pointers is
>same in both Cand C++ for i am restricted to C++
I can't think of any glaring differences that you'll encounter. For the most part, what you learn in C can be applied to C++.
New members chased away this month: 5
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum


Views: 9211 | Replies: 23
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC