107 Posted Topics
Re: According to 2003 C++ Specification this is legal. An array with no elements is created. | |
Re: A problem unique to multi-core is that each core has its own cache and caches between cores must be synchronized if different threads are accessing the same variable. So you may get into a situation where a shared resource has different values in the different cache, i.e. the caches did … | |
Re: Do you know how to use classes yet? It would be cleaner to model your problem using classes. | |
Re: Are you trying to define the implementation outside the class like below? [code] class SomeClass { public: void doSomething(); }; void SomeClass::doSomething() { } [/code] | |
Re: Access first letter using index 0 not 1, but make sure user entered a middle name by checking size() [code] int main( int argc, char *argv[]) { std::string middle; std::cout<<"Enter your middle name: "; std::getline(std::cin,middle); if( middle.size() ) { std::cout << "middle initial is=[" << middle[0] << "]" << std::endl; … | |
Re: Learn to think and model your problem in terms of objects and object interactions. The c++ language constructs lets you model your ideas into code. Search Google for "c++ object class design" for more information. |
The End.