mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
28 lines
301 B
C++
28 lines
301 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct A
|
|
{
|
|
int B;
|
|
float C;
|
|
std::string D;
|
|
std::vector<bool> E;
|
|
};
|
|
|
|
struct A f(int p)
|
|
{
|
|
A a;
|
|
a.B = p;
|
|
a.D = "asd";
|
|
a.E.push_back(p > 0);
|
|
return a;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
A a = f(1);
|
|
std::cout << a.E[0] << std::endl;
|
|
return 0;
|
|
}
|