A picture is
worth a
thousand words. Making a HTTP request on C++ easy as this,
Code:
#include <iostream>
#include <cpr.h>
int main() {
auto response = cpr::Get(cpr::Url{"https://www.google.com"});
std::cout << response.text << std::endl;
}
None of people on the thread are honest with you.
Let me answer your question. Yes, C++ is a better language to create Bots in.
I'm going to go ahead and say C++ is easier than Python ever be.
Python code become unreadable after you extend 100 lines.
C++ these days doesn't require you to manage memory manually as we have a concept called RAII. I saw a poster here that shared a code for a CURL request which is not C++ but C.
C++ and C separate languages but you can use C code in C++ due to backward compatibility
The rant by Linus and all other monsters drove people away from **real** C++.
There are ton of libraries in C++ that make your life easier (and faster).
The above code used CPR library [https://github.com/whoshuu/cpr]
You don't pay any performance plenty for using these libraries because Modern C++ has zero-cost abstractions built in.
By going with C++, you avoid the need for re-writes when you need performance.
Bjarne Stroustrup said: "Within C++,
there is a much smaller and clearer
language struggling to
get out."