I'm writing some code that will create an XML file based on a logged in users id number ie: 04390 will create 04390.xml and so forth. I have some code like this...
how can i control what will go in that commented area marked "id based file name here"?Code:int studentID; yada yada yada ofstream fout("//ID BASED FILE NAME HERE")
i don't want to hard code in a lot ofso does anybody have any bright ideas on how do accomplish my goal?? if anyone can help it would be greatly appreciated. thanksCode:switch (studentID) { case 04390: ofstream fout("04390.xml"); break; }