savolla
Sasuke
true... humans do forget
But how we can again grasp again in little time
klimi
But how we can again grasp again in little time
relearn it.... same how you learnt it
Sasuke
relearn it.... same how you learnt it
Ah isn't there any cheat sheet or a refresher video to relearn in less time
Sasuke
depends on what you want to learn
Ofc C and C++ concepts and syntaxes
klimi
Ofc C and C++ concepts and syntaxes
no cheat sheet is big enough
Sasuke
Why drivers and kennels are written in C rather in C++?
klimi
(linux - C, window - C++) if what you are talking about
Sasuke
Hsson
Hi
klimi
linux liked C, and those at windows... idk
Hsson
I have aquestion
klimi
Hello, go ahead
Anonymous
But any reason for this preference
Because Linus Torvalds doesn't like C++
Anonymous
Because Linus Torvalds doesn't like C++
He says C++ is a terrible language
Anonymous
It is his right
Hsson
In c++ the address of pointer is the address of the variable that the pointer point on it?
Anonymous
Professionals know if they want to make something extraordinary they have to use C++ not C
Anonymous
haha, good joke...
Joke's on you
Anonymous
haha, good joke...
I wonder how'd you make 3D games using an egine that runs on C
Anonymous
Hsson
No different
Thank you
klimi
Joke's on you
if you say so ¯\_(ツ)_/¯
klimi
I wonder how'd you make 3D games using an egine that runs on C
you are just stupid, i dont want to talk to you more
Anonymous
Well, linux kernel is extraordinary thing written in C
Extraordinary is that it supports C++
klimi
Extraordinary is that it supports C++
what are you even saying...
Sasuke
Am too lazy to do that thanks btw
Sasuke
There no address of pointer term in C++
I think he means the address of the pointer where it's pointing too And the variable pointer
MᏫᎻᎯᎷᎷᎬᎠ
In c++ the address of pointer is the address of the variable that the pointer point on it?
The address of the pointer variable location in the memory Term is pointer to pointer
MᏫᎻᎯᎷᎷᎬᎠ
p1 points to v P2 points to p1 that's it
Anonymous
ever heard of Duke Nukem 3D
Just like u did, I'd need a quick google search
Anonymous
Ight, Imma head out
Anonymous
what will the output? int x; x = sizeof('a'); printf("%d", x); the output is 4 but it should be 1
according to ISO 9899, 'a', 'aa', ... are integer constants. I'm not aware of C++ due to ostream char
Loner〽💻
Hello...I want to learn windows programming using win32 API using c ..does anyone hear have a good book(pdf)for a beginner?.
Anonymous
You want to learn c language
Warrior_Ce
Hi needs help. I have to make a program in CBuilder where must extract the files and subcarpetases with an API function.
I_Interface
@Neko_cpp wtf is this ? :D
Dima
why not
I_Interface
why not
Idk, promo ? 🤔
Anonymous
5 elements and 5 inputs to the array. and sum of em getting ok. but when i tried to output average, it’s always 0. anyone please ?
KAYARE
https://paste.ubuntu.com/p/bJGDQrtn5c/
Anonymous
use %f
oh , thanks gee
KAYARE
https://paste.ubuntu.com/p/bJGDQrtn5c/
how we can use b = B(i); at line 22 and a.b.show() on line 30
Asdew
How can I thread-safely return a small array from a function? I'd rather not dynamically always allocate memory, because the function is going to be called very often, so I'd like it to be as performant as possible.
Asdew
Pure C
Anonymous
Is it a constant array?
KAYARE
What will be assigned into var b
Warrior_Ce
Hi needs help. I have to make a program in CBuilder where must extract the files and subcarpetases with an API function.
Asdew
KAYARE
b = B(10);
Is it equivalent to b = 10
Asdew
create a local array, and pass it (of course by pointer) to the function
That's actually a very nice idea, thank you.
Asad
Is it equivalent to b = 10
no. b.b == 10. b itself is an object of type B. learn the basics of OOP
M
hello, guys. yesterday I watched a video tutorial how to make a simple keylogger. i got the idea and tried to code it on my own however something with the code doesnt seem to be okay. it should log all the pressed keys in the output file yet there is only '1' i also tried to change the code a bit.. eventually got some other number but it is not what the program is supposed to do. please have a look
klimi
thats not the whole code
M
#include <iostream> #include <Windows.h> #include <fstream> that is what is not in the screenshot. sorry.
klimi
yes
klimi
okay
klimi
you sure that getting the keypresses works?
M
yes, each key i press while the program is running gets its asci printed in the console. even mouseclicks
M
it just doesnt get written in the output file. instead it only writes '1'