i am new here,still not familiar with the code.So my Question is i have been given an assignment on how to design a class,pointType , that can store and process a point in the x-y plane. The program should perform setting and printing coordinate of the point, returning the x- coordinate and y- coordinate .and also write a program to test various operations on that point. thanks for the help.
xonxon -4 Light Poster
Recommended Answers
Jump to PostIf you have been given an assignment, that would insinuate that you have been to class. Have you payed attention at all? Taken any notes? Instructors don't often make you do things they have never instructed you on.
Jump to Posti am new here,still not familiar with the code.So my Question is i have been given an assignment on how to design a class,pointType , that can store and process a point in the x-y plane. The program should perform setting and printing coordinate of the point, returning the x- …
Jump to PostA good idea is to learn about Classes before you start coding anything.
Then you can draw (on paper) what your class should look like. What memberfunctions, what variables.
Which part should be private, which public?
If you answer these questions, you'll have your header-file (.h) …
All 10 Replies
cikara21 37 Posting Whiz
ArkM 1,090 Postaholic
death_oclock 103 Posting Whiz
ace_man -1 Newbie Poster
death_oclock commented: How very... professional -1
ithelp 757 Posting Virtuoso Banned
xonxon -4 Light Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
xonxon -4 Light Poster
xonxon -4 Light Poster
Stefano Mtangoo 455 Senior Poster
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.