5 like 4 dislike
Our T.A is trying to create a program where the program should output the number zero(0) only for an object that has two separate double values, But somehow the code below has a few errors. Please help T.A Alex to correct the program.

*******************************************************************************

 

template   class Shapes <int>

{

double width,height;

private:

Shape (int w, int h): width(w), height(h){  };

double area(void)  {

return   0;  

}

};

 

There are 4 errors in this program. Please insert the errors from left to right, top to bottom.

Error 1: $1
Error 2: $2
Error 3: $3
Error 4: $4
asked in Templates by (323 points)
edited by | 34 views
0 0
for filliing the blannk in this question do we need to correct the errors directly or just copy/paste the wrong part in the code?
0 0
Fill the blank space with whatever word or symbol is missing.. For example : cout>> "i love c++";  the error in this code is >> so you will put the correct symbol in the box which is <<..........I hope is explained clearly.. just for a hint, the first line of code has two errors. Look carefully.
0 0
no, it's not clear enough!!!
Although I know the error in your code, I cannot figure out how to write the answer.
0 0
Called for Help

7 Answers

0 like 0 dislike
Hidden content!
** * *** * *
** ***
* * **
*** **
answered by (-605 points)
0 like 0 dislike
Hidden content!
* ****** *** * int * *
* * Shapes
* *
** * *
answered by (-335 points)
0 like 0 dislike
Hidden content!
* * *** ***
*** Shapes
* * ***
answered by (-335 points)
0 like 0 dislike
Hidden content!
*** *** * * * *** * * :
*** Shapes
*
* ** *
answered by (-335 points)
0 like 0 dislike
Hidden content!
* * * ** **
** * *** Shapes
** *
answered by (-335 points)
0 like 0 dislike
Hidden content!
*** ** * * **
* *
***
**
answered by (-359 points)
0 like 0 dislike
Hidden content!
******* *
*
***
*** **
answered by (323 points)
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.68.65.156
©2016-2018

Related questions

3 like 1 dislike
28 answers
[Normal] Multichoice - asked Jun 18, 2016 in Templates by 410321328 (157 points)
Available when: Unlimited - Due to: Unlimited
| 25 views
5 like 1 dislike
28 answers
asked May 26, 2016 in Templates by thopd (11.8k points) | 31 views
6 like 2 dislike
42 answers
asked May 24, 2016 in Templates by thopd (11.8k points) | 23 views
7 like 0 dislike
0 answers
asked May 24, 2016 in Templates by thopd (11.8k points) | 41 views
2,966 questions
57,291 answers
28,945 comments
938 users