相关代码 |
|
//Using cout with different data types #include int main(int argc, char* argv[]) { int an_int = 123; long a_long = 987654321; float a_float = (float) 123.456; char a_char = 'A'; char *a_string = "A String"; bool a_boolean = true; cout cout cout cout cout cout cout return 0; }
相关资源 |
|