Anonymous
😓
Anonymous
I mean about adding extra include paths in project settinga
Anonymous
And adding linker input
Anonymous
👍
Aym
😐😐 btw which IDLE is best for Windows?
Dima
IDLE?
Dima
Aym
IDLE?
IDE*
Aym
😂😂 yeah
joel
ew light theme wtff
joel
what do vectors do tho
joel
i always tried to understand but never did i
Neutronix
😐😐 btw which IDLE is best for Windows?
Visual Studio is the official IDE by Microsoft
Aym
what do vectors do tho
it's used as Dynamic array
Aym
Visual Studio is the official IDE by Microsoft
😐 it was kinda complicated.. i liked dev cpp
joel
it's used as Dynamic array
so basically an unlimited array?
joel
or an array with undefined length?
Aym
or an array with undefined length?
😐 not really but kinda like this... you should see STL
Aym
Yes, if given iterators of a sequence meet some requirements
std::sort(arr[0],arr[size-1]); what about this?
Anonymous
Anonymous
I don't understand what an iterator is
Aym
It's won't compile
yeah.. it didn't
Aym
🤔 so we can't sort directly an array using sort
Aym
But
so here need to use iterator to sort?
Anonymous
so here need to use iterator to sort?
Let's start all over again
Anonymous
What is an iterator?
Aym
What is an iterator?
iterator is used to access content of container? just like loops variable?
Anonymous
Not exactly
Aym
what else
Anonymous
An iterator is an object to have access to an element of a container the iterator points to
Aym
Iterators are just like pointers used to access the container elements. source : internet
Anonymous
Yeees
Aym
and used to traverse content of the container
Anonymous
So a pointer can be used as an iterator
Aym
so i need a pointer to point element of array
Aym
to use sort?
Anonymous
You need two pointers
Anonymous
Same as iterators
Aym
😐 ultimately i'm here.. i didn't like pointers and was avoiding it for long time..
Aym
so now ig i'll have to study pointers ;-;
Aym
but STL is ❤️
777
Arkadaşlar kimse varmı
Aym
Arkadaşlar kimse varmı
😐 only English is allowed
777
Sorry
Artöm
std::sort(arr[0],arr[size-1]); what about this?
std::sort(v.data(), v.data() + v.size())
Aym
std::sort(v.data(), v.data() + v.size())
Was trying to implement on array not vector.
Aym
Arr[size]
Artöm
And for c array it is std::sort(arr, arr + size)
Aym
Same for std::array
Didn't work for array
Aym
And for c array it is std::sort(arr, arr + size)
What changes do you think here should be? arr is array size is an input for arrays size std::sort(arr[0],arr[size-1]); what about this?
Aym
And for c array it is std::sort(arr, arr + size)
Here arr is array name.. Size is size of array right? Then arr + size?? What's it
Artöm
Pointer to the (non-existing) element right after array end
Artöm
Pair [arr,arr+size) forms a range
Artöm
std::sort works with a range
Anonymous
Ate entry, but about ide, I was a devcpp fan till I used visual studio. Vs Is great. However it adds the precompiled headers which might be confusing in the beginning. But it has lot better debug experience.
Anonymous
Also, New entry is Visual Studio Code
Anonymous
This IDE is agai from Microsoft, but light weight, do not need vcxproj files and can work with folders and individual files
Anonymous
Also works with makefiles. You just need the right extensions and you can use it for any thing c c++ angular node just anything
Anonymous
Ya i mean it takes time to get that
Anonymous
For beginners
Anonymous
Vs code is not web oriented
Anonymous
I have used it extensively for make file based projects
Artöm
It is
Artöm
Most usages are web or front
Anonymous
I use vs code for everything except c++ c#
Anonymous
Arduino works great