Files
seer/tests/helloprettyprint/helloprettyprint.cpp
T
2025-05-18 12:35:29 -05:00

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;
}