Alignant
like. what do they do that makes your code unsafe?
reinterpret_cast is easier to search :D
Alignant
In your codebase
BinaryByter
reinterpret_cast is easier to search :D
is that really such an important point?
BinaryByter
Like
BinaryByter
in clean code, your casts should be finable even without reinterpret_cast
BinaryByter
besides, thats not what a c++ style cast is
klimi
HI
Hi
BinaryByter
Hi
❤️❤️❤️❤️❤️
BinaryByter
anyway, time 4 school
BinaryByter
school is shit
olli
Whats bad about c style casts?
There's nothing really bad about them. However C++ casts are more restrictive and tend to be "safer". For example a C style cast can be either a static_cast or a reinterpret_cast and so on. Using a c style cast you are asking your compiler to do whatever it can to actually perform the cast, not only usually safe static_casts Bjarne states (http://www.stroustrup.com/bs_faq2.html#static-cast) A secondary reason for introducing the new-style cast was that C-style casts are very hard to spot in a program. For example, you can't conveniently search for casts using an ordinary editor or word processor. This near-invisibility of C-style casts is especially unfortunate because they are so potentially damaging. An ugly operation should have an ugly syntactic form.That observation was part of the reason for choosing the syntax for the new-style casts. A further reason was for the new-style casts to match the template notation, so that programmers can write their own casts, especially run-time checked casts. Maybe, because static_cast is so ugly and so relatively hard to type, you're more likely to think twice before using one? That would be good, because casts really are mostly avoidable in modern C++. https://en.cppreference.com/w/cpp/language/explicit_cast shows what is really performed by the compiler when you're C- casting in C++
Alignant
static_cast is not ugly
Alignant
const_cast is :D
olli
static_cast is not ugly
Not needing to cast is always better :)
Saurabh
I want a suggestions on a program If i wants to make a program such that if i have a software and i transfer that software from one computer to another but i want that software will run on my computer and do not run on another system .
Saurabh
Like Consider a situation If a company launches a product and then he uploaded on internet to download by users but company thought to increase their downloads and they want that their product do not transfer from one computer to another computer
Alignant
For example
Saurabh
I want to make by mac address sniffing
olli
thanks :)
Mat
No problem :)
klimi
Welcomr
Morgan
Richest person in the world ??
Morgan
What does he do
Anonymous
Bonjour
Mat
Bonjour
Hi :)
Anonymous
Hi :)
Comment vas tu
Mat
Comment vas tu
Eng, please
Anonymous
Mat
Great! Look at the pinned message and join our OT channel!
Mat
#offtopic
Marie
#offtopic
https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ
Dima
- How high are you? - it’s “hi how are you”, officer
klimi
XD
klimi
Welcome
Anonymous
:) I'm just a beginner.
klimi
No problem
Anonymous
If i get stuck in the code i can ask here right? He he
klimi
If you have problem yes
klimi
^^
Anonymous
You're a professional? 😅
klimi
I'm not a programmer
klimi
I'm just admin here
klimi
Banning others ^^
Anonymous
Lmao 😂
klimi
And warning them
Anonymous
Ayee, Gotchu
Anonymous
Where is error
klimi
Where is error
Oh ... In taking picture of code with phone
Zero
Can somebody explain me algorithm of Infix to prefix Code?
Roxifλsz 🇱🇹
Where is error
At the bottom of your photo lmao
klimi
At the bottom of your photo lmao
You're so genius admin/creator
klimi
Why me?
klimi
I suck
Zero
klimi
Sorry
Zero
Why me?
I thought u r pro in c ..as a admin
klimi
I thought u r pro in c ..as a admin
I said I'm only admin
klimi
I'm not a programmer
klimi
Being admin doesn't mean I have to know programming
klimi
Or does it?
olli
Where is error
there are several, e.g. - conio is no standard header, might not be available, see error - int main, void main might work although not compliant - line 5 additionl , before ; - clrscr not available w/o conio - inr not defined - missing semicolons in several lines - functions are mostly lowercase - scanf/printf wrong format specifier - ... basically in every line inside your main function
Zero
Where is error
Clrscr too
Zero
And no need of clrscr function
Zero
And of conio header too
Alignant
I suck
No you don't^^
klimi
Alignant
I am not sure if you're mocking this guy who takes picture of his monitor