Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ String Example

#include <iostream>  
using namespace std;  
int main( ) {  
        string one = "Welcome to";    
        char ch[] = { 'S', 'o', 'f', 't', 'h', 'u', 'n', 't'};    
        string two = string(ch);    
        cout<<one<<endl;    
        cout<<two<<endl;    
}
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #String #Example
ADD COMMENT
Topic
Name
6+6 =