Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <malloc.h>
- #include <iostream>
- #include <fstream>
- #include<string>
- #define memory 200
- int main()
- {
- using namespace std;
- char input_word [ 20 ], * variable_string;
- char mass [ memory ];
- FILE * input_text;
- //input_text = fopen( "input.txt","r" );
- printf( "Enter word\n" );
- gets( input_word );
- variable_string = (char*) malloc( memory );
- ifstream input_text("input.txt");
- string str;
- while ( !feof( input_text ) )
- {
- getline( input_text, str );
- }
- free( variable_string );
- //fclose( input_text );
- return 0;
- }
Add Comment
Please, Sign In to add comment