Search:

Type: Posts; User: flash13

Search: Search took 0.00 seconds.

  1. hey, thanks. haven't really encountered assert()...

    hey, thanks. haven't really encountered assert() yet in my learning so far. well, just to see how a flawed function would look like, and why it was getting the buffer overflow.. that's why! and, as...
  2. Thread: Short programm

    by flash13
    Replies
    1
    Views
    2,452

    Hi, it should be printf("Hello girl"); not ...

    Hi, it should be

    printf("Hello girl"); not
    printf(¨Hello girl¨);
    It should print "Hello girl" to the stdout. I don't get how come the output is "goodbye" and where did you get this "#collapse"...
  3. Hi, thank you. you are quite cool!. I forgot...

    Hi,
    thank you. you are quite cool!.
    I forgot that _StrOut/_Strout was pointing to the last pointer. I've come with something like this for getline():


    const char* getline(char* _Strout)
    {
    ...
  4. Getting string from stdin in C with custom getline(), and getline_s() functions

    Hi, how can I improve either of these functions?



    #include <stdio.h>


    #ifndef MAX_STR_BUFF_SIZE
    #define MAX_STR_BUFF_SIZE 300
    #endif // MAX_STR_BUFF_SIZE
  5. Replies
    2
    Views
    2,560

    String split() in C and C++

    Hi, this is a cpp file. I was wondering how I could find a way to remove the need for the 3rd parameter of split() -> c function. As of now it is essential as it helps to free up the memory, and any...
  6. Replies
    4
    Views
    1,847

    Thanks, everything makes sense now.

    Thanks, everything makes sense now.
  7. Replies
    4
    Views
    1,847

    thanks. you are very insightful as always. I...

    thanks. you are very insightful as always. I thought it was cool to use hex numbers, well in python you can use __ for private functions, and c# doesn't mind it as well, as far as I know. Btw, could...
  8. Replies
    4
    Views
    1,847

    PokerChecker in C

    Hi, I wrote this following poker checker application. The algorithms that I could come up with are probably not the best; however, doing that I've learned some new stuffs about about C. Any...
  9. well, thanks for useful feedback. Will try that.

    well, thanks for useful feedback. Will try that.
  10. Thanks @laserlight. It didn't start with the...

    Thanks @laserlight. It didn't start with the whole array, and now it seems like it is replicating a bubble-sort. Could you give an example how can I use explicit stack to make this actual qucksort...
  11. Thank you! Well, I wanted to try something like...

    Thank you! Well, I wanted to try something like python's sorted(iterable[, key][, reverse]) without the key parameter.
  12. QuickSort — C Implementation (Non-Recursive)

    Hi, I was anticipating if someone could give me some constructive feedback on the code below (not something like "don't use pointers" or "always use braces with loops or conditions", more like,...
  13. Replies
    6
    Views
    5,027

    you misunderstood me. I'm here to be reviewed,...

    you misunderstood me. I'm here to be reviewed, and learn, but I do have the right to express my opinion. For me pointers seem interesting, that's why I try to use them where I can. If returning value...
  14. Replies
    6
    Views
    5,027

    thanks. I'm aware of that. But I've been writing...

    thanks. I'm aware of that. But I've been writing this way in C++, and C# as well, never had problems so far. And read about VLA before. But thanks again!
  15. Replies
    6
    Views
    5,027

    Thanks. I like pointers, as you mentioned it's a...

    Thanks. I like pointers, as you mentioned it's a choice of style.
  16. Replies
    6
    Views
    5,027

    Caesar Cipher in C

    Hi,
    I was wondering if anyone could review my code and suggest how to improve or optimize this code. I'm very new to C and programming.



    #include <stdio.h>
    #include <string.h>
    #include...
  17. Replies
    2
    Views
    3,991

    good points. Thanks.

    good points. Thanks.
  18. Replies
    2
    Views
    3,991

    Using pointers, is it bad?

    Hi,
    I wrote this very simple C console app. It could've been written simpler way; however, I used pointers instead of normal variable to manipulate data (since I'm enjoying them atm). I was...
  19. Replies
    4
    Views
    3,697

    Thanks man! Have learned a lot from u. :redface:

    Thanks man! Have learned a lot from u. :redface:
  20. Replies
    4
    Views
    3,697

    Hey, thanks. the task didn't say what kind of UPC...

    Hey, thanks. the task didn't say what kind of UPC code it was. That's why I couldn't include that. But your code is cool! Very precise. By the way, did you see any error or faults in my code. I'm...
  21. Replies
    4
    Views
    3,697

    Improving the following code:

    Hi,
    I'm new to programming. This is one of the exercises I had: Finding UPC Check Digit, length of UPC code is 11 digit. I was wondering what are the errors I might have in the code and ways to...
Results 1 to 21 of 21