正在加载图片...
解决方法:让函数成为结构的成员 //An example of a C-like library, an array-like entity created at runtime struct Stash int size //Size of each space int quantity //Number of storage spaces int next / next empty space / Dynamically allocated array of bytes unsigned char x storage // Functions void initialize( int size) void cleanup () int add(const void* element void* fetch( int index int count void inflate(int increase)解决方法:让函数成为结构的成员 //An example of a C-like library, an array-like entity created at runtime. struct Stash { int size; //Size of each space int quantity; //Number of storage spaces int next; // next empty space // Dynamically allocated array of bytes: unsigned char* storage; // Functions! void initialize ( int size); void cleanup ( ); int add(const void * element ); void * fetch ( int index ); int count ( ); void inflate (int increase) ; }///
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有