C++编程思想(两卷合订本)
最新书摘:
-
[已注销]2021-02-11像任何人类语言一样,C++提供了一种表达思想的方法。如果这种表达方法是成功的,那么当问题变得更大和更复杂时,该方法将会明显的表现出比其他方法更容易和更灵活的优点。
-
prife2014-04-09construction Jackcopy construction JackJackfree Jackconstruction MARYMARYfree MARYfree Jack
-
prife2014-04-09$ g++ c12TypeConversation.cpp c12TypeConversation.cpp: 在函数‘int main()’中:c12TypeConversation.cpp:48:20: 错误: 对‘Person::Person(Person)’的调用没有匹配的函数c12TypeConversation.cpp:48:20: 附注: 备选是:c12TypeConversation.cpp:19:5: 附注: Person::Person(const char*)c12TypeConversation.cpp:19:5: 附注: no known conversion for argument 1 from ‘Person’ to ‘const char*’c12TypeConversation.cpp:9:5: 附注: Person::Person(Person&)c12TypeConversation.cpp:9:5: 附注: no known conversion for argument 1 from ‘Person’ to ‘Person&’c12TypeConversation.cpp:39:6: 错误: 初始化‘void whatname(Person)’的实参 1
-
[已注销]2013-05-22But, and this is an important point, as soon as you decide to write your own copy-constructor and assignment operator, the compiler assumes that you know what you’re doing and does not automatically call the base-class versions, as it does in the synthesized functions. If you want the base class versions called (and you typically do) then you must explicitly call them yourself.
-
邻家の躺平人2012-12-21与刚才忽略不满足判定函数的元素不同...
-
[已注销]2011-12-16在C中,我们常常发现能使程序通过编译,然后我们必须再花力气使它工作。