RE: C++ basics part 1 09-19-2013, 03:15 AM
#9
Quote:this is needed so that you can perform the basic functions of a program (print, if statements, input, etc.)Code:#include <iostream>
Ahh, no... :S Basic functions of a program, printf, if statements, input, etc...? It has nothing to do with if statements.
Quote:string - a line of text
int - a whole number
double - a number with decimals
float - an extremly long number with decimals
char - a single charachter, such as 'a' or '!'
Is this implying that float is used for larger precision than double??? And string, a line of text? :S
(09-14-2013, 12:37 AM)Cyanide and Cynicism Wrote: Beat me to it.
Also, what the fuck are these comments?
Code:/* This * Is * A * Multi * Line Comment */
Use something like:
Code:/* This * is * a * good * long * comment */
Or:
Code:// This // is // a // good // non-conventional // long // comment
What does it matter? You're doing the same thing as what he wrote, and the first qualifies as a comment just as much as the double slash variation, it's preference.
-- cxS
[ Haskell/.NET/C/C++ - Software Engineer ]
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)