How can I store an escape sequence at each character of the string
when i give the string as an input to the program? Can anybody suggest
me something other than the method i mention below

#include<iostream>
#include<cstdio>
#include<cstring>

using namespace std;

int main()
{
    char s[100];

    for(int i = 0 ; i < 100 ; ++i)
    cin>>s[i];
    return 0;
}

If anyone can give me a method using gets() function in C i will be
grateful

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to