After executing the code given below, how can you preserve computer memory?
1. for(int i=0; i<1000;i++)
2. {
3. s=s.Concat(s,i.ToString());
4. }
Revision
Use of strings
LO: Use of procedures and functions for processing the strings
Evaluation Criteria:
Knowledge
• Know how to find Length of string
Understanding
• How to output the string array elements
Application
• Write code for processing the strings using functions
• Write code for processing the strings using procedures
Useful expressions for dialogs and letters:
Task
practice with string array using loop operator for
Evaluation Criteria | Descriptors |
How to output the 2D string array elements | Creates 2D array that contains 3 fruits’ names and their prices in main program |
https://www.youtube.com/watch?v=hDADKBwUi0Q
Watch the video about 2D string array manipulation
via this link in YouTube :
Summary
Questions:
How the loop operator For functions for 2D string arrays?
What is the difference of procedure and function?
Материалы на данной страницы взяты из открытых источников либо размещены пользователем в соответствии с договором-офертой сайта. Вы можете сообщить о нарушении.