BinaryByter
screw smart pointers
I_Interface
Anonymous
I am from india
void
1st num is not Russia, lier)
+7 and 8 are equals in Russia
BinaryByter
I am from india
We know... CAn you singh a song from india?
void
first array 256 pointer for array 256 int
Assuming it's the same amount of memory
Anonymous
9772317773 it my number
he has shared his orignal number 🤦‍♂
Anonymous
noo please better you search yourself 😂
I_Interface
#ot
BinaryByter
first array 256 pointer for array 256 int
Yea, you are correct, However, in adressing, you'll need (Width * y + x)! I thought that you were asking a question at first 😅
BinaryByter
yeah, CPU more fast, RAM
In general: please don't use those kinds of array
BinaryByter
Unless you like having megabytes over megabytes of empty data in your executables
BinaryByter
Then, enjoy using char [1000000];
Dima
Ok, guys 893209390** is my real number from Russia))0)
I could guess that you are slav by these “)” smiles
Anonymous
Yes
*face palm*
Dima
Pavel
Ok, guys 893209390** is my real number from Russia))0)
Only need to add 100 numbers to the address book and see which ones will appear in telegram as real accounts
BinaryByter
ummm
Dima
/warn ot
BinaryByter
ummm
I wish I could unsee that
BinaryByter
i mean come on
Dima
“Context switch” 10000 operations... what the fuck
BinaryByter
Do they even know what branching is?
Anonymous
Unless you like having megabytes over megabytes of empty data in your executables
you can overload operator[] for math (y*width+x) and overload std::vector for this
Dima
Yes
Anonymous
Yes
Can i talk u
BinaryByter
std::vector is kinda cringe though
Anonymous
std::vector is kinda cringe though
is it descriptor for pointer array
BinaryByter
Oh?
BinaryByter
damn you are teaching me so much!
BinaryByter
Can you become my new private teacher?
BinaryByter
for free?
void
🌝
BinaryByter
I have programmed a compiler in the last few days, can you please review it for me?
BinaryByter
but its in Pascal unfortunately
BinaryByter
:(
Anonymous
for free?
just read new book A Tour of C++ (2nd edition) (a brief - 240 page - tour of the C++ Programming language and its standard library for experienced programmers)
Anonymous
oh? will I become a master of C++ then?
you can thingking C++modern
BinaryByter
you can thingking C++modern
Do I want to program modern C++?
BinaryByter
btw: how many template arguments does std::vector take?
BinaryByter
no googling on that one 😉
Anonymous
for (auto &a : stats) { a.analysis(array); }
Anonymous
std::vector<std::thread> threads; for (auto &a : stats) { auto t = std::thread(&bitstat::analysis, &a, array); threads.emplace_back((std::move(t))); } for (auto &t : threads) { if (t.joinable()) t.join(); }
Pavel
btw: how many template arguments does std::vector take?
Because you're asking.. 2? For the type and for the allocator type?
Anonymous
std::for_each(std::execution::par, stats.begin(), stats.end(), [&array](auto &&item) { item.analysis(array); });
BinaryByter
STOP SHOWING ME YOUR LITTLE SHITS
BinaryByter
I DONT WANT TO BE OVERLOADED BY SHITTY MODERN "EFFICIENT" C++ BULLSHITTING
BinaryByter
rgghh
Dima
What..
BinaryByter
😂😂😂
Anonymous
😂😂😂😂
Anonymous
Hy
Mihail
@BinaryByter can you join ot? wanna ask you something
BinaryByter
#ot
Taras
/notes
Zorrito
Is it possible to use a string (or some other variable type) to call a function? Like, if the string is "printf", it calls printf(), but if it's "erase", it calls erase(). I know you can do it for a finite number of functions using cases, but what if I have a large number of functions and don't want to write hundreds of lines just to determine which function to call?
Unknown
Hey guys my problem is something different which I really want to discuss with you guys,it may not be very big problem for you but I really need help: Problem:I learn new things everyday related to C and C++ and in general we all know that our brain can't remember each and every new thing we learn everyday ,So as I learn new things I don't get much time to make notes of each and every new thing I learn ,and by the period of time I start forgetting new things I learnt in my life which could be very important to solve a real life problem and I have to go through each and everything again. I want some help regarding this problem from those who are able to cope up with these things thanks in advance.
Vikas
Could any one ping me URL of a site, where we get the tutorial of using a managing a db (any db like Oracle SQL or sqlite) from a c++ application
Anonymous
can anyone review this code? and can it be optimized more? https://pastebin.com/t4tBMP1A