i have to make an exe that asks for some values and write another exe.

for example:

#include<iostream.h>
void main(){
int a,b;
a=5;b=3;
cout<<(a+cool.gif;
}


my program has to write a=6 and b=9 and generate the new exe with the new values.

how can i do that?