All pastes #779001 Raw Edit

ss

public text v1 · immutable
·published 2007-11-18 02:46 UTC
rendered paste body
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <windows.h>
#include <string>
using namespace std;

int main()
{
    std::string scrubsarray[150];
    
    srand((unsigned)time(NULL));
    int episode = rand() % 3 + 1;
    
    
    scrubsarray[1] = "Scrubs S01E01 My First Day [FuFu].rmvb";
    scrubsarray[2] = "Scrubs S01E02 My Mentor [FuFu].rmbv";
    scrubsarray[3] = "Scrubs S01E03 My Best Friends Mistake [FuFu].rmbv";
    
    std::string str;
    str = "d:\\tv\\scrubs\\" + scrubsarray[episode];
    system(str.c_str());
    cin.get();
    
   // char *cmd;
   // sprintf(cmd,"D:\\tv\\scrubs\\%s",scrubsarray[episode]);
 //   system(cmd);
    
    
    
}