Hey,everyone. Today, l try write some code but without include any header file, but this code run well. In my opinion, if we want use something in c++ we need to include it's header file into our program. But why these keyword no need to include any header file ?
If they aren't in header file, where they are? l tried to google ,but just can't find the answer. so please help. Thanks.
this the code:
class a
{
public:
int d;
int b;
private:
};
struct B
{
double c;
};
int A( const int &a, const double &b )
{
int justTest = 5;
int aa = a;
int bb = b;
return bb;
}
union MyUnion
{
int a;
int b;
struct c
{
double ad;
};
};
int main()
{
a in;
in.d = 0;
in.d -= 5;
in.b = 6;
in.d -= in.b;
return 0;
}