Anonymous
😅
Whenever you don't understand something, you first try to look for similar issues on StackOverflow and in the language/technology documentation papers. This is literally how it's done normally, I think. Only then you ask people around you. It saves both your time and the time of your colleagues, assuming you work in the field. If I were the HR, I'd put "The ability to search information on your own" in the required skills.
Sai Meghana
I know :)
MᏫᎻᎯᎷᎷᎬᎠ
Oleksandr
Alias type
typedef on template class
MᏫᎻᎯᎷᎷᎬᎠ
typedef on template class
Alias type for a template class
MᏫᎻᎯᎷᎷᎬᎠ
std::basic_string
MᏫᎻᎯᎷᎷᎬᎠ
No point from this debate
MᏫᎻᎯᎷᎷᎬᎠ
boring :c
Yes, but actually no
Ludovic 'Archivist'
Oleksandr
And what about the vector function? Can that be used too?
what u mean "vector function" ?
Sai Meghana
sorry not function...
Sai Meghana
vector<int> num;
Oleksandr
vector for 2d array?
Oleksandr
vector<vector<int>> arr;
Sai Meghana
I was asking if Vector of Vector is possible
Oleksandr
of course it is possible
Sai Meghana
and how would i insert elements into that? two dot operators?
Oleksandr
hm... actually by .insert method, for example :DDD
Oleksandr
int i= 10; int j = 20; std::vector<std::vector<int>> vec(i, std::vector<int>(j)); ///// for (int i = 0; i < 10; ++i) { for (int j = 0; j < 20; ++j) { vec[i][j] = number; } }
Oleksandr
for fun :D
MᏫᎻᎯᎷᎷᎬᎠ
and how would i insert elements into that? two dot operators?
You would insert a whole vector object in the outer vector
MᏫᎻᎯᎷᎷᎬᎠ
std::vector<std::vector<int>> outer_v; outer_v.push_back(std::vector<int>()); outer_v[0].push_back(1);
Oleksandr
You would insert a whole vector object in the outer vector
o create it in constructer in 1 line as above
Dima
watch out for cache misses when working with such stuff as 2d arrays
Ludovic 'Archivist'
watch out for cache misses when working with such stuff as 2d arrays
Yeah, would be nice having a good abstraction for them in C++
Ludovic 'Archivist'
At least for matrices
void
int arr[d1*d2]
Dima
int secondIndex = d1.length + index;
Oleksandr
in fact, there is some cases when int arr[d1*d2]; much better then int arr[d1][d2];
Dima
In fact using this stuff is a bad idea
Dima
Just create two unordered_map and match keys :D
Dima
(no)
Anonymous
I'll let you know soon..
You created full code or not..?
Oleksandr
блять, знатоки, как на анг будет "разыменовать указатель"?
Oleksandr
а то я заебался обходиться другими словами
Lelouch
Oleksandr
arr[d1][d2] /* 1) two times derefernce pointer for getting value(that slower then d1 * d2 + d2; 2) memory fragmentation */
Oleksandr
dereference?
ну я уже справился
Oleksandr
thnx
Dima
(Я в русских понятиях программья не шарю)
Dima
Yes
Anonymous
Please
Dima
I am just guiding him
Dima
don’t click fingers please
Oleksandr
Only English
use unicode instead of ascii, and be happy
Dima
use unicode instead of ascii, and be happy
I wonder how cyrillic appears in windows telegram where russian font is not downloaded
Dima
[][][][][][][][][][]?
Oleksandr
Only English
there is some questions, in which i know the right answer, but can't explain it in english, so asking some help with it, what the problems?)
Dima
don’t worry
Dima
who’s that guy even 😂
Oleksandr
?
Lelouch
Cant solve😢
Oleksandr
from ur picture i even don't understand is this a multithreading program or not
Anonymous
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
Chk rules @Neko_cpp @apavlyuc
Oleksandr
Chk rules @Neko_cpp @apavlyuc
help somebody or follow the rules? hm... fuck rules, love people ❤️
Anonymous
Now don't speak shitty languages..else banned according to rule
Oleksandr
shitty languages?) for real?) i think such things is a ban
Anonymous
Wait, shitty?
This word is written in rule
Anonymous
You can read
Oleksandr
okay than
Oleksandr
russian is not shitty
Oleksandr
so, it's allright
Lelouch
Help
void
This word is written in rule
Yes, but it isn't about other languages
void
#ot in fact right now
Anonymous
#ot in fact right now
Okay..I appolgize.. Every language is good..but best is C++
Anonymous
Yeah.. What you want...do you want a program for this problem..?