Guest User

Untitled

a guest
Jul 22nd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <malloc.h>
  4. #include <iostream>
  5. #include <fstream>
  6. #include<string>
  7. #define memory 200
  8.  
  9. int main()
  10. {
  11. using namespace std;
  12. char input_word [ 20 ], * variable_string;
  13. char mass [ memory ];
  14.  
  15. FILE * input_text;
  16.  
  17. //input_text = fopen( "input.txt","r" );
  18.  
  19. printf( "Enter word\n" );
  20.  
  21. gets( input_word );
  22.  
  23. variable_string = (char*) malloc( memory );
  24.  
  25. ifstream input_text("input.txt");
  26. string str;
  27.  
  28. while ( !feof( input_text ) )
  29. {
  30. getline( input_text, str );
  31. }
  32.  
  33. free( variable_string );
  34. //fclose( input_text );
  35. return 0;
  36. }
Add Comment
Please, Sign In to add comment