CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
Zone's C++ Programming Tutorials #1 Cout function
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ZoneAye" data-source="post: 15323" data-attributes="member: 18741"><p>whats up you lil fart sniffs this is my first C++ tut i have deiced not to do C as people usually use C++ for console dev etc and am guessing thats why you are learning. </p><p></p><p>In this tutorial i will go over the cout function its sooooo easy. Its used to output stuff to the console like numbers, text etc so before we begin u will need a ide that can compile C++ code i would recommend Visual studio either 2010 if you want to make stuff in xexs or 2015 if you want to make your code look noice. so lets begin below is a very simple C++ program all it does it out put Hello world to to the console </p><p></p><p>#include <isostream> // from the C++ library </p><p></p><p>using namespace std; // tells compiler that your program is in C++ </p><p></p><p>same with the define </p><p></p><p></p><p>// this is called the main function every other function u write must be linked to this main one or it will not run i will go over functions later. </p><p></p><p>// the {} are used to open and close the function and everything between them are called statements </p><p></p><p>int main() </p><p>{</p><p>// first thing this line does is outputs "Hello World" then sends anything after it to a new line use endl to make a new line.</p><p> cout << "Hello World" << endl;</p><p>// this line just waits for the user to enter a key u can also use getchar(); but i like to use system </p><p> system("PAUSE"); </p><p>} </p><p></p><p>that is my first C++ tut hope you liked it <img src="/styles/default/xenforo/smilies.emoji/people/slight_smile.emoji.svg" class="smilie" loading="lazy" alt=":smile:" title="Smile :smile:" data-shortname=":smile:" /> </p><p></p><p>if you want try make a program that prints out your name and age on separate lines i will put the answer in the comments tomorrow <img src="/styles/default/xenforo/smilies.emoji/people/slight_smile.emoji.svg" class="smilie" loading="lazy" alt=":smile:" title="Smile :smile:" data-shortname=":smile:" /></p></blockquote><p></p>
[QUOTE="ZoneAye, post: 15323, member: 18741"] whats up you lil fart sniffs this is my first C++ tut i have deiced not to do C as people usually use C++ for console dev etc and am guessing thats why you are learning. In this tutorial i will go over the cout function its sooooo easy. Its used to output stuff to the console like numbers, text etc so before we begin u will need a ide that can compile C++ code i would recommend Visual studio either 2010 if you want to make stuff in xexs or 2015 if you want to make your code look noice. so lets begin below is a very simple C++ program all it does it out put Hello world to to the console #include <isostream> // from the C++ library using namespace std; // tells compiler that your program is in C++ same with the define // this is called the main function every other function u write must be linked to this main one or it will not run i will go over functions later. // the {} are used to open and close the function and everything between them are called statements int main() { // first thing this line does is outputs "Hello World" then sends anything after it to a new line use endl to make a new line. cout << "Hello World" << endl; // this line just waits for the user to enter a key u can also use getchar(); but i like to use system system("PAUSE"); } that is my first C++ tut hope you liked it :) if you want try make a program that prints out your name and age on separate lines i will put the answer in the comments tomorrow :) [/QUOTE]
Verification
Post reply
Forums
Tech Boards
Computer Programming
Source Code & Tutorial
Zone's C++ Programming Tutorials #1 Cout function
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top