PHP Code:
//
// main.cpp
// Test
//
// Created by Giovanni Di Grezia on 22/07/13.
// Copyright (c) 2013 Giovanni Di Grezia. All rights reserved.
//
//
//
//
#include <iostream>
#include <string>
#include <exception>
using namespace std;
int main () {
char * container [5];
int i;
for (i=0;i<5;++i){
*(container+i) = new char [100];
cin.getline( *(container+i),99 );
cout.write(*(container+i),cin.gcount() -1) << endl;
}
return 0;
}