Search:

Type: Posts; User: catacombs

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    237

    I didn't notice this thread was about C++ book...

    I didn't notice this thread was about C++ book recommendations. I read it as regular C.

    Regardless, the C book I talked about is C Programming: A Modern Approach - Second Edition.

    For C++, I'd...
  2. Replies
    11
    Views
    237

    Moden C by King is a great book. I've been going...

    Moden C by King is a great book. I've been going through it since the beginning of the year, and I've learned a lot. There are plenty of exercises and examples available. You can skip most of the...
  3. Replies
    3
    Views
    235

    Please format your code next time.

    Please format your code next time.
  4. Replies
    2
    Views
    222

    Surely there must be a way to load the questions...

    Surely there must be a way to load the questions from another file, yes?
  5. Is the code legit? If so, where did you get...

    Is the code legit? If so, where did you get access to a bank management system's codebase?
  6. Replies
    12
    Views
    492

    No problem! I think OP said he or she won't know...

    No problem! I think OP said he or she won't know how many players will be in the final ahead of time. So, he or she will need to calculate that.
  7. Replies
    12
    Views
    492

    If you're addressing this to me, I know how many...

    If you're addressing this to me, I know how many because I counted the number of rows, each a player, from the input file.
  8. Replies
    12
    Views
    492

    Definitely simpler! I guess my newbie tendencies...

    Definitely simpler! I guess my newbie tendencies got the best of me and went a little overboard.
  9. Replies
    12
    Views
    492

    This was an interesting challenge. I spent the...

    This was an interesting challenge. I spent the morning implementing my own solution. This program can take in a different number of players from a seperate file. I set the initial value for...
  10. Replies
    12
    Views
    492

    Do you have examples of the data file? I'd love...

    Do you have examples of the data file? I'd love to do this on my own and see if I can find a solution.
  11. Replies
    21
    Views
    685

    Can you please elaborate a little on this?

    Can you please elaborate a little on this?
  12. Replies
    21
    Views
    685

    This is just an example, but the real text I'm...

    This is just an example, but the real text I'm using contains colons. Here is an example:

    "BOB: I love the weather, but there is a problem: I hate going outdoors."
  13. Replies
    21
    Views
    685

    Spent some time last reworking the code with some...

    Spent some time last reworking the code with some suggestions.

    I decided to just split on the space and check each token to see if it matches with the all words.

    Seems like this works exactly...
  14. Replies
    21
    Views
    685

    My regex was not wrong. As laserlight pointed...

    My regex was not wrong. As laserlight pointed out, strtok doesn't take regular expressions, and that was why I didn't get the expected output.



    I already provided code. Run my example.
  15. Replies
    21
    Views
    685

    Yeah, after doing more research after posting it,...

    Yeah, after doing more research after posting it, the only thing I've found was the pcre library, but that doesn't do the intended split. If you have a third-party library I don't know about, I'm all...
  16. Replies
    21
    Views
    685

    Split string with regular expression

    I'm trying to split this string:


    "SPEAKER: Hello there, my friend. SPEAKER2: How are you, friend?"

    into an array.

    I know to use the strtok function from the strings header file, but I'm...
  17. Replies
    13
    Views
    390

    Exactly! One day you might not think of anything....

    Exactly! One day you might not think of anything. Then, while you're working, you'll think, "Man, I wish I could just do this with one command," and boom, there's your idea.
  18. Replies
    17
    Views
    613

    An Introduction to C and GUI Programming...

    An Introduction to C and GUI Programming might be what you're looking for.
  19. Replies
    13
    Views
    390

    Hi, Scatman. I am in the same boat as you. I...

    Hi, Scatman.

    I am in the same boat as you. I now understand the basics of C and hoping to improve my skills.

    One thing that helped me to better understand the language is writing small programs...
  20. Lmao. I'm dead. Salem does have a point. Let's...

    Lmao. I'm dead.

    Salem does have a point. Let's see the code.
  21. Replies
    19
    Views
    547

    I thought copying, but that can only be done, it...

    I thought copying, but that can only be done, it seems, with strcpy.
  22. Replies
    19
    Views
    547

    I'm learning C just like you, homie.

    I'm learning C just like you, homie.
  23. Replies
    19
    Views
    547

    Thanks, Salem. I didn't know assigning character...

    Thanks, Salem. I didn't know assigning character arrays to pointers was possible. What I've always done was use strcpy to assign them.
  24. Replies
    6
    Views
    767

    YOU!

    YOU!
  25. Replies
    1
    Views
    179

    From a Stack Overflow answer...

    From a Stack Overflow answer:

    tm_isdst A flag that indicates whether daylight saving time is in effect at the time described. The value is positive if daylight saving time is in effect, zero if...
Results 1 to 25 of 68
Page 1 of 3 1 2 3