[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] C++ opdeling af streng i substrenge



Robert wrote:

> Jeg har været lidt på udkig efter en funktion som kan dele en streng op ved
> bestemte tegn (lidt i stil med Javas StringTokenizer klasse og PHP's explode
> funktion). Dvs. at strengen "bla blar    bla" kunne blive delt op til et
> eller andet i stil med: "bla","blar",bla",NULL


Kan du ikke bruge C funktionerne strtok()/strsep() ?

Ellers må du beskrive hvilken type streng du anvender.
Til typen "Strings" findes en del funktioner , så man kan evt. med
.find() & Co. let bygge den ønskede funktion på String.


-- 
mvh Frank Damgaard  | <s>http://home3.inet.tele.dk/frda/</s>



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *