473,395 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how about the function strtok()

ÇóÖú
ÇëÎʺ¯Êýstrtok()ÊÇÈçºÎ¹¤×÷µÄ£¿
Èç¹ûÎÒÒª½²Ò»¸ö×Ö·û´®¸ù¾Ýijһ¸ö±ê־ʵÏÖ·Ö¶Î
³ýÁËʹÓÃstrtok()»¹ÊÇ·ñÓÐÆäËû¸üÓÐЧÂʵĺ¯Êý»ò·½·¨£¿
лл
help!!
how about the strtok() function?
who can tell me how the fnction strtok to deal with the string?
and do have another function to reallize the same function but more
effective?

thax
Mar 9 '06 #1
1 2368
strtok is explained here:
http://www.cppreference.com/stdstring/strtok.html

Mahurshi Akilla

lv********@gmail.com wrote:
ÇóÖú
ÇëÎʺ¯Êýstrtok()ÊÇÈçºÎ¹¤×÷µÄ£¿
Èç¹ûÎÒÒª½²Ò»¸ö×Ö·û´®¸ù¾Ýijһ¸ö±ê־ʵÏÖ·Ö¶Î
³ýÁËʹÓÃstrtok()»¹ÊÇ·ñÓÐÆäËû¸üÓÐЧÂʵĺ¯Êý»ò·½·¨£¿
лл
help!!
how about the strtok() function?
who can tell me how the fnction strtok to deal with the string?
and do have another function to reallize the same function but more
effective?

thax

Mar 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: daniel | last post by:
Hi everyone, I'm trying to get this program compiled under Solaris. I have actually no idea about programming, sorry to bother you. Unfortunately Solaris don't use the function strsep()...
1
by: john | last post by:
Relatively new to C coding, so any help would greatly be appreciated. I'm having problems try to return my string array from my parsing function. When I do a printf I am getting the correct value...
9
by: daniel | last post by:
Hi everyone, I'm trying to get this program compiled under Solaris. Unfortunately I have little experience with C. Solaris doesn't use the function strsep() anymore: char *strsep(char...
20
by: bubunia2000 | last post by:
Hi all, I heard that strtok is not thread safe. So I want to write a sample program which will tokenize string without using strtok. Can I get a sample source code for the same. For exp:...
18
by: Robbie Hatley | last post by:
A couple of days ago I dedecided to force myself to really learn exactly what "strtok" does, and how to use it. I figured I'd just look it up in some book and that would be that. I figured...
3
by: nomad5000 | last post by:
Hi everybody! I'm having trouble using strtok to fill a matrix with int nrs. from a file. the code that is not working is the following: #include <iostream> #include <fstream> #include...
3
by: MaStA | last post by:
I have to build a pig latin converter. It isn't an in depth one that needs to care about vowels, punctuation, etc. All it has to do is simply receive a sentence, break up the words, move the first...
11
by: Lothar Behrens | last post by:
Hi, I have selected strtok to be used in my string replacement function. But I lost the last token, if there is one. This string would be replaced select "name", "vorname", "userid",...
2
by: shadow_ | last post by:
Hi i m new at C and trying to write a parser and a string class. Basicly program will read data from file and splits it into lines then lines to words. i used strtok function for splitting data to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.