Login Register


C++ basics part 1 filter_list
Author
Message
RE: C++ basics part 1 #9
Quote:
Code:
#include <iostream>
this is needed so that you can perform the basic functions of a program (print, if statements, input, etc.)

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 ]

Reply





Messages In This Thread
C++ basics part 1 - by Earthly Minds - 06-18-2013, 03:12 AM
RE: C++ basics part 1 - by Nil - 06-18-2013, 05:49 AM
RE: C++ basics part 1 - by w00t - 06-18-2013, 06:40 AM
RE: C++ basics part 1 - by Charon - 06-18-2013, 01:44 PM
RE: C++ basics part 1 - by w00t - 06-18-2013, 05:51 PM
RE: C++ basics part 1 - by Dong - 09-14-2013, 12:30 AM
RE: C++ basics part 1 - by Cyanide and Cynicism - 09-14-2013, 12:37 AM
RE: C++ basics part 1 - by Ghost - 09-14-2013, 12:34 AM
RE: C++ basics part 1 - by cxS - 09-19-2013, 03:15 AM
RE: C++ basics part 1 - by Cyanide and Cynicism - 09-19-2013, 03:54 AM
RE: C++ basics part 1 - by cxS - 09-19-2013, 04:37 AM
RE: C++ basics part 1 - by w00t - 09-19-2013, 05:47 AM
RE: C++ basics part 1 - by cxS - 09-20-2013, 12:19 AM
RE: C++ basics part 1 - by Phoenix2014 - 10-07-2013, 06:13 PM
RE: C++ basics part 1 - by TechSaavy - 10-07-2013, 08:31 PM



Users browsing this thread: 1 Guest(s)