Exforsys

Online Training

Conversion to Char

This is a discussion on Conversion to Char within the C and C++ forums, part of the Programming Talk category; Hello, vector<string> str; Is it possible to convert the above statement to char? If Yes, Kindly tell ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-26-2006, 09:47 AM
Senior Member
 
Join Date: Apr 2005
Posts: 716
lokeshm is on a distinguished road
Conversion to Char

Hello,

vector<string> str;

Is it possible to convert the above statement to char?
If Yes, Kindly tell me how with an example program.

Thank in advance.
Lokesh M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2007, 09:12 AM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
In your example stated the vector hold the string str. It is possible to get the size of vector in using the function str.size() and then you can access each character in the string by using the looping construct till the end of vector size.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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
Diff bet Interface ,Data conversion ,Data Migrations??? ashishapps Oracle Apps 0 07-27-2006 08:39 AM
Conversion Of Om Holds ! kittu Oracle Apps 0 02-11-2006 01:19 AM
Dharama Systems Sample Paper JobHelper Placement Papers 0 05-04-2005 09:50 AM
Problem with Object Conversion [in vb.net] Kartik Microsoft .NET Tutorials and Articles 1 12-28-2004 02:56 PM


All times are GMT -4. The time now is 04:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.