- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I made this small C++ program, and it won't compile. Please if someone can help me to fix these 2 errors: error C2059: syntax error : ';' error C2059: syntax error : '}' The text is not in english, but it doesn't metter, just these 2 syntax errors so it … |
|
I'm really a beginner in C++ programming, and the above problem is just a part of c++ excercise. Can somebody give me a tip how to implement this in C++? The biggest problem for me is to implement and write this: • red+yellow light on cat traffic light is 2 … |
|
What is needed for a C++ member function of a class to behave polymorphic? Please can anyone answer me to this, and if you can give me some example. Thanks. |
|
I've got these 3 questions, I didn't work so far in C++, and this is preparation for my C++ class, These questions are a little tricky and unknown to me, I tried to find the answers in Wikipedia, but I didn't manage, if anyone can answer me, please. 1.1 Can … |
|
Can anybody give me some tip or help me with some part of this problem, thank you. Write a program which creates N new threads (N is the command line argument). Every thread in the single of M seconds (M is also command line argument) generates random prime number which … |
|
I've never programed in C++, and I have just started to learn C++, but I already get a little bit to complicated homeassignement. Is there anyone willing to help me - let's say solve me this excercise. I would appreciate any help with this and if there is anyone willing … |
|
Let Wallet be a class that represents the amount of coins and bills in a purse. The class has got a data element amount of type long. The binary operator += shall be overloaded as an inline method. Identify the error in the following definition. Wallet& operator+=(Wallet& w) { // … |
|
Let class Customer { private: long id; string name; public: ... }; be part of a class definition. What is wrong with the following constructors ? Customer () { id(0); name(''X''); } Customer () ( long n, const string& s) : id(s), name(n) { } Does anyone know this? |
|
Does anyone now answer to this: Suppose class X includes a data elements common declared as public. How can it be accessed by all functions in the same name space ? |
|
Please can anyone tell me in few words What is wrong with the following class definition? whait's missing, etc. [code] Class Numeric { private: long x; public ... void set (long n) const { x = n; } long get () { return x; } const } [/code] |