Documente Academic
Documente Profesional
Documente Cultură
h>
Union num
Int value I;
Float value f;
Double value d;
Char value c;
//value1=100;
Test value={100};
Cout<<\ninteger=<<Test val.value1<<endl;
Cout<<Float=<<Test val.valueF<<endl;
Cout<<some rubbish???<<endl;
Test val.valueC=u;
Cout<<CHARACTER=<<Test val.value<<endl;
#include<iostream.h>
#include<stdlib.h>
Vehicle parts()
Int wheels;
Int seats;
Vehicle parts()
This->wheels=wheels;This->seats=seats;
#include<iostream.h>
Union my types-t
Void main()
Inti;
Float f;
Char c;
My types;
Int main()
My types.c=H;
My types.i=15;
My types(PAUSE);
Return 0;