Hey guys! Anyway to make a character array (string) have an unlimited amount of characters? Thanks!
Printable View
Hey guys! Anyway to make a character array (string) have an unlimited amount of characters? Thanks!
Nope. Eventually you'll run out of memory.
>Anyway to make a character array (string) have an unlimited amount of characters?
Use the std::string class and it will grow to meet your needs, provided they're reasonable needs. ;)
For other data types and for custom functionality you can look into linked lists and other data structures. They don't set an express limit, but like Thantos said you're still limited by physical resources.