GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Saturday, March 19, 2011

CPP - Array Of Pointer

#include <iostream>
#include <string>
#include <cstdlib>
#include <map>
#include <vector>
#include <fstream>

using namespace std;

int main(int argc, char *argv[]){
    system("color 2f");

    char *data[2];
    data[0] = "Indonesia";
    data[1] = "Malaysia";

    cout << data[0] << endl;
    cout << data[1] << endl;

    return 0;
}

Share/Bookmark

1 comment:

  1. You like Microsoft centric. Where your skills orientation direct to Microsoft products.

    ReplyDelete