Re: How to create C++ built-in type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux