473,383 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

need some help with my documentation

can someone help me to document my code quickly?

//Name: Cassi Smith
//Date: March 5, 2008
//Assignment: Chapter 12 Inventory Management System
//Description: This header file makes available the functions that can be reused
by the client and data fields t
#include <string>
using namespace std;
class InventoryItem
{

public:
InventoryItem();
InventoryItem(double UPC, string itemName, int quantity, double price);

double getUPC();
string getItemName();
int getQuantity();
double getPrice();

void setUPC(double UPC);
void setItemName(string itemName);
void setQuantity(int quantity);
void setPrice(double price);

double getValueOfInventoryItem();
void writeItem();

private:
double UPC;
string itemName;
int quantity;
double price;

};
Mar 6 '08 #1
3 995
gpraghuram
1,275 Expert 1GB
can someone help me to document my code quickly?

//Name: Cassi Smith
//Date: March 5, 2008
//Assignment: Chapter 12 Inventory Management System
//Description: This header file makes available the functions that can be reused
by the client and data fields t
#include <string>
using namespace std;
class InventoryItem
{

public:
InventoryItem();
InventoryItem(double UPC, string itemName, int quantity, double price);

double getUPC();
string getItemName();
int getQuantity();
double getPrice();

void setUPC(double UPC);
void setItemName(string itemName);
void setQuantity(int quantity);
void setPrice(double price);

double getValueOfInventoryItem();
void writeItem();

private:
double UPC;
string itemName;
int quantity;
double price;

};

Try to use doxygen the open source tool to generate the documentation for your code
raghuram
Mar 6 '08 #2
Try to use doxygen the open source tool to generate the documentation for your code
raghuram
what does that mean?
Mar 6 '08 #3
MACKTEK
40
Use google, type in Doxygen, and read how to use it.

Asking someone "is there a program that can assist me to document your work?" results in: use such and such program... for example Doxygen.

Unless of course you really want someone to "document" your work for you, in that case, you are posting in the wrong forum.

If you do not understand what it means to "document" your work, then the answer is: the // creates a comment that is ignored by a program. but allows you to read information about the program.

// This is a program.
// Written by (author's name)

Expand|Select|Wrap|Line Numbers
  1. #include <string>
  2. using namespace std;
  3. class InventoryItem         // class definition -- documenting the class
  4. {
  5.  
  6. public:
  7.     InventoryItem();
  8.  
Mar 6 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mike Moum | last post by:
Greetings all, I have some questions about the bsddb package that comes with Python 2.3 that I can't find answers for. I've googled and read the documentation. 1. Does the Berkeley database...
4
by: Active8 | last post by:
I did this once and can't remember how <blush> so I read the reportlab user guid. It says to unzip the reportlab archive - this is on w2k, BTW, with Python23 - to a directory and make a file...
0
by: TDM | last post by:
Hello all, I suspect I created my own problem as I had a need to install an older version of MSDN Library so now my .NET Documentation is broken. When I run : Start/All Programs/Microsoft...
0
by: David Dolheguy | last post by:
I am in desperate need to get help in answering some questions in regards to building a DCOM Server using C#. I need to create a DCOM server using C#.NET, I realise that you first need to create...
1
by: comic_rage | last post by:
Hi, I am trying to add an annotation with a documentation, which contains several nodes. So far, I having a problem on how to code this with C#. Any help is appreciated. <xsd:annotation>...
2
by: comic_rage | last post by:
how do you add a comment line/section to an xml schema xsd file? like this <!-- =============================================================== --> <!-- =================== My comment line ...
48
by: Chad Z. Hower aka Kudzu | last post by:
A few of you may recognize me from the recent posts I have made about Indy <http://www.indyproject.org/indy.html> Those of you coming to .net from the Delphi world know truly how unique and...
8
by: pamelafluente | last post by:
I am beginning aspNet, I know well win apps. Need a simple and schematic code example to start work. This is what I need to accomplish: ---------------------- Given button and a TextBox on a...
1
by: ah123 | last post by:
Hi guys, I am resonably new to XSD so I appologise if my question is simple. I am attempting to use an XSD to validate my XML document which previously used a DTD for validation. The problem is that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.