欢迎来到计算机考试题库网 计算机题库官网
logo
全部科目 > 计算机考试试题及答案解析

单项选择题

Youarecreatinganundobufferthatstoresdatamodifications.Youneedtoensurethattheundofunctionalityundoesthemostrecentdatamodificationsfirst.Youalsoneedtoensurethattheundobufferpermitsthestorageofstringsonly.Whichcodesegmentshouldyouuse?()
A.Stack<string> undoBuffer=newStack<string>();
B.StackundoBuffer=newStack();
C.Queue<string>undoBuffer=newQueue<string>();
D.QueueundoBuffer=newQueue();

    A.Youneedtoensurethattheundofunctionalityundoesthemostrecentdatamodificationsfirst.Youalsoneedtoensurethattheundobufferpermitsthestorageofstringsonly.Whichcodesegmentshouldyouuse?()
    A.Stack<string>
    B.StackundoBuffer=newStack();
    C.Queue<string>undoBuffer=newQueue<string>();
    D.QueueundoBuffer=newQueue();
点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题