![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||||||||||||||
|
Image sizes: 256x256, 48x48, 32x32, 24x24, 16x16 File formats: BMP, GIF, PNG, ICO ![]() ![]() ![]() ![]() Tags: my family icon, office icons, emo icons for little emo, ultimatelaunch icon, icon to webVar S: String 30;For what it is necessary? The matter is that at compilation for each variable the room is taken away. If we select for all variables of type String on 256 byte it will lead to that at usage is enough the big Their quantities, memory can and not suffice? But if in a variable we We are gathered to store, for example, a surname of the user for this purpose it is quite enough thirty characters (thirty byte). Thus, memory is saved and speed of programs increases. Variables of string type can assign string values (in the program they consist in apostrophes), values of expressions which lead to string values. Values can be keyed in also. Thus apostrophes are not used. As you know, it is impossible to enter the string value into a numerical variable. To make on the contrary - it is possible, however the number which is in a string variable represents simply a character string (digits), therefore in arithmetic expressions cannot participate. Also, to you that at usage of a string variable, it is possible to access to its each character separately is new. It is necessary to know only number of the necessary character from the string beginning. It is enough to put of it after a name of a variable of type String in square brackets. Example: S 5 - the fifth character of string S. With the separate character of string it is possible to make all operations which can be made from any character variable (input, assignment, output to the screen, involvement in expressions etc.). Pay attention to that indexing of characters in string starts with unit. In square brackets instead of number there can be an expression which result is the integer. The main thing that the character with such number in string existed. But how to learn, how many characters are at present in a string variable? For this purpose there is a special function which returns length of a string variable characters. It is function Length. Its format: Length (S) ![]()
| Copyright © 2006-2022 Aha-Soft. All rights reserved. |
|