Search:

Type: Posts; User: catacombs

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    45

    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...
  2. Replies
    13
    Views
    223

    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.
  3. Replies
    17
    Views
    225

    An Introduction to C and GUI Programming...

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

    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...
  5. 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.
  6. Replies
    19
    Views
    427

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

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

    I'm learning C just like you, homie.

    I'm learning C just like you, homie.
  8. Replies
    19
    Views
    427

    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.
  9. Replies
    6
    Views
    615

    YOU!

    YOU!
  10. Replies
    1
    Views
    123

    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...
  11. Replies
    29
    Views
    864

    I always try to write a program that can make a...

    I always try to write a program that can make a task easier. I've rewritten a lot of scripts I wrote in Python as practice. One of them, for example, is a unit converter: I give it a starting unit...
  12. Replies
    4
    Views
    178

    You don't need to allocate memory on line 12. You...

    You don't need to allocate memory on line 12. You can set the character array size on line 5.
  13. Replies
    11
    Views
    217

    This should be the least of your concerns.

    This should be the least of your concerns.
  14. The code is still in some weird serif font. It...

    The code is still in some weird serif font. It makes the code hard to read.
  15. Replies
    29
    Views
    864

    Yes.

    Yes.
  16. Replies
    29
    Views
    864

    Try automating your daily tasks with C programs.

    Try automating your daily tasks with C programs.
  17. Replies
    21
    Views
    320

    FYI: I saw this exact question in Dream.In.Code....

    FYI: I saw this exact question in Dream.In.Code. Yet another help vampire.
  18. Replies
    10
    Views
    284

    powers, are you writing this program in C or C++?

    powers, are you writing this program in C or C++?
  19. Replies
    12
    Views
    164

    Make three separate programs, one each method....

    Make three separate programs, one each method. They must sort a random array of a 1,000 numbers. Then run `time ./program1`, `time ./program2` and `time ./program3` and compare how long they take.
  20. That's a great tip.

    That's a great tip.
  21. Thread: NULL caseses

    by catacombs
    Replies
    13
    Views
    209

    Same reason you check if your foot isn't on the...

    Same reason you check if your foot isn't on the gas before shifting into reverse.
  22. Thread: NULL caseses

    by catacombs
    Replies
    13
    Views
    209

    One more, and I think we'll be good ;)

    One more, and I think we'll be good ;)
  23. Replies
    6
    Views
    267

    I'm curious to see how this will play out. My...

    I'm curious to see how this will play out.

    My rule of thumb: If it needs to be on the web, stick with HTML/CSS/JavaScript. Anything else seems like way too much work.
  24. Replies
    8
    Views
    287

    :facepalm: Thanks. I didn't see the C++ tag.

    :facepalm:

    Thanks. I didn't see the C++ tag.
  25. Replies
    8
    Views
    287

    string isn't a data type. You want char* or...

    string isn't a data type. You want char* or char[n], which is an array of characters.

    You can try sprintf to put the int into the character array.
Results 1 to 25 of 52
Page 1 of 3 1 2 3