Nils
learning fast is bad. Learning with care is good.
Anonymous
/get cbook
OM
Wojak
Course from Abdul Bari On Udemy for C++ will be the best course to start.
For Mastery, we all are just second Best to someone 😅 .
The first rule for learning C++ or anything for that matter is to know you can't become expert.
I see so many fools here flaunting to call them expert of C++, But the fact is they are in a shrinked circle of jokers and they are the smartest joker.
So just low-key learn and i++ each day, you can be very good someday but can never be the best in the world in C++ or even a part as small as loops in C++.
Stay safe and best of luck for the journey
Wojak
Sorry if I hurt Emotions of any 'Global Master' of C++ here.
You really are the smartest(joker)
Bakhyt
Renan
Palinuro
Anonymous
V01D
What is harder: C++ or Rust? 🤔
I would say Rust, because Rust is focused on embedded systems and hardware SPECIFICALLY.
So I imagine learning about the correct ports, and pins and combining that with Rust (all while not breaking your hardware) is harder than C++.
(I am sure Rust can do other stuff, but I am seeing it from the "what it was made to do" perspective)
V01D
probably cpp
I saw your bio, thanks for contributing to the BEST pentesting OS out there! 😁
Asdew
It's just Kali without the reputation, nothing good about it.
V01D
V01D
And parrot is made for hardware and vms
V01D
Kali is made for VM's
Anonymous
Anonymous
Never going to touch anything that uses a distribution that starts with deb as a base
M__
anyone know how to print coloured texts in modeern C compiler
all i could make was coloured texts in turbo C which is obsolete now
M__
when i use the same header file with mingw its giving error
Anonymous
Anonymous
You just write a bunch of stuff into printf
Anonymous
printf(“\033[0;31m”);
Anonymous
Now whatever you print next will be red
M__
M__
but still stAckoverflow sAved me
thanks
Renan
It is recommended you use pastebin to share portions of code.
https://pastebin.com/
Dima
well it’s small enough
Nik0
Do you guys have some good sources for coding malware in c?
Renan
Renan
Anonymous
How to make text repeater program in C/C++ ? Answer with your logic.
Anonymous
hie guys
Anonymous
please help
Anonymous
int main(int argc, char *argv[]){
int valid = FALSE;
char str1[8];
char str2[8];
next_tag(str1);
gets(str2);
if (strncmp(str1, str2, 8) == 0)
valid = TRUE;
printf(“buffer1: str1(%s), str2(%s), valid(%d)\n”, str1, str2, valid);
}
Anonymous
the question is
Anonymous
Rewrite the program shown below so that it is no longer vulnerable to a buffer overflow.
int main(int argc, char *argv[]){
int valid = FALSE;
char str1[8];
char str2[8];
next_tag(str1);
gets(str2);
if (strncmp(str1, str2, 8) == 0)
valid = TRUE;
printf(“buffer1: str1(%s), str2(%s), valid(%d)\n”, str1, str2, valid);
}
CARLY
Anyone to help with C proggraming notes, or any one who knows a best YouTube channel
Asdew
M__
Anmol
Anmol
I hope you get understand my line. :)
V01D
Do you guys have some good sources for coding malware in c?
1. Decide on the type of malware.
2. Learn about the API of your targeted OS.
3. Look at opensource malware.
4. Make something cool. (If it's for windows, I would look at BitBlt. You could create a cool glitch effect with that.
Pavel
How we can do compile time checks in consteval functions in C++20?
I see that static_assert doesn't work. Some people say that throwing an exception should work but throw doesn't compile as it is not a constant expression.
I want to achieve something like this:
class EvenNumber
{
public:
consteval EvenNumber(int value)
{
static_assert(value % 2 == 0, "Can't initialize EvenNumber with an odd value");
}
...
};
Pavel
Ok, I see that it compiles with clang (but not gcc)
if (value % 2 == 1) throw "Can't initialize EvenNumber with an odd value";
Gives not a very readable error though.
Anyway, seems to be too early to test it.
Mar!o
Sadly
Mar!o
I'm starving for C++ 20
MᏫᎻᎯᎷᎷᎬᎠ
Mar!o
Mar!o
I want to use ranges in my engine using MSVC!!
Mar!o
Do you think modules will be used much?
Dima
Dima
Wait, is this sarcasm
Mar!o
I also prefer GCC and Clang but for games Windows is the platform. I support Linux too!
Mar!o
I will probably switch my CMAKE config over to use Clang
Mar!o
Is there still no chance I can become an Admin in this group? (Asked a while ago) :/
Anonymous
Mar!o
Ranges are supported by MSVC
Hmmm maybe I missed something. I wasn't able to find std::ranges::views::reverse or something similar in the range header
Anonymous
Anonymous
But why you don't just use ranges-v3?
It's compatible with C++17
Mar!o
Is the pipe operator available?
Anonymous
Mar!o
I already use the fmt lib for formatting but I want to use std format :(
Mar!o
Have u used modules?
Anonymous
Yep
Ranges is not a language feature, just a library one
Anonymous
Mar!o
Anonymous
Mar!o
Kk
Mar!o
I don't know if modules will be nice. I'm so used to headers. How would I link a library with modules...
Mar!o
Also I've heard that in modules declaration and definition/implementation is not longer splitted. But then we have module implementation and interface files lol
Anonymous
I don't understand modules much
And while CMake doesn't support them, there's no reason for me to use them
Mar!o
Anonymous
If any buddy can tell why is it write
Return -1;
Anonymous
In c programming