| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | C++ for beginners? |
From: "Geo" Ok, I want an opinion. Here is a question we just had on our midterm for this beginners C++ class, tell me if this sounds like a problem for beginners who had one 3 hour classroom session on "classes". Problem: Write a math class, which performs the four mathematical operations (addition, subtraction, multiplication & division) and consists of two data members. The class should be a template class and should accept int, float or double data types. The class should consist of constructors and destructor. Instantiate the class with different data types and in different ways (like: Math m(5,6); Math m1; m2=m1). The class is also supposed ot consist of a display member function, which would display the output from every function. that was 1 of 6 questions on the test... Geo. (we had 1.5 hours to do the test) --- BBBS/NT v4.01 Flag-5* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45) SEEN-BY: 633/267 270 5030/786 @PATH: 379/45 1 396/45 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.