Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
Blackbound

Keywords, and Microsoft Functions

Recommended Posts

Here is the list of Keywords and Functions and what they do in detail.

 

int functionname()

This creates a function that returns an integer- First appearance int can be used for other things too.

Fist appearance- Tutorial

 

main()

This is supposed to signal the compiler and tell you that this is the primary function for your program. It can have any return type.

first appearance- Tutorial

 

return 0;

This tells the function to end and return whatever it is told to return (in this case, 0). You can make it return a variable as well

First appearance- Tutorial

 

#include <headerfile>/ "headerfile.h"/ <cheaderfile>

this tells the compiler to include this specific header file. If its in the directory it will include it. If it looks like an XML tag and doesnt start with c, it will look for the file and add its functions to the current program. If its in quotes, it will include the header file thats listed in the current directory. If it is a tag but it starts with a "c" then it will look in the c header library.

first appearance- Tutorial

 

using namespace std;

Namespaces are used when you are making various large programs like a massive set of databases and/or variables, this just says that we are using the namespace "std" so we dont have to write std::cout... more on that later.

First appearance- Tutorial

 

system("pause");

This tells the program to say "wait please, the user needs to read"

First appearance- Tutorial

 

cout << "words" << variables << endl

This tells the program to display the words and variables. endl tells the program to end with a new line. keep in mind that C++ IS CASE SENSITIVE. almost all programs that use C++ that I know of use lowercase default function names.

First appearance- Tutorial

Share this post


Link to post
Share on other sites

Nice little tutorial you got here. The code boxes are a bit big so maybe put the codes in a quote or try making the codebox smaller.

 

If you said "codebox", use "code" instead. This is why:

 

Codebox

 

Code

 

Thanks and I can't wait for more tutorials.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...