As you may see maxP, minP and V are vectors and d is a scalar. I tried to do this using argc, argv and found, stripping the values 0.5, 0.8 etc out avoiding the "(" and ")" rather cumbersome. I have read about the class Vector. How do I used that and also read these inputs and arguments? Thanks in advance for your responses.
If possible please provide me with a code snippet.
std::vector is just a container class, it won't help in parsing a string. You still have to parse the string. The best you can do is organise the code so its done in a convenient way,
stripping the values 0.5, 0.8 etc out avoiding the "(" and ")" rather cumbersome.
Here is a really simple example which doesn't take care of bad input:
1 2 3 4 5 6 7 8
//you need to #include <sstream>
stringstream ss ( argv[n] ); // assume argv[n] == "(0.5 0.8 0.1)";
char par;
ss >> par; // skip '('
double x,y,z;
ss >> x >> y >> z; // read the values
//use x, y, z as you wish