there are blanks in the question as the pro gramme need some codes and definitions to get completed.
Please help me in completing this problem.
than x in advance.

#include <iostream.h>
#include <conio.h>
#include <fstream.h>
//---------------function prototypes-----------------------------------------
int menu();
void screenHold();
void enter();
void report();
void save();
void load();

//Global variable to hold number of employees
int numOfEmployees = 0;

char name [10][80]; //array holds employee names
char phone[10][20]; //array holds phone numbers
float hours[10]; //hours worked per employee
float wage[10]; //hourly rate per employee
 
int main()
{
Complete the code here -- do-loop or while-loop

return 0;
}

//------------------------------------------------------------------
//---------------------function definitions-------------------------

//Display menu
int menu()
{
Complete the code here -- Page 5 top

return choice;
}


//Enter Information
void enter()
{

//clear the screen
system(“cls”);
cout <<"How many employees do you want to enter\n";
cin >> numOfEmployees;
//Ignore the carriage return line feed
cin.ignore();
Complete the code here -- For-loop

}

//Display report
void report()
{
for(int j = 0; j < numOfEmployees; j++)
{
Complete the code here -- 3(or 4) lines Page 6 top

screenHold();
}
}

void screenHold()
{
cout <<"\nPress any key to continue\n";
getch();

}
void save()
{	
//Create a file stream and attach it to a file
ofstream out;
out.open("employee.bin",ios::out|ios::binary);
out.write((unsigned char*)(&name), sizeof(name));
Complete the code here

system(“cls”);
cout <<"Data written to file\n";
screenHold();
out.close();

}

void load()
{


//create an input stream and attach to file
ifstream in;
in.open("employee.bin",ios::in|ios::binary);
in.read((unsigned char*)(&name), sizeof(name));
Complete the code here


in.read((unsigned char*) (&numOfEmployees), sizeof(numOfEmployees));
system(“cls”);
cout <<"Data read from file\n";
screenHold();
in.close()

Lol use the automatic programme completer.
That is available here:
http://www.daniweb.com/forums/announcement8-2.html

The above post was in regard to the title of your thread.

Now, I would like you to rephrase your question and ask us for help if necessary.
Apart from that you will need to tell where exactly are you having the problem. Or which part of the code.

commented: Works for me :) +33

The most Honest Post I have ever seen !!! This person has directly shown us the places where we need to code for him. Wow !!! He is honestly saying "Look guys i have commented in places where you need to put in your codes,and better do it fast".:D This is hilarious !!!

The most Honest Post I have ever seen !!! This person has directly shown us the places where we need to code for him. Wow !!! He is honestly saying "Look guys i have commented in places where you need to put in your codes,and better do it fast".:D This is hilarious !!!

QFT.
@kabeer62, I do suppose you're good enough to program this yourself since the functions you use and the style is still very basic, like mine. I could finish off this code without any test runs in about 2 hrs? Debugging would take at most another hour. How difficult can this be? Maybe lesser than 3 hrs is enough for this. Here's a little breakdown. The report and save function can be completed in under 15 minutes each. The load function shouldn't take you more than half an hour. Screenhold, 15 seconds? (Do you even need this?) Why not use system("Pause"); Menu should only take you 10 mins. Enter would take a little more time. Probably an hour plus. A total of 2 hours plus, without debugging. As long as you are careful with your syntax, and plan out your program properly, I don't see why you will face any problems with bugs and so on. If you're familiar enough with this level of programming, you don't even need to plan. Just spam codes.

Here it goes

int main(){/*Complete the code here */
/* Done */
return 0;}

Here it goes

int main(){/*Complete the code here */
/* Done */
return 0;}

WIN

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.