Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-10-2004, 09:16 PM   #1
Member (6 bit)
 
Join Date: Jul 2003
Location: NY
Posts: 49
Send a message via AIM to liquid_cool Send a message via Yahoo to liquid_cool
C++ string and char manipulation

if i have a char[ ] which and the string it represents has 3 integers followed by an unknown number of words, the third integer being the number of characters in the remaining unknown words. is there a simple way to get a char* with the words?

for example
char buffer[500];
where the buffer = "0 1 14 a test string"

is there an easy way to get a char* with "a test string" if the number of digits in the third integer is unknown and the third integer represents the number of characters in the string following it?

I was trying to do it with sscanf, but couldn't figure out how to scan in a string containing whitespace.
liquid_cool is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:14 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2