本文介绍了伟大的c ++问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 实现一个c ++类,它允许我们在运行时添加数据成员 。 解决方案 Amar Kumar Dubedy写道: 实现了一个c ++类,它允许我们 在运行时添加数据成员。 这是一个很好的答案,不可能。 我认为Coplien有一些代码*在''高级C ++中'模拟*这个编程样式和成语''。 john 6月21日上午6:48,Amar Kumar Dubedy< adub ... @ yahoo.co.inwrote: 实现了一个c ++类,它允许我们 来添加数据成员在运行时。 世界上谁想要那个? 6月21日,10:50 am,John Harrison< john_androni ... @ hotmail.com> 写道: Amar Kumar Dubedy写道: 实现了一个c ++类,它允许我们在运行时添加数据成员。 这是一个很好的答案,不可能。 我认为Coplien有一些代码*模拟*这个' '高级C ++ 编程风格和成语'' john 我以为这也不可能。但是在雅虎访谈中提出了一个问题。所以我认为我会把它推上去。 implement a c++ class such that it allows usto add data members at runtime. 解决方案 Amar Kumar Dubedy wrote:implement a c++ class such that it allows usto add data members at runtime. Here''s a great answer, impossible.I think Coplien has some code that *simulates* this in ''Advanced C++Programming Styles and Idioms''. johnOn Jun 21, 6:48 am, Amar Kumar Dubedy <adub...@yahoo.co.inwrote:implement a c++ class such that it allows usto add data members at runtime.Who in the world would want that? On Jun 21, 10:50 am, John Harrison <john_androni...@hotmail.com>wrote:Amar Kumar Dubedy wrote: implement a c++ class such that it allows us to add data members at runtime. Here''s a great answer, impossible.I think Coplien has some code that *simulates* this in ''Advanced C++Programming Styles and Idioms''.johnI thought that it was impossible too. But its a question asked inYahoo Interview. So i thought i wud put it up. 这篇关于伟大的c ++问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-01 17:43