+ 1
How to go to the website (for example, google.com) in C++?
RUS: Как перейти на сайт (к примеру, на google.com) на С++?
3 Réponses
+ 3
I don't think there is a built-in way to do this. You need third party code.
+ 3
C(and then by extension) C++ are a relatively thin layer over assembly / machine instructions.
That's why you have to compile it to a binary for each platform you work on.
With Assembly, you need to use a different assembler (with different rules) for every processor that comes out, so languages like C and C++ allow you to learn one language, to compile to that unique architecture without needing to worry about it.
To achieve this the C++ standard is written to target a general "machine" that can do computer-y things like talk to memory and other attached hardware.
It doesn't even know the internet exists, but can interface with network hardware through drivers and APIs.
TL;DR you need a network library to connect. you would need to integrate some web engine to display a web page if that's what you're asking. Hope I helped you understand lol.
+ 1
Check out the curl library.