All pastes #915083 Raw Edit

Mine

public text v1 · immutable
#915083 ·published 2008-02-23 14:19 UTC
rendered paste body
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;

int main() {
    string image;
    string part1;
    string start;
    cout << "Welcome to the QEMU Launcher" << endl;
    cout << "" << endl;
    cout << "Please enter the name of the disc to be inserted" << endl;
    cout << "into the virtual CD-ROM drive. Please enter 'no-cd' if" << endl;
    cout << "you do not wish for a ISO to be mounted into the drive." << endl;
    cout << "" << endl;
    cout << "Enter filename: ";
    cin >> image;
    if (image != "no-cd") {
        part1 = "\\PortableApps\\QEMU\\data\\qemu.exe.exe -L . -m 8 .\\hd.bin -cdrom .\\";
        start = part1 + image;
        cout << "Starting QEMU..." << endl;
        system(start);
    }
    return 0;
}