2012-02-15 02:36:32 +00:00
|
|
|
#include <stdio.h>
|
2012-03-27 02:35:13 +00:00
|
|
|
#include <vector>
|
2012-02-15 02:36:32 +00:00
|
|
|
|
|
|
|
|
struct JustAStruct
|
|
|
|
|
{
|
|
|
|
|
int A;
|
|
|
|
|
float B;
|
|
|
|
|
char C;
|
|
|
|
|
double D;
|
|
|
|
|
long E;
|
|
|
|
|
short F;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct FooType
|
|
|
|
|
{
|
|
|
|
|
int A;
|
|
|
|
|
float B;
|
|
|
|
|
char C;
|
|
|
|
|
double D;
|
|
|
|
|
long E;
|
|
|
|
|
short F;
|
|
|
|
|
};
|
|
|
|
|
|
2015-06-26 23:57:38 +00:00
|
|
|
struct CCC
|
|
|
|
|
{
|
|
|
|
|
int a, b, c;
|
|
|
|
|
};
|
|
|
|
|
|
2015-07-24 21:30:58 +00:00
|
|
|
struct Empty1 { void *data; };
|
|
|
|
|
struct Empty2 { void *data; };
|
|
|
|
|
|
2015-06-26 23:57:38 +00:00
|
|
|
|
2012-02-15 02:36:32 +00:00
|
|
|
int main(int argc, char const *argv[]) {
|
|
|
|
|
JustAStruct foo;
|
|
|
|
|
foo.A = 1;
|
|
|
|
|
foo.B = 3.14;
|
|
|
|
|
foo.C = 'e';
|
|
|
|
|
foo.D = 6.28;
|
|
|
|
|
foo.E = 3100419850;
|
2012-04-24 02:01:17 +00:00
|
|
|
foo.F = 0;
|
2015-06-26 23:57:38 +00:00
|
|
|
|
2012-02-15 02:36:32 +00:00
|
|
|
FooType bar;
|
|
|
|
|
bar.A = 1;
|
|
|
|
|
bar.B = 3.14;
|
|
|
|
|
bar.C = 'e';
|
|
|
|
|
bar.D = 6.28;
|
|
|
|
|
bar.E = 3100419850;
|
2012-04-24 02:01:17 +00:00
|
|
|
bar.F = 0;
|
2012-02-15 02:36:32 +00:00
|
|
|
JustAStruct* foo_ptr = &foo;
|
2015-06-26 23:57:38 +00:00
|
|
|
|
2012-03-27 02:35:13 +00:00
|
|
|
std::vector<int> int_vector;
|
2015-06-26 23:57:38 +00:00
|
|
|
|
|
|
|
|
CCC ccc = {111, 222, 333};
|
|
|
|
|
|
2015-07-24 21:30:58 +00:00
|
|
|
Empty1 e1;
|
|
|
|
|
Empty2 e2;
|
|
|
|
|
|
2012-02-15 02:36:32 +00:00
|
|
|
return 0; // Set break point at this line.
|
|
|
|
|
}
|