Thursday, July 30, 2009

Need help with variables in System() calls (C++)?

Ok heres a snippet of the source code:


http://writer.zoho.com/public/theangryba...


I know the system command I want [system(start http://yourwebsite.com)], but I want to be able to enter a website by using the 'cin' function then using that website in the system function (thus it could be unique everytime). Ask any Qs if your confused...

Need help with variables in System() calls (C++)?
Start with the system command (http://www.cplusplus.com/reference/clibr... ). It requires a C string as a parameter.





If you can create a C++ string containing the command, then you need to use c_str to get a C string out of it. http://www.cplusplus.com/reference/strin...


No comments:

Post a Comment