Search:

Type: Posts; User: Zeus_

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds; generated 3 minute(s) ago.

  1. Replies
    12
    Views
    76

    Oh, cool! The STL just got more interesting to...

    Oh, cool! The STL just got more interesting to me. It's a brilliant solution tbh and yeah, I always wondered why the capacity was not 0 when I learnt vector for the first time. Makes a lot more sense...
  2. Replies
    8
    Views
    116

    I mean, you'd usually have an other.c file along...

    I mean, you'd usually have an other.c file along with the other.h to contain the implementation details. So, when you include other.h that's added into project files, the correct linking occurs with...
  3. Replies
    12
    Views
    76

    Thanks, I thought so though. So, does that mean...

    Thanks, I thought so though. So, does that mean that it just re-writes over the already allocated memory? Cuz if that's so, then it's probably a brilliant idea.
  4. Replies
    12
    Views
    76

    Why are you trying to find out what your PC knows...

    Why are you trying to find out what your PC knows or doesn't know? When you are learning programming languages, you don't question how your computer is able to do something. You should focus more on...
  5. Replies
    8
    Views
    116

    If you're using an IDE, you need to add other.h...

    If you're using an IDE, you need to add other.h along with main.c to your project files for the linker to make it work. Or, you should add the search directory for other.h to your compilers' default...
  6. Replies
    6
    Views
    101

    Then my GCC is outdated because I sure do get an...

    Then my GCC is outdated because I sure do get an error if I try to write code like that.
  7. Replies
    6
    Views
    101

    > int NUMMENUS = 0; You can't initialise...

    > int NUMMENUS = 0;

    You can't initialise variables like that inside a class. Only const static qualified variables can.
  8. Replies
    2
    Views
    94

    YouTube...

    YouTube
    YouTube
    YouTube
    YouTube
    YouTube
    https://www.youtube.com/user/lefticus1

    I watch videos from these channels all the time, there are some in regional languages too but there'd be no...
  9. Replies
    5
    Views
    132

    I don't see how you think he's being rude in any...

    I don't see how you think he's being rude in any way at all. He's helping and implying sarcasm is not being rude. If someone takes the time to help you in learning to code better, what you should do...
  10. If she's the one answering, it's probably the...

    If she's the one answering, it's probably the best there is in the thread, just saying. Also, no, there is no way, not that I know of, to mark someone's response the best (in case you were thinking...
  11. Replies
    3
    Views
    119

    You should really be buying a book or downloading...

    You should really be buying a book or downloading a PDF to refer to whenever you have to. A lot of online tutorials are utter nonsense however some really try their best to get through to the...
  12. Replies
    10
    Views
    154

    Awesome! Now, as John mentions, a lot of code is...

    Awesome! Now, as John mentions, a lot of code is not needed. Look at post #8 and try fixing your code...
  13. Replies
    10
    Views
    154

    If you expect to return a pair where your return...

    If you expect to return a pair where your return type is int, then obviously you'd get an error. Also, you're using wrong brackets in the return statement.

    Change this:



    int playgame()

    ...
  14. Replies
    14
    Views
    306

    It took me almost 10 mins to download the ZIP of...

    It took me almost 10 mins to download the ZIP of the repository :frown:. Comparing this to downloading a 100 MB game that takes about 7 seconds, I can only imagine how hugely giga-monolithic it is....
  15. Replies
    10
    Views
    154

    int main (void) { int i = 0; pair...

    int main (void)
    {
    int i = 0;
    pair <int , int> scores [10];
    int SumOfScoresOfComp1 = 0;
    int SumOfScoresOfComp2 = 0;
    while(i < 10)
    {
    scores[i] =...
  16. Replies
    18
    Views
    294

    Difference between %d and %i format specifier in...

    Difference between %d and %i format specifier in C language - GeeksforGeeks

    Maybe this will help.
    I don't see a lot of people using %i...

    Also, why is it this?


    for (int i = 0; i < len -...
  17. BoostWindowsQuickRef - CodeBlocks...

    BoostWindowsQuickRef - CodeBlocks

    This is where I learnt set up for Boost for my C::B. That link should, I think, have everything you need.
  18. Replies
    18
    Views
    294

    The format specifier for int is %d. Format...

    The format specifier for int is %d.

    Format Specifiers in C

    EDIT: Lol, why the delete ;). There's nothing to be worried. No one will judge you and even if they do, it doesn't matter. We're all...
  19. Replies
    14
    Views
    306

    > The basic meaning of + is not an overload and...

    > The basic meaning of + is not an overload and they are definitely intrinsic to the compiler. They are pretty much just single assembly code instructions since the basic types correspond generally...
  20. Replies
    14
    Views
    306

    Are the implementations of the operator overloads...

    Are the implementations of the operator overloads for basic types like int, float, char etc present in the STL in some header files or is it intrinsic to the compiler? If the implementations are...
  21. Replies
    9
    Views
    159

    Thanks for clearing that! It's technically the...

    Thanks for clearing that! It's technically the same but not same, I see. @HelpMeC, sorry for the wrong info.

    @laserlight, can you link me to the C Standard you use? I think I have the wrong one...
  22. Replies
    4
    Views
    118

    > He can use google himself. Damn, why you so...

    > He can use google himself.

    Damn, why you so salty most of the time?

    He mentions "I didn't find a lot of good and complete examples of generic data structures in C, so maybe someone here can...
  23. Replies
    9
    Views
    159

    > Both of the main functions are the same - In...

    > Both of the main functions are the same - In what manner they are the same?

    In the first main, you've written c = ((a - 2) / 2) in one line. In the second main, you've written c = a - 2 in one...
  24. Replies
    4
    Views
    118

    C doesn't have the kind of support C++ has for...

    C doesn't have the kind of support C++ has for generic data structures. templates in C++ are a very, very, very powerful tool for generic implementations.
    I googled and tried to find something good...
  25. Replies
    9
    Views
    159

    First thing, both your main functions are the...

    First thing, both your main functions are the same.

    An integer on most systems I've used is 4 bytes so let's consider it to be 4 bytes for now. 4 bytes is 32 bits where each bit can be a 0 or 1...
Results 1 to 25 of 176
Page 1 of 8 1 2 3 4