Thursday 14 May 2015

How to read string of any size in C++?

#include<iostream.h>
#include<stdio.h>
#define SIZE 1
void main( )
{
             char* str[SIZE];
             gets(str[0]);         //Read string of any string
             cout<<str[0];      
 }

No comments:

Post a Comment