Hi, i need efficient code examples of the following scenarios...
1. How to check the length of a string entered by the user (using the CIN method of the IOSTREAM.H file) and how to truncate a string if it is too long for the target char variable [8].
2. Read and write to a file (sequential access preferably, if that is applicable to C++)
3. Drawing shapes on the screen through code.
Thanks.
