You are creating an undo buffer that stores data modifications.You need to ensure that the undo functionality undoes the most recent data modifications first.You also need to ensure that the undo buffer permits the storage of strings only.Which code segment should you use?()
- A、Stack<string> undoBuffer=new Stack<string>();
- B、Stack undoBuffer=new Stack();
- C、Queue
<string> undoBuffer=new Queue <string>(); - D、Queue undoBuffer=new Queue();
正确答案:A
答案解析:有
微信扫一扫手机做题