argv[] pass to header file..?

how do I pass char* argv[] parameters from the main to some header files?

1
2
3
4
5
6
7

int main (int argc, char* argv[] )
{
		
	go(????)
	return 0;
}//int main() 


1
2
3
4
5
6
head.h

go( ???? ) ????
{
//do ....
}


thanks 4 your help
Last edited on
1
2
3
4
5
6
7
8
9
10
11
//main.cpp
int main(int argc, char *argv[]) {
  go(argc, argv);
    //you probably want to pass argc as well so you know the length of argv
  ...
}
//--------------------------------------------------------------------------
//go.h
void go(int argc, char *argv[]) {
  ...
}
Last edited on
Topic archived. No new replies allowed.