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

AcWing 712. 正数 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

AcWing 712. 正数

在文件 acwing.h670 行定义.

成员函数说明

◆ main()

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

在文件 acwing.cpp1876 行定义.

1876 {
1877 int count = 0;
1878 for(int i = 0; i < 6; i++) {
1879 double x;
1880 cin >> x;
1881 if(x > 0) {
1882 count++;
1883 }
1884 }
1885 cout << count << " positive numbers";
1886 return 0;
1887 }

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


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