here's my problem,
i wanted to connect void 1(); to void 2()
because
void 1()
this is where i put the code for the employee's id and name

void 2()
this is where all the computation goes on..
hmm..there is gonna be a time in and time out
which are going to have a month and the no. of days..
the problem is i don't really know how to do that or is there a way to do that or not.
can someone help me? Thanks... i hope someone would response to me..

call the second routine from the first with the employee's id and name as parameters something like this should work:

#include <iostream>
#include <string>
using namespace std;
void Routine1();
void Routine2(string ID, string Name);
int main()
{

    cin.ignore();
    cin.get();
    return 0;
}
void Routine1()
{
    string ID = "";
    string Name = "";
    Routine2(ID,Name);
}
void Routine2(string ID, string Name)
{

}
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.