MESSAGE
DATE | 2008-08-01 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] C++ Workshop 2.34
|
Date: Fri, 1 Aug 2008 15:53:52 -0400 From: Ruben Safir To: Ruben Safir Subject: Re: your mail In-Reply-To: <48936841.mailNKK11V5FN-at-www2.mrbrklyn.com> User-Agent: Mutt/1.5.6i
While working on a few tings, I'm making a mock up of basic medical patients calculations for drug therapy. Using our new found C++ techniques I've started contructing an API using a head file called phar.h which should be attached.
Hopefully, we'l work this out to be very functional tool for working on live hospitalized patients, using Oriented Design and C++ and then building an appropriate front end, maybe in ncurses, for data input.
Ruben
#ifndef PHARM_H #define PHARM_H #endif #ifndef STRING_H #define STRING_H #include #endif
useing namespace std
class DOSEING;
class DOSEING{ public: DOSEING(); explicit DOSEING(float weight,float height,int age); explicit DOSEING(float weight,float height,int age, float srcr ); explicit DOSEING(string first, string last, float weight, float height,int age); explicit DOSEING(string first, string last, float weight, float height,int age, float srce); float weight(){return weight_}; float height(){return height_}; float srcr() {return srcr_}; int weight(){return age_}; string& first(){return first_} string& last(){return last_}
private: float weight_; float height_; float srcr_; int age_; string first_; string last_; string address_; float crcl_; };
-- http://www.mrbrklyn.com - Interesting Stuff http://www.nylxs.com - Leadership Development in Free Software
So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998
http://fairuse.nylxs.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
"Yeah - I write Free Software...so SUE ME"
"The tremendous problem we face is that we are becoming sharecroppers to our own cultural heritage -- we need the ability to participate in our own society."
"> I'm an engineer. I choose the best tool for the job, politics be damned.< You must be a stupid engineer then, because politcs and technology have been attached at the hip since the 1st dynasty in Ancient Egypt. I guess you missed that one."
© Copyright for the Digital Millennium
|
|