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...
Type: Posts; User: Zeus_
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...
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...
Please format your code and add it through "[CODE]" tags. Read the FAQ to understand what I mean.
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...
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",...
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...
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...
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...
Post the image here (or if you'd like to, type the question).
On here, no. A simple "Thanks" does the work (but don't spam). Also, please don't post unrelated content in other threads.
Read laserlight's comment. The c_str() method in your usage is not the way it works or is supposed to work.
#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
You can't compare using != in C.
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...
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...
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...
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...
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...
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()':|...
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...
You should start by learning what loops can do.
(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...
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...
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...
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...