problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
acwing::acwing811类 参考

AcWing 811. 交换数值 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 
static void swap (int &x, int &y)
 

详细描述

AcWing 811. 交换数值

在文件 acwing.h1392 行定义.

成员函数说明

◆ main()

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

在文件 acwing.cpp4453 行定义.

4453 {
4454 int x;
4455 int y;
4456 cin >> x >> y;
4457 swap(x, y);
4458 cout << x << " " << y;
4459 return 0;
4460 }
static void swap(int &x, int &y)

引用了 swap().

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

◆ swap()

void acwing::acwing811::swap ( int & x,
int & y )
static

在文件 acwing.cpp4462 行定义.

4462 {
4463 const int temp = x;
4464 x = y;
4465 y = temp;
4466 }

被这些函数引用 main().


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