BinaryByter
🤔
BinaryByter
thats why he uses C++ for other of his projects?
BinaryByter
oh wait he doesnt
BinaryByter
btw: I hate torvalds too
BinaryByter
but ¯\_(ツ)_/¯
Anonymous
Hello trying to make 7 boom game in c i have some errors this is the code https://www.codepile.net/pile/nQJadPR3
Anonymous
Hi , bot I just read it.
Hayk
Are u anonymous!?😝
Dima
/ban !!!!!
Stefan
meh, if you want to be a "hacker", just insall kali and pretend yourself as one
Stefan
I am hacker
are you known as 4chan?
klimi
:D
Pavel
Do you know any example of code that would break into debugger on most compilers/IDE (or at least VS and clang/gcc with QT Creator)? I've seen such big functions with lots of ifdefs and assembly code that you just call and it breaks. But can't find it now, only examples for VS. Do you know where I can find such a function or maybe you have some in your project and don't mind sharing it?
Pavel
Or maybe there's some standardized way in some new revisions of C++
klimi
Welcome
Anonymous
Thank you
WHOMAI
Can anyone suggest me some channels where i can get programming books?
WHOMAI
I am a student who wants to use them for personal and educational purposes.. I can afford to buy some books but not all .. Some books may provide what others don’t.. Me as a programming student won’t buy original software like photoshop just to use once or twice a month .. and i cant afford it 🙁
Dima
I recommend you to get started with a practice instead of reading books. start doing some own small projects, whatever.
I_Interface
Francesco
Hello
klimi
Anonymous
Hi guys
RJ
Hlw
Sai Meghana
What is segmentation fault? When does that error come?
Badugar
When your software is trying to access memory it's not supposed to access.
Badugar
e.g. trying to access an array outside of its boundaries.
Sai Meghana
I see
Sai Meghana
Like #define, is there something called #undef ??
Badugar
#ifndef , #define, #undef (and #if (defined(…))
Sai Meghana
What are these called?
Badugar
How do you mean that ?
Sai Meghana
What are these statements called?
Sai Meghana
Pre processor directives??
Badugar
#ifndef a = if a is not defined ... #define a
Sai Meghana
#if and #endif are valid too? Why use these when we have if and else statements?
Badugar
For an example of those you could take a look at /usr/include/af_vfs.h if that file exists on your machine. Or every other file under /usr/include
Badugar
Internet can help you further, cppreference.com is a good page for C and C++
Sai Meghana
I have half-knowledge in both C and C++. I need to choose to learn any one language properly to give my programming exam in. Would you suggest me to go for C or C++?
Dima
If you have confident skills then you would choose it on your own ;)
Dima
C++, for sure
Badugar
C++. You can use every library which is written in C also in a C++-program.
Badugar
Xd
Theoretically iirc.
Dima
don’t listen to everyone who says that you shouldn’t combine cxx with c
BinaryByter
Theoretically iirc.
char *a = malloc (10); won't compile in C++
BinaryByter
don’t listen to everyone who says that you shouldn’t combine cxx with c
don't listen to those who say that C++ is bloat
BinaryByter
Just use C++
BinaryByter
:^)
BinaryByter
Who cares? cast it away
You don't understand my point
BinaryByter
But that doesnt matter
BinaryByter
I don't expect you to understand easy debates
BinaryByter
Afterall, you are paid to be a fast programmer who can program everything in under an hour
Dima
You are so naive
BinaryByter
and you are stupid
BinaryByter
¯\_(ツ)_/¯
Dima
Who’s talking lmao
Dima
Get a job. [x2]
Dima
you’ll change the point of view 😜
BinaryByter
char *a = malloc (10); won't compile in C++
>claim is that every C library will compile in C++ >i refute it by an easy example >"just modify xy" >litterally thinks that i'm dumber than him >mfw
Sai Meghana
Uhoh. Looks like I don't have a choice. Most of the company interviews for us have MCQs related to C.
BinaryByter
Get a job. [x2]
a job isnt an excuse for jizzing over my RAM
Dima
You just won’t approve linear facts, in fact it compiles with an addition
BinaryByter
Uhoh. Looks like I don't have a choice. Most of the company interviews for us have MCQs related to C.
Having no say in the choice of language doesnt mean that you have to use its bad patterns
BinaryByter
A simple example is memcpy
BinaryByter
Using the libc memcpy will lockup the CPU
BinaryByter
while using a DMA based memcpy will not
BinaryByter
meaning that you can copy memory while other threads are working on something
BinaryByter
And if there is no other thread, atleast you are working against heat problems in the CPU