Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CF_TR5_A_v15
- #define _CRT_SECURE_NO_WARNINGS
- #include <iostream>
- #include <stdio.h>
- #include <fstream>
- #include <cmath>
- using namespace std;
- int main()
- {
- //FILE *fff;
- long double x, y;
- /*ifstream file_in("angle1.txt");
- file_in >> x >> y;
- file_in.close();*/
- freopen("angle1.txt", "rt", stdin);
- scanf("%d%d", &x, &y);
- fclose(stdin);
- long double ang = 0;
- ang = atan2(y, x);
- //ofstream file_out("angle2.txt");
- ////file_out << ang;
- //fprintf(file_out, "%d", ang);
- //file_out.close();
- freopen("angle2.txt", "wt", stdout);
- printf("%d", ang);
- fclose(stdout);
- //system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement