class user
{
public:
............
protected:
................
};
int main()
{
cin>>n;
user one[n]?
}
请查看ATL、WTL相关的书箱或者数据结构中关于栈、队列、线性链表等思想的介绍。
1 #include <list> 2 class user 3 { 4 public: 5 ............ 6 protected: 7 ................ 8 }; 9 int main() 10 { 11 cin>>n; 12 user one[n]? 13 } 14 15 list<User> listUser; 16 listUser.Add(new User); 17 .................... 18 User myUser=listUser[0]; 19 ....................
谢谢!
谢谢