![]() |
Software Information |
|
|
C++ Tutorial 2, Input and Variables
This is the tutorial where we really get into programming. Input and variables are the essence of programming. In this tutorial you will learn how to get data from the user and use variables. You will learn the types of variables there are and how to do basic math with them. At first, this may seem boring and pointless, but you have to learn it, and it should go quick. Basic Input Defining Variables The diffrent types of variables: bool - true or false When deciding what type of variable to use, think about what kind of data it is going to be storing and remember that some data types use more memory than others, however most of your applications will use less memory than you have. To declare a variable, write the type of variable, then the name. Examples: Syntaxes Math The basic math functions are: + = addition There are a bunch more, but that is all we need for now. Go out and make a program! Now that you know some of that basic stuff, try making a program, and dont be afraid to ask for help on http://www.syschat.com! Chris Silop - http://www.syschat.com, Computer Forum
MORE RESOURCES: Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration in /homepages/30/d188018125/htdocs/MarconiProject.com/software/inc/rss.inc on line 81 Warning: fopen(http://news.google.com/news?sourceid=navclient&ie=UTF-8&rls=GGLG,GGLG:2005-22,GGLG:en&q=Software&output=rss) [function.fopen]: failed to open stream: no suitable wrapper could be found in /homepages/30/d188018125/htdocs/MarconiProject.com/software/inc/rss.inc on line 81 could not open XML input |