05-13 07:28
Notice
Recent Posts
Recent Comments
관리 메뉴

Scientific Computing & Data Science

[C/C++] Example / String Append 본문

Programming/C&C++

[C/C++] Example / String Append

cinema4dr12 2014. 6. 12. 11:41

//
//  main.cpp
//
//  Created by gchoi on 2014. 4. 30..
//  Copyright (c) 2014년 gchoi. All rights reserved.
//


#include <iostream>
#include <string>
using namespace std;


int main( int argc , const char * argv [])
{
    string fruit1 , fruit2 ;
    fruit1 = "banana";
    fruit2 = "apple";
    fruit1.append (fruit2);
    cout << fruit1 << endl ;
   
    int myChar = getchar();
    return 0 ;
}
Comments