Search:

Type: Posts; User: Zeus_

Page 1 of 7 1 2 3 4

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

  1. Replies
    4
    Views
    51

    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...
  2. Replies
    5
    Views
    82

    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.
  3. Replies
    5
    Views
    82

    > 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.
  4. Replies
    2
    Views
    90

    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...
  5. Replies
    5
    Views
    128

    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...
  6. 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...
  7. Replies
    2
    Views
    100

    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...
  8. Replies
    10
    Views
    149

    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...
  9. Replies
    10
    Views
    149

    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()

    ...
  10. Replies
    14
    Views
    300

    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....
  11. Replies
    10
    Views
    149

    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] =...
  12. Replies
    18
    Views
    287

    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 -...
  13. 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.
  14. Replies
    18
    Views
    287

    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...
  15. Replies
    14
    Views
    300

    > 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...
  16. Replies
    14
    Views
    300

    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...
  17. Replies
    9
    Views
    155

    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...
  18. Replies
    4
    Views
    115

    > 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...
  19. Replies
    9
    Views
    155

    > 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...
  20. Replies
    4
    Views
    115

    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...
  21. Replies
    9
    Views
    155

    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...
  22. Replies
    4
    Views
    109

    Yea..... I don't know why I never did that in any...

    Yea..... I don't know why I never did that in any of my programs when I first wrote them, but I'll change them to not assume that the Stack/Queue/Tree/CircQueue is not empty. Actually, when I started...
  23. Replies
    4
    Views
    109

    Custom stack problems

    Since a lot of people have been posting about Linked Lists and Stacks and Queues recently, I thought of paying visit to one of my old Stack programs (I have three more for Queues, Circular Queues and...
  24. Replies
    18
    Views
    287

    > BTW, %s doesn't get whitespaces? Nope, you'd...

    > BTW, %s doesn't get whitespaces?

    Nope, you'd probably have to do something like scanf ("%[^\n]s", string) to input a string with spaces until the user hits enter

    > I didn't use the %[^\n]...
  25. Replies
    18
    Views
    287

    scanf reads until it encounters a whitespace, a...

    scanf reads until it encounters a whitespace, a newline or an eof character. So, when you type in that space b/w 1 and 0.55, scanf stops taking in input for the first float (which is 1 and also your...
Results 1 to 25 of 172
Page 1 of 7 1 2 3 4