S.
That define is totally wrong (
Anonymous
Then?
Aquib
#define Discount 15%
Anonymous
Help me correct it 😅😂😂
Aquib
??
Aquib
Make it 0.15
Aquib
Which is 15/100
Anonymous
Thanks
Aquib
Also using macros is an anti pattern
Aquib
Use const and constexpr instead
Anonymous
Line 16
Anonymous
Now. Its line 16 lol
Aquib
Remove the #Define
AbG
Hii
Aquib
Anti pattern is a software practice you are advised not to follow
swarnim
Also using macros is an anti pattern
Not really they should not be called anti patterns but should not be used in place of variables....
SHERLOCK
Why we use functions?
SHERLOCK
In a program
Mihail
Why we use functions?
Just think about it
Mihail
Why do you ever decide to use a function in your program?
SHERLOCK
Such as "return 0" what it means?
klimi
I feel like we're Q&A
SHERLOCK
klimi
Really i dont know.
I just said it
SHERLOCK
Sir
Dima
Google exists 🤔
For Indians it’s the Shrodinger box: it exists but it doesn’t xD
Anonymous
subscribe to T-Series 😂
Anmol
Ok
AlexGamer
Is there a c c++ cookbook pdf
Anonymous
#cppbook
Anonymous
#cbook
MᏫᎻᎯᎷᎷᎬᎠ
Such as "return 0" what it means?
I faced the same issue when I started
MᏫᎻᎯᎷᎷᎬᎠ
Function is like an entity does some work and give(return) a value at the end to caller(another function like main)
Mat
I faced the same issue when I started
Me, too. A return statement search gave me all i needed
Dima
subscribe to T-Series 😂
/ban subscribe to pewdiepie
abhi3700
Q. which one is faster? - std::endl - "\n"
Aquib
Q. which one is faster? - std::endl - "\n"
/n prints new line. Endl prints new line but also flushes the io buffer. Flushing is a costly operation and should be left off to the io buffer itself unless you actually want to flush the buffer.
abhi3700
👌👌👌👌
Anonymous
What why
S.
"No ad" policy
Elnee
/saved
Elnee
!get meta
Elnee
!get freeprogrammingbooks
Elnee
Thx, Rose
Elnee
🌹
MᏫᎻᎯᎷᎷᎬᎠ
:)
Roberto
/saved
Anonymous
/cppbook
Anonymous
#cppbook
Anonymous
#cbook
Anonymous
#ide
Anonymous
#findprojects
Anonymous
Who often uses MarkdownPad 2 software?
Anonymous
I am in trouble
Ludovic 'Archivist'
Same except in the case of {} you cannot get most vexing parse issues
Zeus
Per Capita Indians are same as everywhere else
* Casually practices racism *😂
Dima
indians are not welcome
swarnim
indians are not welcome
I am guessing you are German...?
Zeus
I am guessing you are German...?
Lol nar..- won't say it xD
swarnim
*don't mind me just throwing racism around.....
Dima
nah I am not
swarnim
nah I am not
Then russian??
Dima
not indian 100%
Zeus
He is not fond of Indians😂
swarnim
He is not fond of Indians😂
Non of the admins here are...
Dima
well if you are smart and won’t tell silly things then you are welcome!
Dima
swarnim
Why's that
College idiots asking homework...😫
Anonymous