Hi,
I want to open & close multiple files in a for loop.I have two problems :
1.How can I define an array of file names to be entered to "fstream" function?
2.How can I avoid redefiniton error for redefining an fstream variable?
I would be thankful if any one can help me.
User Profile
Collapse
-
Thanks for your reply,
I use IAR 4.4 for arm.
In this program I have a timer interrupt. I have a specified routine to be done in this sub routine.But every part should be done in one time,then the program should wait until next interrupt service routine call to continue.
I tried function pointer arrays & also switch-case routines.But these routines are not practical for me as they are very time consuming.... -
How can I save & restore the program counter ?
In a called function,I want to save the "program counter" , when program reached to a specified location ,& then return from the function .
In the next calling of this function , I want to restore "pc+1" to continue the process.
How can I do this?
No activity results to display
Show More
Leave a comment: