Simple CPP (i think)

This is a discussion on Simple CPP (i think) within the C++ Programming forums, part of the General Programming Boards category; im trying to write a fairly simple program and i was wondering if there was a way to easily run ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    18

    Simple CPP (i think)

    im trying to write a fairly simple program and i was wondering if there was a way to easily run a program from inside a simple console program. like what can be done through (in windows)
    start menu>>run
    well, im not sure that this is easy, so if it's hard, just say so
    im new

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    system("pathname.exe");

    That should work.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    18
    are there any headers i need to include?
    when i try to compile it says:
    implicit declaration of function `int system(...)'
    im new

  4. #4
    paultwang
    Guest
    #include <stdlib.h>

    int system(const char *command);




    for more info, read in the .h file or type stdlib.h in search engine.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 10:48 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 05:48 AM
  4. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 07:52 AM
  5. Simple Compile Time Problem - HELP!
    By kamikazeecows in forum Windows Programming
    Replies: 2
    Last Post: 12-02-2001, 12:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21