18 lines
220 B
C++
18 lines
220 B
C++
#include <vector>
|
|
|
|
|
|
// valid c++03:
|
|
struct thang
|
|
{
|
|
float f;
|
|
int i;
|
|
};
|
|
|
|
thang scalar = {3.14, 42};
|
|
thang anArray[] = {{1.1, 1}, {2.2, 2}, {3.3, 3}};
|
|
|
|
int main() {
|
|
// vector<thang> v = { ??? }
|
|
return 0;
|
|
}
|