correctmaninwrongplace
I use in linux gedit too
Anonymous
The good thing about vim is that you can use it over ssh (emacs too)
correctmaninwrongplace
One of our teachers showed us jedit, it is the biggest shit i have tested
Anonymous
hehe
Anonymous
Sounds like it's written in Java
Daniele°
correctmaninwrongplace
Daniele°
Vim
Anonymous
I sometimes do
correctmaninwrongplace
Anonymous
When we have "IT" in school
Anonymous
lol
Anonymous
Maybe I could use Teamviewer
Anonymous
If the school internet isn't shit
Anonymous
The funniest thing about my school
Anonymous
Is that the BIOS doesn't even have am admin passwird
Anonymous
You could just locm the co.puter with a User pw
Anonymous
:p
correctmaninwrongplace
In most of the places, the security brights because there isn't
Anonymous
Anonymous
Good night y'all
Anonymous
need to sleep
correctmaninwrongplace
good night
𝑠𝑎𝑛𝑖
Where the code you displayed bro
Anonymous
/report
mark
ATOM
better than VS code or nah?
Anonymous
/report
Anonymous
uups
Anonymous
Anonymous
http://en.cppreference.com/w/cpp/language/operator_arithmetic
Anonymous
http://en.cppreference.com/w/cpp/language/while
Anonymous
hey, I should start using c++17
Anonymous
If GCC allows that
Anonymous
or clang
Anonymous
Ok, it does
Anonymous
Where can I find C++ programming live streams?
Anonymous
harry
whats the "a =" for?
harry
is it like those let's play streams
Anonymous
whats the "a =" for?
Because I have to evaluate 'a' later
harry
but you are exiting the function with return
harry
there is no later, is there?
Anonymous
whats the "a =" for?
I compare 'a' with 'b' and I caught the biggest of two
harry
hm
Anonymous
After that I compare 'a' with 'c' and return the biggest
harry
can you copy in the code?
harry
as actual text, rather than a picture
harry
I want to try it
Anonymous
Okay
Anonymous
Anonymous
this* xdxd
harry
hm, yes I see
harry
I still dont understand why you are posting screenshots though
Anonymous
I can send you the code 😆
Anonymous
int max_number(int a, int b, int c) { // a = (a > b) ? a : b; // a = (a > c) ? a : c; // tis is equal to: // if (a > b) // a = a; // else // a = b; // // if (a > c) // return a; // else // return c; return ((a = (a > b ? a : b)) > c ? a : c); }
harry
thanks
Anonymous
But it's efficient
Isc
not really, its assigning a
Isc
so its exactly the same as the 2 line version
Anonymous
so its exactly the same as the 2 line version
I prefer the one line version 😆
harry
I think the outer brackets are superfluous
harry
return (a = (a > b ? a : b)) > c ? a : c;
harry
//return (a = (a > b ? a : b)) > c ? a : c; return a > b ? (a > c ? a : c) : (b > c ? b : c);
harry
which one is more intuitive/easier to read?
Isc
which one is more intuitive/easier to read?
int max = (a > b ? a : b); return (max > c ? max : c);
harry
supposedly ?: is faster but idk
harry
I want to believe
harry
Liam
why though?
Do NOT think you, yourself, are smarter than the compiler. https://godbolt.org/g/kyQiK8