Search:

Type: Posts; User: mabufo

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    1,492

    I would say you need to be comfortable...

    I would say you need to be comfortable using/creating functions, using arrays, using loops, and conditional statements before you take this on.

    EDIT: (would arrays be the best way to store the...
  2. Replies
    6
    Views
    7,296

    Are you able to pass the '\n' bit, (I forget the...

    Are you able to pass the '\n' bit, (I forget the word for it) to the text file? And by doing so, start on a new line?
  3. Replies
    37
    Views
    3,057

    When using a pre set value to set the size of an...

    When using a pre set value to set the size of an array - the integer that you use must be of type constant. IE:

    const int num = 10;
    int array[num];

    I hope that explains your error.
  4. Well yeah, that's fine - but I want to do...

    Well yeah, that's fine - but I want to do something like that on my own. A bit of a learning experience if you will.

    EDIT: The program that I had on my computer was not netstat but a free tool...
  5. Program that monitors what programs are on what ports!

    I'd like to create a program that monitors processes that are running on what ports on my computer. I actually had a program on my computer, though I can't recall who made the thing.

    Again, I...
  6. Replies
    30
    Views
    7,690

    Idea: Get a real job.

    Idea: Get a real job.
  7. Very neat little program! Pretty nice concept I...

    Very neat little program! Pretty nice concept I must say! Though I am sad that my computer's name is DESKTOP-1. Sort of depressing eh?
  8. Replies
    2
    Views
    1,199

    Yikes, what was I thinking? :o EDIT: ...and...

    Yikes, what was I thinking? :o

    EDIT: ...and I've just fixed it - thank you for the help!
  9. Replies
    2
    Views
    1,199

    even more loop trouble

    Now that I'm over my fear of random numbers I'm working on the next exercise in my book.
    Exercise 5-6:
    A lottery entry requires you to choose six different integers in the
    range 1 to 49...
  10. Replies
    17
    Views
    7,864

    Boy do I feel silly! Thanks!

    Boy do I feel silly! Thanks!
  11. Replies
    17
    Views
    7,864

    Right, I haven't been working long and I've come...

    Right, I haven't been working long and I've come up with this so far, no compile errors - just logic problems.
    // 48 - 122

    #include <cstdlib>
    #include <ctime>
    #include <iostream>

    using...
  12. Replies
    17
    Views
    7,864

    I see... It's making more and more sense now. ...

    I see... It's making more and more sense now.

    EDIT:
    n = rand()%(size_of_range)+first_number_inrange

    It makes perfect sense now.
  13. Replies
    17
    Views
    7,864

    I understand a little better now, still fuzzy...

    I understand a little better now, still fuzzy though!

    So let me get this straight. If I wanted to get a random number - say, 1-10. I would do this:
    {
    srand(time(NULL));
    int n = 0;
    ...
  14. Replies
    17
    Views
    7,864

    The thing that's confusing me is the random part...

    The thing that's confusing me is the random part of the whole thing. This is the first program that I've generated a random value with... well pseudorandom rather. Anyway, I did a little reading on...
  15. Replies
    17
    Views
    7,864

    Thanks fellas, you're ideas have helped.

    Thanks fellas, you're ideas have helped.
  16. Replies
    17
    Views
    7,864

    I haven't learned arrays yet... :mad: EDIT:...

    I haven't learned arrays yet... :mad:

    EDIT: But there has to be an easier way than the one I suggested.
  17. Replies
    17
    Views
    7,864

    generate a random password

    For this exercise creat a program that outputs a password
    consisting of sequence of 8 randum upper or lowercase letters or
    digits. Duplicate characters are permitted.


    My question is, that...
  18. Replies
    16
    Views
    1,830

    I see, that makes a lot more sense. Thank you.

    I see, that makes a lot more sense. Thank you.
  19. Replies
    16
    Views
    1,830

    The program posted above - I see where I was...

    The program posted above - I see where I was mistaken considering the loop counts the characters one by one... what confused me though about what char could store is that if I entered an entire...
  20. Replies
    16
    Views
    1,830

    I can tell what the thing does, thank you. I was...

    I can tell what the thing does, thank you. I was more than a bit confused is all - thanks for the help I guess.
  21. Replies
    16
    Views
    1,830

    I think that I'm just thinking about these way...

    I think that I'm just thinking about these way too hard... time for a break I suppose.
  22. Replies
    16
    Views
    1,830

    I think what we have here is a failure to...

    I think what we have here is a failure to comunicate. I caved - I looked at the source code and I have to say, I'm suprised at the solution.... Here it is:



    // Exercise 5.3 Using a do-while...
  23. Replies
    16
    Views
    1,830

    I thought you said I wasn't supposed to store it?...

    I thought you said I wasn't supposed to store it? :confused:
  24. Replies
    16
    Views
    1,830

    I see. The problem with that though - is I have...

    I see. The problem with that though - is I have no idea how to extract something from the input buffer,in fact, I'm not sure what that is - as that was not in the book.
  25. Replies
    16
    Views
    1,830

    I'm still not sure how to store a statement that...

    I'm still not sure how to store a statement that the user enters as type char. *or however I need to format it so I can break it apart with a loop that detects letters.
Results 1 to 25 of 68
Page 1 of 3 1 2 3