- 1
I just want to ask that why the string type is used in this C++ syntax instead of int.
string Three-dimensional{3,5,6}
3 Antworten
+ 2
That's not the only issue, the dash '-' in variable name also will prevent the program from running. And numbers in the list also are not proper for string class.
Have you tried to test-run the code? how did it go?
Perhaps you can consult the code author to confirm this ...
+ 1
I see. Well, being written that way, I think it's just a string variable (not string array). And the string is initialized by a sequence of characters, each representing ASCII value 3, 5 and 6.
Note that any character with ASCII value less than 33 (0 ~ 32) are either control characters or special characters that are not common.
Further about ASCII standards, lookup the net for articles about ASCII and the ASCII table.
0
Actually,I have just written that variable for telling that it's denoting an array but in actual,the variable's name is "threeD" which is eligible for running the code.