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

2 comments:

  1. This is a nice article..
    Its very easy to understand ..
    And this article is using to learn something about it..

    c#, dot.net, php tutorial, Ms sql server

    Thanks a lot..!

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

    ReplyDelete