Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str = ReadLine(fin);
- if (str != NULL)
- {
- fprintf(fout, "%s", str);
- i = 0;
- while (isspace(str[i]) != 0)
- i++;
- if (str[i] == 0 || ((str[i + 1] == '/') && (str[i] == '/')))
- {
- fprintf(fout, "\n");
- }
- else
- {
- if (i > 0)
- fprintf(fout, " == ERROR: impossible\n");
- else
- {
- for (i = 0; str[i] != 0; i++)
- {
- if (str[i] == '(')
- inp++;
- if (str[i] == ')')
- exp++;
- }
- if (inp != exp)
- {
- fprintf(fout, " == ERROR: not skobok\n");
- inp = 0;
- exp = 0;
- }
- else
- fprintf(fout, " == %g\n", 56.676);
- }
- }
- free(str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement