107 Posted Topics

Member Avatar for lochnessmonster

According to 2003 C++ Specification this is legal. An array with no elements is created.

Member Avatar for template<>
0
90
Member Avatar for InLondon76

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 …

Member Avatar for template<>
0
325
Member Avatar for valkyrie

Do you know how to use classes yet? It would be cleaner to model your problem using classes.

Member Avatar for template<>
0
203
Member Avatar for c+-

Are you trying to define the implementation outside the class like below? [code] class SomeClass { public: void doSomething(); }; void SomeClass::doSomething() { } [/code]

Member Avatar for template<>
0
513
Member Avatar for SolidSora

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; …

Member Avatar for template<>
0
116
Member Avatar for geekme
Member Avatar for template<>
0
64
Member Avatar for Taibah

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.

Member Avatar for template<>
0
492

The End.