你在自己改改吧,大致就这样
#include
#include
using namespace std;
int a=3;
int main( )
{
char s[100];/////////////
int i;/////////////
for(i=1;i<1000;i++)/////////////
{
sprintf(s, "%d.vbs", i);/////////////
ofstream outfile(s);/////////////
outfile<<"Dim oAnosftApp";
outfile< outfile.close();
}
return 0;
}