Advertisement
FuncaosCAndCPluplus

getsFunction

Aug 16th, 2016
3,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <iostream>
  4. #include <string.h>  
  5.  
  6. using namespace std;
  7.    
  8. int main() {
  9.          
  10.     char c[10];    
  11.     gets(c); // Read all, what you Write at the keyboard
  12.          
  13.     int tm = strlen(c);
  14.        
  15.     for(int i=0;i<tm;i++)
  16.     cout<<c[i]<<endl;
  17.                
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement