Declare a class (i.e., a type) called CArea and an object (i.e., a variable) of this class called obj.
This class contains four members: two data members of type int (member x and member y) with
private access and two member functions with public access: set_values() and area(). Calculate the
area of the triangle (area = 0.5*x * y). Display all the values considered for calculating an area and
the area itself. Implement the full code with Templates concept and other necessary functions to
run it.
rakib.tanbir
0
Newbie Poster
Recommended Answers
Jump to Postgood luck :)
All 3 Replies
jwenting
1,889
duckman
Team Colleague
ddanbe
2,724
Professional Procrastinator
Featured Poster
David W
131
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.