problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing662类 参考

AcWing 662. 点的坐标 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &, ostream &)
 

详细描述

AcWing 662. 点的坐标

在文件 acwing.h399 行定义.

成员函数说明

◆ main()

int acwing::acwing662::main ( istream &  cin,
ostream &  cout 
)
static

在文件 acwing.cpp1023 行定义.

1023 {
1024 float x;
1025 float y;
1026 cin >> x >> y;
1027 if(x == 0 && y == 0) {
1028 cout << "Origem";
1029 } else if(x == 0) {
1030 cout << "Eixo Y";
1031 } else if(y == 0) {
1032 cout << "Eixo X";
1033 } else if(x > 0 && y > 0) {
1034 cout << "Q1";
1035 } else if(x < 0 && y > 0) {
1036 cout << "Q2";
1037 } else if(x < 0 && y < 0) {
1038 cout << "Q3";
1039 } else {
1040 cout << "Q4";
1041 }
1042 return 0;
1043 }

被这些函数引用 acwing::TEST().


该类的文档由以下文件生成: