Still learning and I just want to be sure I'm clear on a few very basic syntax issues. Any help is much appreciated.
5.1 - Basics
int = a single number?
char = a single letter OR number?
string = a phrase of letters (up to?)
char array; // array delcared
array; // fifth element in an array
*array; // pointer to 5th content of array.
vector<string> guitars(); //created a vector container for guitars
vector<string> guitars(10, "cats");//created 10 vector container each container set to 'cats'.
5.2 - , vs ; and '' vs ""
*when do I decide to use commas or colons? I realize that's a pretty obtuse question but is there a general rule or way to think of it? Or should I just memorize every syntax to know when to use which?
*Same question for single or double quotes. Are double quotes ONLY ever for strings?
*what is the difference between these?
char num1 = 64;
char num1 = '64';
5.3 - string OBJECT vs string LITERAL
Can you explain the difference between these. I feel like I 'almost' get it.