MY name is ruhul amin

ISLAMIC UNIVERSITY OF KUSHTIA

Wednesday, March 13, 2013

using vector solve problem

#include<iostream>
#include<vector>
#include<cstdio>
using namespace std;

int main()
{
   char b;
   while((b=cin.get())!=EOF)
   {
    vector<char>a;
    a.push_back(b);
    for(int i=0;i<a.size();i--)
    cout<<a[i];
   }
    return 0;
}

No comments:

Post a Comment