Computer problems,Computer help
*AX SOFT>>>Programming & Design

Will any body help me with C++?


Ok so i i had a program made a while back that i used at my school to basically get around the fire wall kinda. Our school blocks us to use .exe files so i made a program that allowed me to type in the directory of the file that i wanted to boot and it would boot it.

Its been awhile since ive used C++ and i dont exactly remember how to do every thing so im trying to remember how to remake this program. any help would be apreciated

This is what i have so far

#include <iostream>
using namespace std;
int main()
{
int d;
cout <<"Enter the Directory of the file you would like to open";
cin >>d;
system //i no some thing goes here and this is what actualy boots it but not really sure how its written
return 0;
}

it's called "executing", "booting" is when you turn your computer on.
This code should work-


#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
string programName;
cout <<"Enter the Directory of the file you would like to open";
cin >>programName;
std::system(programName.c_str());

return 0;
}

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • The best free website server?

    if its name try ...

  • Converting a swf file to a quicktime file?

    Also, being asked and answered here; ...

  • Xml parsing?

    I'd use Xerces, from ...

  • Drag selection box for html forms?

    Yahoo! provides the YUI slider under a BSD license: ...

  • Which is the website for downloading free web templates....especially for a college website...?

    Here are some, these templates are the easy to edit and manage. Some are free others are very affordable. Webmaster Templates - ...

  • How can I make my site look more cretive and freindly.?

    What words or phrases would you use for searching for such a site and do they appear in text or META description. If anything is free, say so. Adding free to my website description and in the text ...

  • Html experts please help me out?

    You won't become a web developer in 3 hours, but here's a head start... (Yahoo's mangling the code a little though!) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict...

  • I am a good c++ programmer and would like to know if anybody wants to develop any kind of game (cons. or onl.)

    You can register at freelance website like ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster