[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

C++ tipy

#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()

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