Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  SankySUCC
Language: C/C++
Code:
#include <iostream>
#include <cstring>
#include <sstream>
#include <fstream>
using namespace std;

/*

These codes spawn an infinte amount of empty files at .exe output folder. Run with caution on a desktop compiler! 

*/

int main() 
{
    int i = 0;
    stringstream ss;
    
    while (true)
    {
        ss.str("");
        ss << i++;
        
        ofstream outData;
        outData.open((ss.str()).c_str());
        outData.close();
    }
    return 0;
}
          
Comments: