sending input parameters to another function

Posted by Pegah on Stack Overflow See other posts from Stack Overflow or by Pegah
Published on 2011-03-19T16:01:09Z Indexed on 2011/03/19 16:09 UTC
Read the original article Hit count: 189

Filed under:

Hi everybody, I need to send the list of the input arguments to readInput function. But the compiler gives error when I call readInput function. Could you please tell me where my mistake is?

bool readInput(netcorr net,int argc, char * argv[]);

int main(int argc, char * const argv[]) {
    netcorr net;
    bool error=readInput(net, argc, argv);
}

bool readInput(netcorr &net,int argc, char * argv[])
{
}

thanks for your help. Pegah

© Stack Overflow or respective owner

Related posts about c++