BinaryByter
just divide by 3.0f ?
UDL is weird, but yea, should do the trick
BinaryByter
Type casting is always weird in c
its always weird really
🐰🐾 سمیه
can I make cim like this? I mean braces would be connected to each other.
Anonymous
BinaryByter
user defined literals
BinaryByter
wut?
BinaryByter
its intrinsic to the language?
Anonymous
just divide by 3.0f ?
Shouldn't do that (But Don't know why)
olli
its intrinsic to the language?
Since it also works in C, it has to be
BinaryByter
f works in c too?
BinaryByter
hawawawawa?
BinaryByter
dafaq
Anonymous
It does I guess
Anonymous
for (int i=0; i<10; ++i)
olli
Shouldn't do that (But Don't know why)
It's basically the same thing. Look at some compiler output
Anonymous
Where that int i was not supposed to work
Anonymous
In modern C idk from which Version we use // single comments many other features which were not supposed to be
BinaryByter
btw, olli, i think that 3.0 should suffice for the compiler to detect a float
olli
An unsuffixed floating constant has type double. If suffixed by the letter f or F, it has type float. If suffixed by the letter l or L, it has type long double. n1570 - 6.4.4.2
Anonymous
Yes
BinaryByter
3.0 is double though. So it's not the same
Sure but the effect should be the same
Anonymous
1234567890UL;
olli
Sure but the effect should be the same
for sure, just wanted to have the exact same behavior
BinaryByter
Okay, makes sense!
BinaryByter
Well 3.0 should be bloat so yea, 3,0f is better
Anonymous
LoL
BinaryByter
unless you need dounle capacity
BinaryByter
LoL
4bytes, enough to encode a stackframe creation 😘😂😂
BinaryByter
enter 80h, 0h
BinaryByter
Should encode to CB 00 80 00
Anonymous
Damn
Anonymous
Some assembly
BinaryByter
Yea 😂😂
ShyBlogger
Cxx droid
Ok thanks
BinaryByter
😂😂😂😂😂😂😂😂
🐰🐾 سمیه
here source codes of substr and writeline are in the fine but I got an error for: "conflicting types... ." after adding an extra m to their names, still I got the same errors. what's wrong here?
BinaryByter
Vim is really gud compiler for c++!!
Wim is a good compiler for Cpp
Anonymous
Wim is a good compiler for Cpp
No, indians is good or he are good in compiling; Edit : don't try to understand this because you'll die laughing
BinaryByter
it doesnt
Nicolas
Indian in this digital age don't work harder work smarter
Anonymous
Would y'all recommend me a book for data Structure and algorithm? I'm just learning all these things.
Anonymous
Would y'all recommend me a book for data Structure and algorithm? I'm just learning all these things.
Anybody? Who has read some good books about data Structure and algorithm.
I_Interface
Did u even try to Google it ?
Anonymous
Did u even try to Google it ?
Yess I did be there was lots of options.so I came here .
Malevolent
What is the standard book for data structures and algorithms??
BinaryByter
lol
Malevolent
I_Interface
Everyone of them lol
BinaryByter
There is no such book
Malevolent
Oopsie
Anonymous
Wait ! Isn't CLRS bit higher?
Nikolas
If I have to suggest a book, Introduction to Algorithms
Malevolent
Ahh... Okay 🔥
BinaryByter
Nice 😊
BinaryByter
gotta love golang
Mat
Wtf 😂😂
I_Interface
This Rose is broken. Get the new one 😂
Anonymous
Hi
数学の恋人
#include <iostream> #include <math.h> template <typename Method, typename F, typename Float> double integrate(F f, Float a, Float b, long steps, Method m) { double s = 0, h = (b-a)/steps; for(int i = 0; i < steps; ++i) { s += m(f, a + h*i, h); } return h*s; } class simpson { public: template <typename F, typename Float> double operator()(F f, Float x, Float h) const { return (f(x) + 4*f(x+h/2) + f(x+h))/6; } }; double f(double x) { return (log(1+x)*log(1-x)*log(x)*log(x)); } int main() { double s = integrate(f, 0.00000000001, 0.99999999999, 10000000, simpson()); std::cout.precision(17); std::cout << "s = " << std::fixed << s << "\n"; return 0; } can this be made more efficient?
Anonymous
Hello everyone, i'm new to c ; I want to understund pointers ; do u have idea for little project using pointers ? ; maybe project with more things also ; all i know now is to set variables and print them 😂 ; but i want to learn ;
Anonymous
For the start u can set a pointer for variable
sure i did that i understund fast that's why i'm looking for little project
Anonymous
I'm coming from python programming
I_Interface
I'm coming from python programming
Hm, try to watch forward list realization
Anonymous
Hm, try to watch forward list realization
Thanks a lot ! I'm interesting to 'translate' ( to human laungage ) binaries file like mice in linux ( mouse ) and things like that. maybe it's good point to start ?
Anonymous
Hey there I'm a computer science student n I will someone to teach me how to write programs
BinaryByter
Hey there I'm a computer science student n I will someone to teach me how to write programs
fatal error in parse: 'someone' is not a verb or any of its valid derivates
Anonymous
Isnt your professor gonna teach you that?? 🤔
Nop like I only learn theory which makes it hard for me
I_Interface
Then it's strange what I'm learning it by myself 🤔