CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: LiamSalt

Search: Search took 0.02 seconds.

  1. Thread: Help!

    by LiamSalt
    Replies
    11
    Views
    1,395

    Re: Help!

    Appreciate the help but I've worked it out, I wasn't returning 0 in the it statement that gets and prints the child pid
  2. Thread: Help!

    by LiamSalt
    Replies
    11
    Views
    1,395

    Re: Help!

    I'm using VIM, it's a shell, I don't know how to use it.

    I was wondering if it was something to do with the getpid() function as it prints 2 on the second iteration?
  3. Thread: Help!

    by LiamSalt
    Replies
    11
    Views
    1,395

    Re: Help!

    Okay done, do you have any suggestions as for my issue?
  4. Thread: Help!

    by LiamSalt
    Replies
    11
    Views
    1,395

    Re: Help!

    Code:

    #include <stdio.h>
    #include <sys/types.h>
    #include <unistd.h>
    #include <stdlib.h>

    int main(int argc, char *argv[])
    {
    int prod = atoi(argv[1]);
  5. Thread: Help!

    by LiamSalt
    Replies
    11
    Views
    1,395

    Re: Help!

    Code:



    Result:




    Hows that?
  6. Thread: Help!

    by LiamSalt
    Replies
    11
    Views
    1,395

    Help!

    Sorry I know this is a C++ forum but I am hoping there is someone that can help me!

    I am new to coding in C and even newer to using VIM

    I am currently trying to write a code that will store...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured