Thread: Question...

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

    Question...

    I was just browsing through some of the posts on here...and i came across one that said you could call up a file with the 'system("");' deal....i didnt search the boards yet...due to not knowing what to search for....but if you can do that...can you do it in a console program? and if so what is it limited too?
    MSVC++~

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> can you do it in a console program

    Yes you can, but in the board FAQ it gives some of the many reasons why you should avoid using system(). There is always a better way to do things. In a simple play around type application, it may save you a bit of research, but anything even half serious will perform to badly.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    101
    system is the only portable way of doing it though.
    - lmov

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> system is the only portable way of doing it though.

    erm...

    >>> MSVC++~
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    >>system is the only portable way

    system is very poor programming, it reduces portability as system calls are os specific
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM