ok i know some c++ cuz of you people out her thanks now i want to know about the command line arguments . Do they have to do withVB Code:
int main (int nArgs, char* pszArgs[])
if i do this
Will it work? Like how would i enter the command line arg?VB Code:
#include <stdio.h> #include <iostream.h> int main (int nVal, int nVal2, char* pszArgs[]) { int nVal3 = nVal + nVal2; cout << "The total is: " << nVal3; return 0; }
like
Add.exe 3, 4 is incorrect but whats the right way




Reply With Quote