On 08/15/2009 08:57 PM, Klesk wrote:
Hi C++ has many built-in types (int, float etc.), how to create a new built-in type for example - how to make 'Test' defined as struct: 'Test { int a,b; };' built-in type, so that for example this code would be correct: int main() { int x = 100; Test z; // it's not defined, but it's built-in type so it should be OK z.a = x; return 0; }
"Built-in" means it's... built-in. You can't add to the list of built-in types because they're built-in.