16.07.2011, 21:27
Its generally never a good idea to assign strings using the assignment operator. In most languages it simply isnt allowed as it can lead to buffer overflows. The ONLY time you should use the assignment opertator is if you're absolutely sure the strings are the same size.
The reason this didnt work is because inputtext's size isnt known during compile time, therefor its an invalid assignment (someone could type something much longer than 24 characters).
The reason this didnt work is because inputtext's size isnt known during compile time, therefor its an invalid assignment (someone could type something much longer than 24 characters).