title is question... and if you want to be really helpfull can you tell me what some other ones are that are usefull
title is question... and if you want to be really helpfull can you tell me what some other ones are that are usefull
In order of learned:
HTML - Mastered
CSS - Enough to use
SSI - Mastered
PHP - Advanced
C/C++ - Current Project
You have to bring the string code into your program, so up at the top put:
And thenwhen you need a string just use it as a type, a la:Code:#include <string> using std::string;
Code:string thisIsAString = "Isn't it lovely?";
thanx, that helps but i also am wondering, like i stat an integer with
int variable name = name;
but how would i say its not just a number but that its a full word (no spaces) and then whats the other thing for stating that it does have spaces?..
In order of learned:
HTML - Mastered
CSS - Enough to use
SSI - Mastered
PHP - Advanced
C/C++ - Current Project
I'm new to programming but isn't a space considered a character.
An int is a numeric data type. It holds numbers.
If you want a word, you will need to use a variable of type string, which is the data type for strings.
Code:int foo = 756 // Good, int is a number foo = "Hello there" // BAD - variables of type int are for numbers string bar = "This is my string" // Good, string held in string variable bar = "4532" // Works, but stores the string representation, NOT then numeric value.
thanx a bunch dude, thats exactly what i need!
In order of learned:
HTML - Mastered
CSS - Enough to use
SSI - Mastered
PHP - Advanced
C/C++ - Current Project