All pastes #779017 Raw Edit

ss

public text v1 · immutable
·published 2007-11-18 03:12 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;
    if(episode <= 24 && episode >0 ) 
    {
         str = "d:\\tv\\scrubs\\Season 1\\" + scrubsarray[episode];
    }
    system(str.c_str());
    cin.get();
   
    
    
    
}