+ 3
define:string str VS string str()
When I define a string object, what is the difference between these two forms: *string str* and *string str()*? Intuitively, both of these forms should refer to the default constructor, but why the contents seem to be different? Below is my code https://code.sololearn.com/cRa8cyXXEh59/?ref=app
2 odpowiedzi
+ 10
I'm glad this is asked. :>
https://stackoverflow.com/questions/925513/c-empty-string-constructor
+ 1
@Hatsy Rei Thank you for the help! It's interesting, being a function prototype*^_^*