I need to get an argument and convert it to an int. Here is my code so far:
#include using namespace std; int main(int argc,int argvx[]) {
Like that we can do....
int main(int argc, char *argv[]) { int a, b, c; *// Converting string type to integer type // using function "atoi( argument)"* a = atoi(argv[1]); b = atoi(argv[2]); c = atoi(argv[3]); }