COMPUTER_ITEM_1
cin, endl, main, std
using namespace std
.
const datatype identifier = value
const datatype identifier {value}
// this is preferred
const float TAX_RATE {0.06};
const int FIVE{5};
datatype identifier;
string item1;
datatype identifier = value;
string item1 = "rope";
datatype identifier {value};
// this is preferred
string item1 {"rope"};
datatype identifier, identifier ...;
string item1, item2, item3;
datatype identifier = value, identifier = value ...;
string item1 = "rope", item2 = "rock", item3 = "string";
datatype identifier {value}, identifier {value} ...;
string item1 {"rope"}, item2 {"rock"}, item3 {"string"};
string item1 {"rope"}, item2 {"rock"}, item3 {"string"};