Hi, im trying have to my program get a user specified ip, then apply that ip to the end of system() as a command line option. help would be great thx!
Hi, im trying have to my program get a user specified ip, then apply that ip to the end of system() as a command line option. help would be great thx!
strcat it to a buffer, system( buffer ).Originally posted by underplay
Hi, im trying have to my program get a user specified ip, then apply that ip to the end of system() as a command line option. help would be great thx!
Quzah.
Hope is the first step on the road to disappointment.
remember im newbie can u plz set an example?
You need to try first, or at least give us a clue as to what direction we're going.Originally posted by underplay
remember im newbie can u plz set an example?
Are you working with C++ strings or C strings (char arrays) ? I guess I'll have to explain with an example:
Which are you using?Code:// C style string char ipaddress[30]; std::cin >>ipaddress; // C++ style string std::string ipaddress; std::cin >>ipaddress;
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]