+ 1

How to go to the website (for example, google.com) in C++?

RUS: Как перейти на сайт (к примеру, на google.com) на С++?

11th Mar 2018, 8:21 PM
Expert
Expert - avatar
3 Réponses
+ 3
I don't think there is a built-in way to do this. You need third party code.
11th Mar 2018, 8:34 PM
Timon Paßlick
+ 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.
11th Mar 2018, 11:04 PM
Sean Patrick Franklin
Sean Patrick Franklin - avatar
+ 1
Check out the curl library.
13th Mar 2018, 1:56 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar