Currently i have:
message.h:
#ifndef MESSAGE_H
#define MESSAGE_H
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
Type: Posts; User: TransformedBG
Currently i have:
message.h:
#ifndef MESSAGE_H
#define MESSAGE_H
#include <iostream>
#include <fstream>
#include <sstream>
using namespace std;
Okay how do i find the largest dementions of a box?
wait i want it to be like double yCoor = yCoor huh?
I guess the problem im having is trying to describe a box using points. If it was anything else i might get it. Like a data base or sometihng i dont know. Anyways, they are exzactly the same:
...
now i have a problem with this:
void setXCoor(double);
void setYCoor(double);
void setZCoor(double);
Okay wait that worked. Okay quesiont how would i find the largestDemention or the smallest demintion?
or do i want it to be double xCoor?
Okay but if i make it
double getXCoor(double);
and
double XYZBox::getXCoor(double) //depth
i get:
C:\...Box.cpp(55) : error C2440: 'return' : cannot convert from 'class XYZPoint' to...
Okay so what if i want it to be a part of XYZBox, but use my XYZPoint class get_coor function?
Okay im looking at this as a function:
double getXCoor();
double is the return type, get_Coor is the function call, and (n?) is what i want? correct?
now
double XYZBox::get_Coor()
{
Okay do i need to post sometihng like
XYZBox::XYZPoint; somewhere?
Okay so i did this and got the get_Coor to work.
double XYZPoint::getXCoor() //depth
{
return xCoor;
}
double XYZPoint::getYCoor() //width
Currently my mission in life is to write a box class which consists of:
So my point class is already done and works:
Point.h
...