C++ can be used for many things besides creating games. Business programs, calendars, calculators, conversion programs, etc. Basically anything you can do in any other language, you can do in C++.
C++ *can* do websites, but from what I've seen studying it on my own... it's reeeaaallllllllllllllyyyyy tedious.
Of course, you could swap the "<< endl;" to \n and stick it before the " to the left of the << in the code. But it boils down to about three times the typing needed to get the exact same thing in HTML - because for C++ to make a website, it'll have to generate the HTML code for browsers to read.
C++ is a programming language, and is used to make many different types of programs.
One could have a website that ran on C++, yes. C++ could be used to generate something ON a website too, yes. Webpages themselves are written in another type of (very different) computer language called HTML which is just a simple code which is sent to your internet browser every time you access a website. If you don't know HTML and want to develop for websites then I'd suggest learning a bit about that first. http://www.w3schools.com/html/default.asp
Aside from making 2D/3D software, C++ is used for making any type of program on the computer, so if you want to know what it can do just take a look at your programs because C++ can be used to make any of them.
C++ is not the only programming language, but it is widely recognised as one of the best, and generally believed to be faster and more efficient than most of its main contenders, whilst still being practical for large and very complex projects.
At least that's what I believe, I hope this helps.
First of all, you should realize that C/C++ is the heavy solution. Before resorting to it, you should really ask yourself if your problem can't be done in some other easer way and it is C/C++'s performance that is needed. Like bardicer said, it can be used for sites, but it would be most likely an exhausting job to do. Now this being mentioned, I can give you an example of such site: http://www.okcupid.com/help/topics
see at the bottom in the right written "Programmed in C++". In an interview the authors were saying that back then when they started the project, there weren't many mature or (from their perspective) acceptable solutions, so they done it by themselves in C++. A matrimonial site it is not likely to require the C/C++ power, but in other cases it is not done the other way. In his blog, a former Google employee is criticizing Google for imposing the heavy solutions, or like the guy sais, "to do things The Google Way": http://slacy.com/blog/2011/03/what-larry-page-really-needs-to-do-to-return-google-to-its-startup-roots
That means no Python, no Perl CGI scripts, no Java, no other "cheap" way. Well, you may thank the goodness not being coerced in choosing your solutions, so you may realize your freedom and enjoy it in peace... :)
Ah cool, I knew you could program a site in C++ acceptably.
But really, PHP and ASP are just waiting around for someone new to have a go at, and they're so easy...
PHP and ASP are nowhere near as quick, but I've always imagined that the real time is lost on a server with the connection, not the software that handles it, provided it's a half-decent server.
When do I think C++ is appropriate?
* You're making a large program that requires a lot of resources to run.
* You're making a small program designed to keep to itself and do its job whilst not interfering with the user.
When do I think C++ is not appropriate?
* You're making a smaller program that runs in the foreground and doesn't require a lot of resources anyway.
* You're making developer software, e.g. a Game Level Editor, where speed at runtime gets the short straw over speed of writing the program.
it can be used for a virus or a program creator.
for exampol
1 2 3 4 5 6
#include <windows.h> // windows heder
int main()
{ // begins the blok
Beep(100, 100);// makes a noise for the user to here
MessageBox (NULL, "text", "titel", 0); // displays a message for the user to read
}// ends the blok
I didn't say anything about a virus... I hope that virus creators try and use cheese to program viruses, because quite frankly we could do without viruses (and virus creators).