正在加载图片...
Programming in C++ More about struct type declarations y If the struct type declaration precedes all functions it will be visible throughout the rest of the file If it is placed within a function, only that function can use it y It is common to place struct type declarations with TypeNames in a (h) header file and #include that file y It is possible for members of different struct types to have the same identifiers Also a non-struct variable may have the same identifier as a structure member11 More about struct type declarations ➢ If the struct type declaration precedes all functions it will be visible throughout the rest of the file. If it is placed within a function, only that function can use it. ➢ It is common to place struct type declarations with TypeNames in a (.h) header file and #include that file. ➢ It is possible for members of different struct types to have the same identifiers. Also a non-struct variable may have the same identifier as a structure member
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有