Can someone please show me an example of the correct syntax of using only c++ code for downloading a file from the web without having to use the curl language? Thanks for your help.
Sorry, I'm not using windows programing. I am far too new to c++ to try programing in windows just yet. While my OS is windows7(x64), and my IDE is a Microsoft C++ Pro. compiler, at the moment I'm self-teaching the c++ language. I think I'm programing in DOS. I Googled for a syntax example, but could not get an example in c++ that I could understand. I am a newbie to c++ and know even less about libCurl. An example of the correct syntax in c++ code would be great. Also, If I MUST use libCurl to download a file from the web, an example of that too would be great. Is there an online tutor for libCurl? Again, thanks for your help.
An example of the correct syntax in c++ code would be great.
Every example shown to you so far has been in correct syntax. Correct syntax just means that the compiler can understand it. That aside, I think what you're asking is "please show me how to do it without using any libraries".
You're missing the point. C++ does not have any inherent knowledge of what an internet is. It does not know what a network is. It does not know what a monitor is, or a mouse, or sound, or anything like that. If you want to access the internet, you must ask the operating system to do it for you.
You can do this directly ("windows programming", as you call it) which just means using the libraries that come with windows, or you can use another library (such as libcurl) to ask the operating system for you.
Also, If I MUST use libCurl to download a file from the web, an example of that too would be great.