Anonymous
Beside code quality, what decisions in Linux kernel are ugly?
Anonymous
There are parts quite elaborate
Till
And some parts of code may rewritten on C++, but Linus don't want, because he doesn't know C++.
Anonymous
They tried c++ earlier as drew Eckhart said on quora
Anonymous
Nameful
Till
Nameful
Why would C++ prevent you from writing a stable kernel?
Pavel
Nameful
Chernykh
Till
Nameful
Till
Nameful
Chernykh
Chernykh
It's wrong big C projects is less readable then cpp projects
Chernykh
For example, when I looked through Google chrome code, there were an arrays of pointers to function and that very implicitly, because u don't sure what will be contained there and what will be called. Moreover it's not securely
Chernykh
Also it isn't readable
Chernykh
int sum(int a, int b);
int subtract(int a, int b);
int mul(int a, int b);
int div(int a, int b);
int( * p[4])(int x, int y);
int main(void) {
int result;
int i, j, op;
p[0] = sum; /* address of sum() */
p[1] = subtract; /* address of subtract() */
p[2] = mul; /* address of mul() */
p[3] = div; /* address of div() */
Ajay
Define compile-time polymorphism
compiler identifies which polymorphic form it has to execute at compile time. But, we implement compile time poly. by function overloading. Why isn't the other way true?
Dima
Anonymous
Richie
https://www.codechef.com/FEB20B/problems/THEATRE
Richie
Can anyone solve this problem..?
klimi
yep
klimi
anyone can solve that
.json
Richie
Solve this problem
Richie
I req u guys..?
Dima
Retards
MilkBeforeCereal
abuse me 😩
MilkBeforeCereal
Ajay
I don't understand what you mean
One way of achieving compile time polymorphism is by function overloading. But, why doesn't the mentioned code follows compile-time poly?
klimi
qt for gui is cool
kapil
qt for gui is cool
what about webscrapping using C++? is it a good idea? i can't find any detailed or good video on this topic(only handful videos on this). i will just be checking for one value. price, thats it. nothing else. want to make as simple project as possible. so that i can understand everything and i am able to answer everything from my project as well.
klimi
Asdew
H1n1, are you the H1N1 influenza virus?
David🇨🇺ElChino
David🇨🇺ElChino
Mat
Kenny
Hey guys, how could i split into tokens a string?
Example: "hello fine sun"
Output:
Hello
Fine
Sun
klimi
// string A, B, C.
std::cin » A » B » C;
Kenny
No, I must introduce an string of n size and then split
Kakashi Hatake
Is it possible to create a mail client using c only?
klimi
std::string text = "Let me split this into words";
std::istringstream iss(text);
std::vector<std::string> results(std::istream_iterator<std::string>{iss},
std::istream_iterator<std::string>());
Dima
Nameful
why not
was there not a k in your name?
klimi
there was
Dima
so what?
Nameful
so what?
I was uncertain whether my memory was failing me or not
Igor🇺🇦
Anonymous
hi guys
Anonymous
Dima
I thought this is a laptop and external display photo lol
Dima
did it actually read the file?
Anonymous
Anonymous
help me solve my problem plz
Dima
Anonymous
after that I'll give you my dotfiles xD
Dima
try to debug it
Dima
what fp actually returns
Dima
try to add a condition
Dima
if (fp) fclose(fp);
Anonymous
Dima
no
Dima
read my message again
Anonymous
i don't want use if and else
Dima
your fault then
Anonymous
if u can't help me just quiet