I am kinda new to C++ and I would like to know if it is possible to pass on the values of variables to the system() functions?
example:
this one doesn't work. Its just to give an example of what I want to do... I want to pass the value stored in tag as apart of a system() argument. Is it possible? if yes, how do I do it?Code:void main() { char tag[1]; cin >> tag; system("attrib tag"); }