Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(int argc, char* argv[])
- {
- int x;
- int y;
- bool z = false;
- const char *b;
- if(argc != 3)
- {
- printf("ERROR\n");
- }
- else
- {
- FILE *agent = fopen( argv[1], "r");
- FILE *dict = fopen( argv[2], "r");
- if( agent == 0 || dict == 0)
- {
- printf("ERROR\n");
- }
- else
- {
- if( z == false)
- {
- while(x = fgetc(agent) != EOF)
- {
- for(int n = -50; n < 51; n++)
- {
- x = x + n;
- const char *dict;
- const char *agent;
- b = strstr(dict, agent);
- printf("%s\n", b);
- }
- }
- if(z == true)
- {
- z = true;
- }
- else
- {
- z = false;
- }
- }
- else
- {
- printf("x\n");
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement