confuse with geth() in function prototype


i'm confuse either which line should i put the getch() to display the final result properly.When i refer to the book ,it mentioned about using namespace std instead of the conio & getch(),but my compiler is borland C++ ,some kind of old stuff and cannot use the using namespace std.





#include <iostream>
#include <conio>

void first ();
void second ();

int main()
{
cout <<"I am starting in function main.\n";
first();
second();
cout <<"Back in function main again.\n";
return 0;

}

void first()
{
cout <<"I am now inside the function first.\n";

}

void second()
{
cout <<"i am now inside the function second.\n";

}

Yeah...from what I've heard, Borland seems to not be very good...I would suggest moving to Dev-C++/VC++/Ecplise if you can.

Anyway, I think you want the getch() right before you return 0.
Topic archived. No new replies allowed.