|
head dezee wrote: - constructor to initialize the object
Yes.
head dezee wrote: - destructor to destroy the object
Yes.
head dezee wrote: - set and get function for the employee name
Absolutly.
head dezee wrote: - set and get function for the hoursWorked
a Necessity.
head dezee wrote: - salaryPayment to calculate the pay for the employee
No way José!!
head dezee wrote: - show data to display the Employee information which are name, hoursWorked, and salary
You don't say !
so now, have you done anything for your homework ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
head dezee wrote: * please help me...i need it as soon as possible (urgent)
Sure. What time does your class end? If I get stuck doing this for you, can I ask the instructor for help?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
we need to resolve it within 2 hours... please...i need your help...now i'm not in the class....
* i need the coding for source file 1 , source file 2, and header file.... pleaseeeeee
this is the coding that i have make...i dont know why it have error
------------------------------------------------------------------------------
//employee.cpp
#include<iostream>
#include<string>
#include"Employee.h"
using namespace std;
Employee::Employee() // default constructor
{
EmployeeName=0;
hourWork=0;
}
Employee::Employee(const char NamaPekerja, double hour, double gaji)//overloading constructor
{
NamaPekerja=EmployeeName;
hour=hourWork;
gaji=salaryPayment;
}
Employee::~Employee()//destructor
{
cout<<"object destroyed!"
<
|
|
|
|
|
head dezee wrote:
we need to resolve it within 2 hours...
And what happens if it is not resolved within two hours?
head dezee wrote: now i'm not in the class
Why not? If you are not in the class, does that mean the problem ceases to exist, or has already been solved? Have others in the class been equally perplexed?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
the class will be continue within 2 hours... so i need to resolve this problem in 2 hours... this is my project.... i have make the coding but it have errors... i dont know why the errors exist....
|
|
|
|
|
What errors ? compilation errors ? run-time errors ? computation errors ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
compilation error....it said unidentified object...
|
|
|
|
|
In reference to what kind of object? You would stand a much better chance of receiving useful help if you'd volunteer just a wee bit of information rather than playing the 20-question game.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
hi,
can multiple threads access and send messages to the same dialog resources ( text boxes, lists,..)at the same time ? i.e one increments a progress bar, the other responds to menu commands etc.
thx
|
|
|
|
|
saadani wrote: can multiple threads access and send messages to the same dialog resources ( text boxes, lists,..)at the same time ?
Sort of. It's better to post those messages to the control's parent instead.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Not exactly. The thread that creates a window is the only thread that can pump messages for that window. So multiple threads can all send/post messages to a window, but only one thread can process them.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I have the following data in anexcel file.
A B C D
1.1 2.2 6.9 3.2
6 8.0 79 92.4
7.4 4.9 7.1
0.123 4 0.00457 64
64 0.04
3.2 88 7.2564 1.92
35.2 0.123 0.5768 95
1 2 3
5 6 7 8
9 10 12
Now my question is i need to sync the file.
i have read the first row, i.e 1.1,2.2,6.9,3.2 and stored it in a CArray.so, the size of my CArray would be 4.
It has all the elements in the row. It is ok.
Similarly i read the second row.Fine.
When i read the third row the second element is missing(Empty). If any one the elements is missing i need to ignore the row and get the next row.
How can i do this?
|
|
|
|
|
cuteee wrote: If any one the elements is missing i need to ignore the row and get the next row.
How can i do this?
Just count the number of delimeters. Each of your rows should have three. Any less, discard and move on.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thanks it worked.
I have one more question
I have the following header list
A B C D Fan Light Bulb Balloon H I J
I have read the headers into a CArray called HeaderList
I need to put Fan, Light, bulb and ballon in a seperate CArray. Here the column number of Fan,Light, bulb and ballon are 5,6,7,8 respectively. But the column numbers are not constant always.
How can i do this?
|
|
|
|
|
cuteee wrote: I have read the headers into a CArray called HeaderList
I need to put Fan, Light, bulb and ballon in a seperate CArray. Here the column number of Fan,Light, bulb and ballon are 5,6,7,8 respectively. But the column numbers are not constant always.
How can i do this?
For each item in the CArray object, if its length is greater than one, add it to a separate CArray object.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Let me rephrase the question.
I have the following header list
Apple Boy C Dent Fan Light Bulb Balloon Go Ink J
I have read the headers into a CArray called HeaderList
I need to put Fan, Light, bulb and ballon in a seperate CArray. Here the column number of Fan,Light, bulb and ballon are 5,6,7,8 respectively. But the column numbers are not constant always.
How can i do this?
|
|
|
|
|
For each item in the CArray object, if its one of {Fan, Light, Bulb, Balloon}, add it to a separate CArray object. Any better?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hello all people,
I need make a application that update the BIOS information:
Vendor name, BIOS Version, BIOS build date and more.
I used to know that I have to use the 52h function. I don´t know how complex is this task.
somebody have a code to make this. may be in any language ( mainly in C/C++).
thanks all!
|
|
|
|
|
How to create an error log?
|
|
|
|
|
One way:
fopen("error.log", "w"); Other ways exist, too.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Thanks for the I just couldn't help it.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
I am trying to port a C++ code project to C#. I am stuck on this code snippet. Can you please tell me what the DWORD RESERVED[2] means in the following struct? I have never seen anything like it before. It looks like a mixture of number and array.
struct TRAYDATA
{
HWND hwnd;
UINT uID;
UINT uCallbackMessage;
DWORD Reserved[2];
HICON hIcon;
};
|
|
|
|
|
Two DWORD s, nothing more than that or a 8-byte buffer just taking up space.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
James, thanks for pulling me through. All this C++ nuances can drive you nUtZ!
|
|
|
|