Search:

Type: Posts; User: Zeus_

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    3,637

    Laserlight, thanks for the reference. Anything, C...

    Laserlight, thanks for the reference. Anything, C or C++, is going to look helpful to me as I've no clue about networking. Another question:

    I've seen the Winsock Windows API Library being used in...
  2. Replies
    2
    Views
    3,637

    Getting started with networking

    I've had no idea about networking until recently (the last few days) and I just started using Asio for networking with C++. I've been reading online material and watching videos to get started but...
  3. Replies
    2
    Views
    2,878

    Please format your code and add it through...

    Please format your code and add it through "[CODE]" tags. Read the FAQ to understand what I mean.
  4. Replies
    5
    Views
    6,098

    No, do not use getch(). It's a non-standard...

    No, do not use getch(). It's a non-standard function (and I think it's not supported by modern compilers). Also, getch() doesn't accept any parameters and so getch(0) won't compile.

    The OP doesn't...
  5. Replies
    5
    Views
    6,098

    I'd advise you to look through some online...

    I'd advise you to look through some online examples about C-strings if you aren't using a textbook that teaches the language.

    "%c" is the format specifier for characters. What you want is "%s",...
  6. Replies
    2
    Views
    4,327

    Understood, thanks! I'm just playing around with...

    Understood, thanks! I'm just playing around with code that I'll probably never use in hopes of trying to improve my understanding of templates and get more familiar with them.

    Are there any good...
  7. Replies
    2
    Views
    4,327

    General Purpose Operator Overloading

    I haven't been able to practice programming for a few months now and have lost my ability (whatever little I had) to understand templated code. I'm trying to write a general purpose operator overload...
  8. Replies
    12
    Views
    7,076

    Just a tip: It's a terrible terrible idea to try...

    Just a tip: It's a terrible terrible idea to try and use graphics.h in C::B. Speaking from personal experience. Invest time in learning something like OpenGL or DirectX or Metal, etc as I highly...
  9. Replies
    8
    Views
    5,581

    Post the image here (or if you'd like to, type...

    Post the image here (or if you'd like to, type the question).
  10. Replies
    15
    Views
    13,892

    On here, no. A simple "Thanks" does the work (but...

    On here, no. A simple "Thanks" does the work (but don't spam). Also, please don't post unrelated content in other threads.
  11. Read laserlight's comment. The c_str() method in...

    Read laserlight's comment. The c_str() method in your usage is not the way it works or is supposed to work.
  12. #include "bits/stdc++.h" using namespace...

    #include "bits/stdc++.h"


    using namespace std;


    int main() {
    time_t Capture = time(0);
    char d [20];
    strftime(d, 20, "%c", localtime(&Capture)); // 25/05/2020 12:51:00
  13. Replies
    5
    Views
    3,886

    You can't compare using != in C.

    You can't compare using != in C.
  14. Replies
    2
    Views
    4,052

    I'm not sure I understand completely. I realised...

    I'm not sure I understand completely. I realised I was compiling without -D_GLIBCXX_DEBUG, after which, I get messages like (which is what I wanted):



    c:\programming\mingw\mingw...
  15. Replies
    2
    Views
    4,052

    Checking for runtime violations

    Hey. Is there a way I could enable runtime checking using some compilation flags for things like out_of_bounds access or signed integer overflow. Usually when I have such problems, my executable...
  16. 1, 3, 4, 12: The CppCoreGuidelines link is very...

    1, 3, 4, 12: The CppCoreGuidelines link is very informative. It's answered many of my questions since yesterday. The funny thing is that I had already downloaded this from the repository but forgot...
  17. Some questions on noexcept, constexpr, namespaces, etc.

    Trying to learn noexcept, constexpr, etc. in C++ which I've neglected learning for so long. It wasn't taught at school either (well, neither was most of actual C++ except cin and cout and the rest...
  18. B derives public-ly from A. That roughly saying...

    B derives public-ly from A. That roughly saying "B is of type A" AND "B has its own set of properties that may differ from A". Why don't you run the code yourself and check if b.x is 10? Is it 10...
  19. Well, these are your errors. Stupid ones. ...

    Well, these are your errors. Stupid ones.



    ||=== Build: Debug in Template (compiler: GNU GCC Compiler) ===|
    C:\Users\aryan\Desktop\Projects\Template\main.cpp||In function 'int main()':|...
  20. Even we really can't see how we can fix these...

    Even we really can't see how we can fix these errors in your program. More specifically, we don't see any errors in your program because you didn't even put the slightest bit of effort into posting...
  21. Replies
    11
    Views
    9,288

    You should start by learning what loops can do.

    You should start by learning what loops can do.
  22. Thread: Arrays

    by Zeus_
    Replies
    2
    Views
    6,554

    (1) You can google to find out. (2) You can...

    (1) You can google to find out.

    (2) You can use a 1D array (as 2D arrays and 1D arrays are fundamentally the same thing). You just need to do access arithmetic yourself, which is not something...
  23. Replies
    1
    Views
    4,695

    Library Implementation Guide

    Hey. I really like the code design and implementations of many libraries I've happened to come across. Everything looks so pure, if that's the right word. I'm looking forward to a career involving...
  24. Replies
    1
    Views
    3,671

    Well, what is your question? You gave us some...

    Well, what is your question? You gave us some good knowledge in history but forgot to state your problem. You pasted the code, removed the comments, saved it into your project in CB, and ran it. This...
  25. Note: I haven't looked at your entire code and am...

    Note: I haven't looked at your entire code and am replying just to this message.

    > char yourletter[0];

    This is an array of char of size 0. It's not something you want, do you? Because you can't...
Results 1 to 25 of 317
Page 1 of 13 1 2 3 4