That's easy! Exctept that args[0] is the function call parameter eg.
1 2 3 4 5 6
#include <iostream>
int main(int argc, char* argv[])
{
std::cout<<argv[0];
}
Try it and you see it's the file path to your program's exe.
So, you need argv[1], argv[2] and argv[3].
for the int and long use atoi and atol, but for the mystruct, I'll need to see an example, becouse I don't know the format!