Telegramy
Articles
About
« Rev
@programminginc
1495
Fwd »
Asad
and overflow
Asad
and this one too
Dima
Lol
H̲i̲L̲e̲v̲e̲l̲
i dont know what you guys are talking about.... sorry i am new here
Int value = 1; For (int i = 1; i <100; i++) { value *= i; }
Asad
thank you
H̲i̲L̲e̲v̲e̲l̲
Three lines
H̲i̲L̲e̲v̲e̲l̲
thank you
Actually, are you russian?
Asad
Actually, are you russian?
I am from Uzbekistan]
Asad
and you are russian, i guess
H̲i̲L̲e̲v̲e̲l̲
and you are russian, i guess
Sure
Asad
is this the result?
H̲i̲L̲e̲v̲e̲l̲
I am from Uzbekistan]
Is my code right?
Asad
Is my code right?
your code gives 0
Asad
😳 it is a wrong attempt on my PC i guess
H̲i̲L̲e̲v̲e̲l̲
I guess, your compilator doesnt supports big numbers like this
Asad
need to get a new one
H̲i̲L̲e̲v̲e̲l̲
Try to change from 100 to 10
H̲i̲L̲e̲v̲e̲l̲
And check again
Asad
Try to change from 100 to 10
yeah it is working upto 20
Asad
but not further
H̲i̲L̲e̲v̲e̲l̲
Hoorayyy!
H̲i̲L̲e̲v̲e̲l̲
We found answer
H̲i̲L̲e̲v̲e̲l̲
I know why
H̲i̲L̲e̲v̲e̲l̲
Integer is 4-byte number
H̲i̲L̲e̲v̲e̲l̲
Use long
Asad
how
H̲i̲L̲e̲v̲e̲l̲
Long value = 1
H̲i̲L̲e̲v̲e̲l̲
Or unsigned long
H̲i̲L̲e̲v̲e̲l̲
Its up to you
Asad
what does it mean
H̲i̲L̲e̲v̲e̲l̲
Number without minus
Asad
Long value = 1
you mean variable?
H̲i̲L̲e̲v̲e̲l̲
In google -> unsigned
H̲i̲L̲e̲v̲e̲l̲
You shoud understand basics of cpp and computer science
Asad
ok
Asad
I'll keep learning
Asad
You shoud understand basics of cpp and computer science
thank you
H̲i̲L̲e̲v̲e̲l̲
I'll keep learning
Best learning is practic
Anonymous
K
Jonrick
Hi
MᏫᎻᎯᎷᎷᎬᎠ
Hi
MᏫᎻᎯᎷᎷᎬᎠ
How big is boost library?! I wanna download it but it seems very very large
BinaryByter
boost is huge
BinaryByter
its a lot of bloat though lol
MᏫᎻᎯᎷᎷᎬᎠ
It's like a 1 gb library?!
BinaryByter
yea
MᏫᎻᎯᎷᎷᎬᎠ
Lol
BinaryByter
its horribly bloated - especialyl if you have a librarian that doesnt know what to include in the binary
BinaryByter
*looking at you gcc*
Wim
1gb non bloat?
Wim
I run linux in 9mb?
BinaryByter
1gb non bloat?
😂
Dima
It's like a 1 gb library?!
people could fit crc32 algorithm in C in kinda 60 lines while boost’s crc32 is around 1000 lines
Wim
Boost is like 1 lib..
Ariana
people could fit crc32 algorithm in C in kinda 60 lines while boost’s crc32 is around 1000 lines
._. just why
BinaryByter
._. just why
1) compatibility 2) "modern coding" 3) "readability of code"
MᏫᎻᎯᎷᎷᎬᎠ
I run linux in 9mb?
@BinaryByter Are you sure that this dude is a porn star?!:$
BinaryByter
i cant think of any other excuse
Ariana
1) compatibility 2) "modern coding" 3) "readability of code"
._. eww
BinaryByter
@BinaryByter Are you sure that this dude is a porn star?!:$
He is, yea
MᏫᎻᎯᎷᎷᎬᎠ
He is, yea
Ewww
Dima
1) compatibility 2) "modern coding" 3) "readability of code"
the latest ones are KEK.
Dima
> readability of a code > template constraints/enable_if/constexpr_if
BinaryByter
> readability of a code > template constraints/enable_if/constexpr_if
😂
BinaryByter
the worst parts are the implementation of <type_traits>
MᏫᎻᎯᎷᎷᎬᎠ
> readability of a code > template constraints/enable_if/constexpr_if
constexpr_if?!;
BinaryByter
since they can't have intrinsics, its full if #ifdefs <compiler>
BinaryByter
constexpr_if?!;
C++17 =D
Dima
I’d better put a few ifdefs
Dima
or move to a separated namespace :troll:
MᏫᎻᎯᎷᎷᎬᎠ
Btw When to use enable_if?
Anonymous
What do you mean by modern coding🤔
BinaryByter
Btw When to use enable_if?
You will notice
BinaryByter
What do you mean by modern coding🤔
"call interfaces not functions"
MᏫᎻᎯᎷᎷᎬᎠ
You will notice
Notice what!!?
Anonymous
"call interfaces not functions"
Is call interfaces possible in c? I'm a noob 😅
BinaryByter
Is call interfaces possible in c? I'm a noob 😅
not really
BinaryByter
Notice what!!?
when you need it
MᏫᎻᎯᎷᎷᎬᎠ
when you need it
Like?!
Wim
@BinaryByter Are you sure that this dude is a porn star?!:$
Ex producer actually
« Rev
@programminginc
1495
Fwd »