Hey all, I'm just a "Newbie" to the concept of actual programming; I've done a few "Mods" for video games with scripting, but it's nowhere near as close to the actual thing, so I just want to ask, how exactly do you structure statements/functions in C++? What are the some basic guidelines to programming, and what's a good source for C++ functions with descriptions of them? I love the idea of programming, in fact, I'm probably going to head off that way when it comes time for college & later a career, but I want to learn how now, so I can experiment on my own and have some fun along the way, maybe produce some works that could go on a portfolio or something similar.
As for the other questions: they're a bit general. Any by a bit, I mean, a bit too much. If I did answer them I don't think it would help much. Here is the basic first program (hello world) that I can run down the basics for you:
1 2 3 4 5 6 7 8 9 10
#include <iostream> //a standard input/output file is included to use some of the capablities of the language
int main() //the main function that is the body of the program
{
std::cout << "Hello World!\n"; //writes Hello World! with an extra line afterwards
std::cout << "\nPress ENTER to exit\n"; //prompts the user to press enter
std::cin.get(); //captures the enter
return 0; //return an integer (as requested by main) to signify completion
}
There are many other ways to write this program, but this is how I do it. Look through some tutorials and see if it interests you, then try writing some code on your own. That's the best way to learn.