Mat
I hope someone will join soon :/
Anonymous
Hi
Anonymous
I am new to c++
Mat
Welcome!
klimi
Welcome
Anonymous
All admins are good.. Thanks
klimi
You're welcome
Anonymous
Can you please tell me why there is requirement of runtime polymorphism.. If there is already compile time polymorphism exists
Oleksandr
🌚it better to have two guns, than only one
Anonymous
Oleksandr
bullshit
Oleksandr
he asks about polymorphism only, not about "all code in compile time"
Anonymous
Because user input isn't static and you cannot calculate results prematurely
But I not get your answer correctly..can you please elaborate more
void
The interfaces are the main thing in polymorphism, to my mind As example you have a game Dota public final class Dota { } And constructor gets multiple heroes to create arena (10 heroes) public final class Dota { public Dota(Sven firstHero, QoP secondHero... Void tenthHero) {} public Dota(Venomancer first... tenthHero) {} } And it's (amount of heroes)^10 constructors But if all heroes will implement some basic interface Hero you will can just set it as two array of Radiant and Dire commands public interface Hero {} public class Tinker implements Hero {} public final class Dota { public Dota(Hero[] radiantHeroes, Hero[] direHeroes) {} }
Oleksandr
But I not get your answer correctly..can you please elaborate more
ur program has all information, that u need, before run?
Dipanjan
Hi
Anonymous
* I've explained java interfaces, but it's good (imho) example of polymorphism *
You can be get banned..before a guy get banned previously for talking about python here
Dipanjan
😂
Mat
You can be get banned..before a guy get banned previously for talking about python here
Before a guy get warned because it was off-topic, violating various rules
Mat
At the second warn you get banned
Anonymous
Oleksandr
sounds not very clever
Dipanjan
Bullshit
Anonymous
sounds not very clever
int seconds = 1; While(seconds==1) You are banned..go and rub you ass else where;
Anonymous
Now it's clear..?
Mat
You'll not be warned for spreading knowledge. You'll get warned if you call shitty errors python error messages about wrong indentation claiming you've read all the docs and various other things
Oleksandr
int seconds = 1; While(seconds==1) You are banned..go and rub you ass else where;
> seconds in global, > seconds not static, > change var from other module
Mat
sounds not very clever
It's not like you'll be better anytime soon 🤷‍♂ we don't warn/ban useful people
Mat
Now let's return on-topic
Mat
Thank you :)
Dipanjan
Return 0;
Dipanjan
}
Dipanjan
Good night
Mat
No one is useless.. everyone has value..
Well, that's simply not true
Mat
But let's end this here
Anonymous
Well, that's simply not true
It's a matter of thinking..just thinking
Oleksandr
What you are saying here.. Please be more clear
i say, that ur while-loop not necessary would be infinit
Anonymous
even if it nullptr
It's a variable type..? Like int and all that
Anonymous
i say, that ur while-loop not necessary would be infinit
I know..bcoz if seconds value got changed
Anonymous
It's not static
Anonymous
void *ptr = NULL
Yeah..but nullptr is a variable type bro..like void
Oleksandr
void * it's not a type at all... hm, it just "a place in memory"
void
Oleksandr
where u can find a value.. or not)
Anonymous
I've never used it) C99 <З
I'm talking about c++11 or 14
Anonymous
I don't remember exactly
Anonymous
where u can find a value.. or not)
Bro..void is a return type
Oleksandr
ok, this is not interesting, better ask something about coding)
void
Bro..void is a return type
That's not entirely true: https://en.wikipedia.org/wiki/Void_type
Anonymous
Can anyone provide me C/C++ paid course of udemy for free
Anonymous
Can anyone provide me C/C++ paid course of udemy for free
Honestly this isn't right place, but if you're a pirate go to any pirate site like pirates bay or 1377x and have good torrent client. But why can't you just pay for Udemy courses? They're not worth paying for anyway. I don't recommend you to pirate try free Udemy courses plus if you're interested go pay for it. This isn't right place to ask. Use #ot, have a great day! Note : I don't entertain piracy just do it as a last resort if you're so poor that you can't get it, (really? You have the money to pay for the internet, your PC, phone etc, so just pay for it.) ...
Till
why?)
If no side-effects, then while(true) is undefined behavior in C++11 https://en.cppreference.com/w/cpp/language/ub
ak
Hai guys
Badest Buddy
Yaa
Anonymous
Can anyone provide me C/C++ paid course of udemy for free
You can study from edx(.)org Lectures by IIT Bombay
Badest Buddy
Login there and pay for the course
Mat
Panis: You can study from edx.org Lectures by IIT Bombay
Anonymous
You can study from edx(.)org Lectures by IIT Bombay
They are free.. But certification is paid.. If you just want to learn .you can study lectures for free.. If you want certification..then it's paid..
Anonymous
And believe me.. If you complete that courses (it's a series of 3-4 courses of C++ including Data structures) You can conquer any product based company interview..
Anonymous
Any means any
Badest Buddy
Oh it's really
Badest Buddy
Then I surely do