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...
Type: Posts; User: flash13
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...
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"...
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)
{
...
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
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...
Thanks, everything makes sense now.
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...
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...
well, thanks for useful feedback. Will try that.
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...
Thank you! Well, I wanted to try something like python's sorted(iterable[, key][, reverse]) without the key parameter.
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,...
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...
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!
Thanks. I like pointers, as you mentioned it's a choice of style.
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...
good points. Thanks.
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...
Thanks man! Have learned a lot from u. :redface:
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...
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...