DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
|
| 11 Apr 2012 11:46 PM |
Anyone? If so, please read this thread and reply any miss-spelled words.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=66118199 |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
| |
|
| |
|
Dentists
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 6624 |
|
|
| 11 Apr 2012 11:48 PM |
| I skimmed it and I found 'alittle'. |
|
|
| Report Abuse |
|
|
DrHaximus
|
  |
| Joined: 22 Nov 2011 |
| Total Posts: 8410 |
|
| |
|
|
| 11 Apr 2012 11:51 PM |
"hopefuly give you alittle"
Should be
"hopefully give you a little"
Also, capitalize the first letter of 'Google'
Love & Tolerate |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 11:53 PM |
Nothing wrong at the first glance.
My ʇǝd Enderdragon Fido •д• |
|
|
| Report Abuse |
|
|
| |
|
Fortone
|
  |
| Joined: 19 Mar 2012 |
| Total Posts: 6332 |
|
| |
|
Hakan1218
|
  |
| Joined: 22 Sep 2010 |
| Total Posts: 8056 |
|
|
| 12 Apr 2012 12:08 AM |
I FIXED IT ALL! Just copy and paste it.
~INTRODUCTION~
Hi! I would like to use your free time you're using at this moment to teach you a seemingly insignificant part of C++. Before we move onto games and graphics, we're going to have to...
~Mastering the Console~ Before you can move onto graphics, we need to understand some basics. Although, we can create some nifty little games that will 'WOW!' your mom, but nothing that will get you a contract at ROBLOX.
Using the Console for any application is hard work, especially trying to create something that would look nice AND offer what it's supposed to.
However, using what you learn here will teach you the terminology, and hopefuly give you a little background on how the computer your on right now works.
~I'm not on Windows!~ Don't worry! C++ is multi-platform, which means it will operate just fine on whatever operating system you're on.
NOTE: Not all code will work on all platforms. I'm going to write tutorials for Windows, Linux, and Mac. I myself dual boot Ubuntu, so it's important to not be OSest, but I know the majority of the readers of my tutorials will be running Windows.
~I want to make games!~ I know 'Hello world!' applications can be annoying, but once we have the basic input and output sussed, we'll move onto little games.
~A HUMBLE BEGGINNING~ Great! You haven't been put off of learning C++, so let's get started!
First of all, we need a compiler. Don't worry, it's not as hard as it sounds. An easy one to download and use is Dev-C++.*
All we need to do is Google search for Dev-C++ and install it.
Now create a new Console Project and save it in a new folder (or on your desktop, whatever you like.)
Now that we have our compiler, it's time to learn.
Take a look at this code (I'll explain it after.);
#include < iostream > int main() { std::cout << "Hello World!\n"; std::cin.get(); }
IMPORTANT NOTE: Remove the spaces between < and > ^^^
#include < iostream > *REMOVE SPACES INSIDE < AND >
Woah! What's this?! iostream is your run of the mill stream. There are other streams we're going to use throughout these tutorials, but for the sake of simplicity, it's required.
int main()
This declares our first (and only) function. Its name is main, and is required.
{
This simply says "The code of main is going after me!"
std::cout << "Hello World!\n";
There are multiple things we have to speak about here.
std::
This is telling the compiler we're going to have to use a function inside the standard namespace. The use of std:: can be completely avoided by putting the line
'using namespace std'
Before your function declaration. IE; int main()
cout << "Hello World!";
This prints 'Hello World!' to the screen. Cout (pronounced "C-OUT") is the standard method of printing text to the console.
\n
This simply creates a new line after 'Hello World!', not at all required.
;
For the sake of simplicity, this nifty thing called the semi-colon is right after most lines of C++.
std::cin.get();
This is when things heat up.
cin
Cin (pronounced "C-in") is the run of the mill method of getting input for the console.
.get();
Anything that is followed by '()' means that we're using a function. 'get' is simply asking for the users input, and when it's entered, the program is terminated.
}
This says "The code for main is completed."
Compile and run! If you have issues, PM me. Hope to see you at my next tutorial!
-DrHaximus |
|
|
| Report Abuse |
|
|