Nils
to me everything that compiles with a c compiler is a c program
Anonymous
A program that doesn't satisfy ISO C is not a C program
Anonymous
ANSI C
Fuck it
Anonymous
Do you like dead technologies?
O
Do you like dead technologies?
do compilers even care?
Prince Of Persia
Prince Of Persia
What is the most powerful language after Assembly?
Prince Of Persia
Prince Of Persia
Is it only C/C++?
Retr0
do compilers even care?
Compilers are not dead will never go obsolete
Retr0
They are virtually run most things
Anonymous
/get cbook
Anonymous
/get cbook
no need for a space between slash and get
Anonymous
/get cbook
Roxifλsz 🇱🇹
/ban I hate social media
ая
/ban
Anonymous
Write a program to round off an integer i to the next largest multiple of another integer j.
Anonymous
Any one plz explain this question
klimi
Any one plz explain this question
Um so this "question". Is actually not a real question. It looks more like a task or homework.
Diego
Write a program to round off an integer i to the next largest multiple of another integer j.
Aye as klim said, you want help please try it yourself first, show us your code and we'll tell you how to improve it
klimi
<3
Nameful
<3
Awww
Olaniyan Wisdom
how can someone download plurasight video offline
Diego
Download it into your brain
A
Hello people, i want to reduce cyclomatic complexity of switch case code , using lambdas. Any suggestions on how i can do this?
A
can we replace switch case code with lambda functions?
Vlad
Vlad
So basically you'll have switch case inside the lambda)
Enzo
I'm interested in learning Android OS, what should i need to learn before learning it?
H
Not C++
+ 🤔 but why?
Prince Of Persia
Not C++
Actually C++ is good for beginners Because C++ have a common syntax
MᏫᎻᎯᎷᎷᎬᎠ
Not C++
Qt Has Qml
MᏫᎻᎯᎷᎷᎬᎠ
Tho it's not that trivial But felgo can do just fine
MᏫᎻᎯᎷᎷᎬᎠ
At least the UI part is done better than bare xml file
MRT
hey, i get string object from function
MRT
std::string sx = .... std::cout << sx.length()// its 84 const char *x = sx.c_str(); std::cout << strlen(x) << //its 4 std:string x2 = x; std::cout << x2.length() << //its 4 why ?
Enzo
At least the UI part is done better than bare xml file
Which language should i learn then, can u list them all?
H
Which language should i learn then, can u list them all?
I habe a notice for you : «please just focuse on one language and go on untill ou be professional dont switch ...»
Hanz
How do we become a professional?
Until someone admit you
H
How do we become a professional?
train and dont leave it for along time ...
MᏫᎻᎯᎷᎷᎬᎠ
Which language should i learn then, can u list them all?
Tho it's kinda off topic You can learn Dart/flutter for it If you want to do it with C++(Suggested so to keep up the topic of the group as the rules state so) go for Qt/QML with felgo library, it has a good set of components to deal with different functionalities of both Android & IOS. You'll need the NDK tools to be able to compile against Android target
Enzo
I havent learn any programming language yet
Enzo
Nope
Can i pm u?
MᏫᎻᎯᎷᎷᎬᎠ
H
I havent learn any programming language yet
doesnt matter -_- just start for one month then start researching whaich language is good for yours ... Just start , don ask 😐
H
at least ask your questions after one month training , it could create good questions :/
Vlad
I have a suspicion that you call strlen on a dangling pointer
gjgjtuy
hi guys, i'm a c novice and just began learning c. and i'm a little bit confusing about what should i read next to learn modern c after reading the C Programming Language 2ed (it's a really good book, but i think ansi c might be a little bit old for nowdays XD)
Mar!o
wmds ❤️
Samir
hlo guys
Samir
i want to learn c programming.
Samir
how can i start
Vlad
how can i start
Write a hello world and get a book
Samir
Write a hello world and get a book
which book do yo suggest
Anonymous
MRT
Is original string still alive when you call strlen?
yes, i checked string and find many null object,why in first time gives the correct answer ?
Vlad
const char* dangle; { std::string str = "asdf"; dangle = str.c_str(); } // str destructor gets called. Memory is freed std::cout << dangle; // UB
MRT
Is it in it's scope the first time?
I had never checked data like this before
MRT
You code in C++ bruh
std::string saveRsaPrivateKeyToString(CryptoPP::RSA::PrivateKey &pkey); std::string sx = saveRsaPrivateKeyToString(pkey); std::cout << sx.length()// its 84 const char *x = sx.c_str(); std::cout << strlen(x) << //its 5
Vlad
Of course key would contain null bytes
Vlad
It isn't a C string
MRT
cryptopp liberaryo documation for save key to string
MRT
i want to send key to client with string
Vlad
cryptopp liberaryo documation for save key to string
Do you know how strlen implemented?
Vlad
It basically loops till the null byte