07-18-2016, 04:05 PM
|
#4
|
longing
Join Date: Dec 2007
Location: Ontario, Canada
Posts: 2,680
|
Re: programming question
Also a tip, you can't be taking it so literally. If you decide to take programming further, you'll get to learn about the cooler things like comparators - if you really think about it, what differentiates different data types? Did you know a string can also be represented as an array of characters?
Start thinking things like, what's really the different between
String test = "Hello" and char[] test = ['H', 'e', 'l', 'l', 'o']? Is there any difference? Could perhaps the C++ function to print a string just be a loop that goes through the char array and prints every element? Maybe it is
|
|
|