Search:

Type: Posts; User: Paul22000

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    3,215

    Ahhhhhh, thanks! I was trying to use the same...

    Ahhhhhh, thanks! I was trying to use the same pipe[2] for multiple processes. After the second, it would always dump out to stdout.



    Oh, good idea!
  2. Replies
    14
    Views
    3,215

    We are. That is the assignment. (:

    We are. That is the assignment. (:
  3. Replies
    14
    Views
    3,215

    I'm posting on my phone. I am not home. I can...

    I'm posting on my phone. I am not home. I can not program on my phone.
  4. Replies
    14
    Views
    3,215

    If you can direct me towards a compiler for the...

    If you can direct me towards a compiler for the G1 phone, I surely would :)

    Anyway, you're obviously getting upset by this thread for some odd reason. Please I would appreciate it if you would...
  5. Replies
    14
    Views
    3,215

    Unfortunately, I won't be able to test this for a...

    Unfortunately, I won't be able to test this for a while due to the way my class is set up.

    A simple yes or no as to if it will overwrite would be much appreciated. I understand if you don't want...
  6. Replies
    14
    Views
    3,215

    Not unlimited obviously, but I need to run this...

    Not unlimited obviously, but I need to run this in a loop. The simple example is something like ls | wc | grep but my professor will test with an undetermined amount of commands, so it has to be...
  7. Replies
    14
    Views
    3,215

    Check out the picture I posted. I already have...

    Check out the picture I posted. I already have the case with 2 processes working. To make it simple, the problem is what do I put for the red text in the picture?
  8. Replies
    14
    Views
    3,215

    Advanced Piping Question!

    Hi

    I am creating a program that can support piping between any number of processes. For 2 processes, you create 1 pipe, and use it between them.

    However, for 3 or more pipes, this method will...
  9. Replies
    1
    Views
    1,013

    Extracting text

    I wrote this incorrectly
  10. Replies
    7
    Views
    1,202

    Gotcha. Thanks. At first I thought it had to be...

    Gotcha. Thanks. At first I thought it had to be something specific (the program name without the path), so I was just baffled as to why it worked with anything. Makes sense now!
  11. Replies
    7
    Views
    1,202

    Ohhhh, I see. So really the only time that this...

    Ohhhh, I see. So really the only time that this ever matters is if the program you call, somehow needs/uses arg0? (Or more specifically, if the program you call needs to know its own name for some...
  12. Replies
    4
    Views
    6,709

    I added line numbers to your code: ...

    I added line numbers to your code:





    while(!IsEmptyStack(pT)){
    x = popStack(&pT);
    insertQ(&pQ,x); // 117
    }
  13. Replies
    4
    Views
    6,709

    Post the error message(s) that you are getting...

    Post the error message(s) that you are getting with the associated line numbers and then we can help you.
  14. Replies
    7
    Views
    1,202

    "file is the basename stripped of its path" ...

    "file is the basename stripped of its path"

    Sure but what is the purpose of it? Notice what I put in the example in my first post. It seems like it doesn't matter what you put at all.
  15. Replies
    7
    Views
    1,202

    Exec() Question?

    char* ls_args[2];
    ls_args[0] = "../..";
    ls_args[1] = 0;

    execve("/bin/ls", ls_args, 0);

    When executing the above code, it just does an ls on the current directory. Array element [0] is...
  16. Replies
    10
    Views
    1,225

    Thanks guys. I made the counter as suggested....

    Thanks guys. I made the counter as suggested. Just a global variable that holds the initial size I set (the "100") and checks against it after every read, and increment if necessary. Thanks again.
  17. Replies
    10
    Views
    1,225

    Hmm, ok. I guess I need to find another way to do...

    Hmm, ok. I guess I need to find another way to do this but I am having a lot of trouble.

    I have two strings, string1 and string_total.

    I am receiving data on string1 and then concatenating into...
  18. Replies
    10
    Views
    1,225

    Pointer Help?

    Is there any way to know how many bytes I allocated? Example:


    char *mystring = (char *) malloc ( 100 * sizeof(char));
    mystring = "1234512345";

    Is there any way to get the "100" somehow?
    ...
  19. Replies
    14
    Views
    1,454

    Thank you! The extra * in void test(char...

    Thank you! The extra * in void test(char **testptr) along with the & in main was what I needed! Perfect!
  20. Replies
    14
    Views
    1,454

    How do I pass it by reference? I tried test(...

    How do I pass it by reference?

    I tried test( &testptr ) but that gives a warning: passing argument 1 of \u2018test\u2019 from incompatible pointer type

    And still doesn't save the value either =\
  21. Replies
    14
    Views
    1,454

    testptr I pass it to function. It gets the...

    testptr

    I pass it to function. It gets the correct value.

    Back in main it has crap value.

    Why doesn't it retain the value set in the function?
  22. Replies
    14
    Views
    1,454

    Passing Pointers???

    void test(char *testptr)
    {
    testptr = "hello world";

    // 2. GDB says tesptr has value: 0x80487cc "hello world"
    }

    int main()
    {
    char *testptr;
  23. Thanks! int x = 0; while(true) { cout

    Thanks!


    int x = 0;
    while(true)
    {
    cout << "Hello World! " << x << "\n";
    x++;
    sleep(5);
    }
  24. Possible to run while Loop Every 5 Seconds?

    while(true)
    {
    if (system uptime % 5 == 0)
    {
    //do stuff
    }
    }

    Is there a better way to do this than with the system up time? (Is there an actual command in C++ to perform an action every x...
  25. Replies
    8
    Views
    3,307

    AH!!!!!!!!!!!!!!!!!!!!! Lol Thank you,...

    AH!!!!!!!!!!!!!!!!!!!!!

    Lol

    Thank you, works now :)
Results 1 to 25 of 196
Page 1 of 8 1 2 3 4