klimi
no
@Mtamatz
Have a question about c++
Anonymous
How create software please tech me
klimi
How create software please tech me
um.... you hire programmers and you tell them what you want...
Anonymous
Okk
@Mtamatz
go ahead
Which software it's good for running c++ for beginner
klimi
Which software it's good for running c++ for beginner
... Operating system... if you are asking what you need to execute an executable
klimi
Which operating system 🤷
hm...every one is okay... i would say...
klimi
but mostly linux / windows / bsd / macos
@Mtamatz
for my computer I use windows
@Mtamatz
visiol studio i have but i'm unable to use it maybe help me how to set it so i can use it
@Mtamatz
Ok POA
@Mtamatz
🙏🏻🙏🏻🙏🏻
Yazan
Guys how to study c program and understand question and solve ? And does c need logic to understand it ?
Manish
Its not the programming language that makes us better at building logics. One should only get better on logic building by solving problems on a regular basis, or practicing hard problems.
Anonymous
Quick question: Would you recommend Vim in 2020?
Yakov
Quick question: Would you recommend Vim in 2020?
I do not understand why somebody would use it, there are plenty good, modern IDEs
Anonymous
klimi
Quick question: Would you recommend Vim in 2020?
depends... come OT if you want to discuss
Anonymous
Why there is public keyword.
HLEBR
Does application manifest for Linux exist?
Anonymous
Oops
Asad
hey friends. do i always have to override pure virtual functions? i heard that there is a way not to do it, but, i can't find it
Ajay
I've map<int,int> mp; doing if(mp[any_integer]==any_value) increases the size of map by 1 if any_integer is not present in the map before this if statement. How can I prevent the increase in size by 1 but still able to compare ?
Ajay
Other than later removing any_integer from map after the comparison.
Asdew
Quick question: Would you recommend Vim in 2020?
I use (Neo)vim to program C and I do not have a single reason to use an IDE. I recommend (Neo)vim.
Anonymous
K
Anonymous
Use find member function to know whether value is present in map
Ajay
Use find member function to know whether value is present in map
but I want to check if the certain key has a particular value in the map.
Ajay
and not just the presence of key in the map
Ajay
So? What's wrong?
find only checks if map has certain key
Anonymous
Why you can't combine 2 conditions?
Ajay
So???
I want to check if the certain key has a particular value in the map.ie map[5]==4 or not?
Anonymous
like
Think
Ajay
mp.find(5) != mp.end() && what?
Anonymous
You've already written it
Ajay
oh! and then mp[5]==3
Ajay
mp.find(5) != mp.end() && mp[5]==3
Anonymous
That's one way, yes
Ajay
and the other?
MᏫᎻᎯᎷᎷᎬᎠ
.
Anonymous
if (auto it = mp.find(key); it != mp.end() && it->second == value)
Anonymous
😂
What?
Anonymous
It is faster
Ajay
Since C++17
c++11 way of doing that faster?
Anonymous
c++11 way of doing that faster?
Extract initialization out of if statement
MᏫᎻᎯᎷᎷᎬᎠ
c++11 way of doing that faster?
No Letting a useless variable resides in your function body won't make it faster
MᏫᎻᎯᎷᎷᎬᎠ
C++17 if is much better and cleaner + scoped
Anonymous
Anonymous
It is not
So, whats that public mean.
Anonymous
Anonymous
What key?🤔
Your question discredits you
Ajay
Extract initialization out of if statement
I think i'll do auto it = mp.find(key); if(it != mp.end() && it->second == value)
Anonymous
What key?🤔
find is O(logn) operator[] is O(logn)
MᏫᎻᎯᎷᎷᎬᎠ
What key?🤔
Oh I got it Well My advise has affects in general then :)
MᏫᎻᎯᎷᎷᎬᎠ
find is O(logn) operator[] is O(logn)
Sorry I've just noticed we were talking about std::map ;)
Anonymous
Anyone can help me?My YCM doesn't work correct.Like this,it works for the first completion,but doesn,t work after that.
Anonymous
Anonymous
Wisenky
https://github.com/pipd0un/L.D.Network
👆 problem is actual lol
klimi
you need to index the libraries or something like that