[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
user:ptacek:c [2007/03/14 11:20]
ptacek
user:ptacek:c [2007/03/14 11:33]
ptacek
Line 2: Line 2:
  
 <​code>​ <​code>​
-string -> char * = std::​string.c_str()+#include <​string>​ 
 +use namespace std; 
 +string(); 
 +string( const string& s ); 
 +string( size_type length, const char& ch ); 
 +string( const char* str ); 
 +string( const char* str, size_type length ); 
 +string( const string& str, size_type index, size_type length ); 
 +string( input_iterator start, input_iterator end ); 
 +~string();​ 
 + 
 + 
 +string str1( 5, '​c'​ ); 
 +string str2( "Now is the time..."​ ); 
 +string str3( str2, 11, 4 ); 
 + 
 + 
 +string -> (char *= std::​string.c_str()
 </​code>​ </​code>​

[ Back to the navigation ] [ Back to the content ]