You are on page 1of 1

/*Crihan Liviu Cristian, 2011, Lab_10_Pr_06 (Messages in an array of pointers)*/

#define _CRT_SECURE_NO_WARNINGS
#include<conio.h>
#include<stdio.h>
#include<iostream>
using namespace std;

void main()
{
char* p[] = { "FIRST MESSAGE \n", "SECOND MESSAGE \n", "THIRD MESSAGE \n",
"FORTH MESSAGE " };
int i;
for (i = 0; i < 4; i++)
cout << p[i] << " ";
_getch();
}

You might also like