Menu

Need help with system()

M.P.T.
2008-12-17
2012-09-26
  • M.P.T.

    M.P.T. - 2008-12-17

    I have been working on a program for a while now and i was able to use system functions with my scripts but now I don't know why it is not working now. I have been looking at this code for a couple days now and even tried to work on a very basic system function and work my way back to more complex scripts. I still cannot get the simple function to work. I exhausted Google search in this lol. I just need another pair of eyes to look at it. lol. Here is the simple script...

    include <stdio.h>

    int main(void){
    printf("hello world this is a test");
    system("cmd.exe");
    getchar();
    return 0;
    }

    Thank you in advance.

     
    • M.P.T.

      M.P.T. - 2008-12-17

      Okay i have been doing some more research and i believe that my code is correct. I think there might be an error with the function or compiler. Maybe it is just my bad eyes lol.

       
    • M.P.T.

      M.P.T. - 2008-12-18

      Never mind i Figured it out finally.
      All i needed was a break lol.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.