Loading...
Uploaded by zaychenok on Dec 28, 2007
Basic Data Types
Howto & Style
Standard YouTube License
@1313Travis1313 (int)cChar is called typecasting. You can also do this to have the same affect "int(cChar)".
Typecasting forces the compiler to cast the variable to a different type, for example, if you wanted to make a float an integer.
float number = 10.0102;
cout << (int)number << endl;
0121ryanh117 1 year ago
wats the difference between a float and a double?
MasterHacker01 2 years ago
"a string doesn't bold because it is not a data type"
Actualy string is a class in the std namespace as the program was written :))
katoun9 3 years ago
Also I think you should point out that a string doesn't bold because it is not a data type. It is actually an array of "char".
phantomike24 3 years ago
when u do << (int)cChar << what does that mean?
1313Travis1313 3 years ago
you can see Streloks tutorials at reconnetworks(dot.)net/forum
samman946 3 years ago 2
^_^
xXlEdwardoXx 4 years ago
fixed it
l33tp1mp 4 years ago
im getting a problem on line 9 with that cChar stuff....
Load more suggestions
@1313Travis1313 (int)cChar is called typecasting. You can also do this to have the same affect "int(cChar)".
Typecasting forces the compiler to cast the variable to a different type, for example, if you wanted to make a float an integer.
float number = 10.0102;
cout << (int)number << endl;
0121ryanh117 1 year ago
wats the difference between a float and a double?
MasterHacker01 2 years ago
"a string doesn't bold because it is not a data type"
Actualy string is a class in the std namespace as the program was written :))
katoun9 3 years ago
Also I think you should point out that a string doesn't bold because it is not a data type. It is actually an array of "char".
phantomike24 3 years ago
when u do << (int)cChar << what does that mean?
1313Travis1313 3 years ago
you can see Streloks tutorials at reconnetworks(dot.)net/forum
samman946 3 years ago 2
^_^
xXlEdwardoXx 4 years ago
fixed it
l33tp1mp 4 years ago
im getting a problem on line 9 with that cChar stuff....
l33tp1mp 4 years ago