Forum: C Mar 25th, 2005 |
| Replies: 11 Views: 3,943 Hi,
You are not using the correct object. You can't use the << operator on a string. You can on the ostringstream object.
#include <iostream>
#include <iomanip>
#include <sstream>
... |
Forum: IT Professionals' Lounge Mar 25th, 2005 |
| Replies: 1 Views: 3,990 Hi,
I work full time in a non-computer industry and am looking for a online school or more specific a college that provides online classes for a Computer Science degree. I am taking classes at... |
Forum: C++ Mar 24th, 2005 |
| Replies: 0 Views: 3,787 Hi,
I am writing a couples class, one base, and one derived to track an employees pay records. It has a static private ptr array to store Employee and EmployeePay objects.
static Employee*... |
Forum: C++ Mar 24th, 2005 |
| Replies: 12 Views: 3,726 What you are trying to do is composition. Copmposition is a "has a" relationship. Class Student "has an" object of class date. But you are declaring it wrong. Try this:
date newDate;
That... |
Forum: C++ Mar 24th, 2005 |
| Replies: 12 Views: 3,726 Hi Dani,
Actually you can use cin to get a char[], but you can go out of bounds on the char[] if the user typed more than was allocated. You get an out of bounds debug error. But you are correct... |
Forum: C++ Mar 24th, 2005 |
| Replies: 12 Views: 3,726 Hello,
You have a couple of design problems. Let me point them out.
in your main you are passing a string literal(or constant) to the setName
function. You got the name from user and stored it... |
Forum: C# Oct 24th, 2004 |
| Replies: 2 Views: 5,983 Hi,
I am thinking about writing a program to compare MP3's in different directories that will compare file size, ID3 tags, bit rate etc. I want to be able to search the computer for MP3 files,... |
Forum: Computer Science Dec 28th, 2003 |
| Replies: 27 Views: 10,702 Hi, I am a almost thirtysomething, going back to school at night while working full time. I decided that it was time to get an education to enable me to break out of the Cable industry and into the... |