Basic types of representations. Basic objects and methods of managing WINDOWS
Modern computers impossible to imagine without the presence in them operating system- means of interaction between the user and the computer (programs and hardware components). Today there are dozens of them. Consider the question of what are the main objects of the operating system on the example of Windows OS.
Form of organization of interaction between the user and the operating system
At the present stage of development computer industry Most OS developers use object-oriented programming methods and graphical interfaces to simplify the user's work as much as possible or provide quick access to the necessary information or settings.
If earlier OS with batch data input was used, when it was necessary to ask the system to execute a certain command by manually entering it, today, thanks to the presence GUI, this task is greatly simplified. The user does not enter commands, but presses buttons to organize an event, activate a process, confirm the execution of programs, change settings, etc. But what operating system objects exist, what role do they play, what are their properties, what actions to take with them can be produced? Consider the basic concepts.
The main objects of the operating system
At one time, Microsoft Corporation, when developing the first Windows versions refused to use the organization of work used in DOS systems. The very name of the Windows operating system testified that it consisted of windows in graphical representation, which allowed the use of the so-called multitasking mode with quick switching between programs, options and settings. However, even the essence is not in the windows.
Today you can find many different classifications, but in the broadest sense, operating system objects can be represented as the following list:
- graphical interface ("Desktop", windows, panels, menus, shortcuts and icons, switches, buttons, interactive shells);
- file organization of files and directories);
- applications and documents (executable elements, programs or their combination, files created in programs).
Interface
One of the main places is given to the interface. The first thing the user sees after starting the OS is the “Desktop” and “Taskbar”, which contain buttons, shortcuts and other auxiliary elements. The properties of objects of this type are such that with their help you can access almost all the functions and capabilities of the OS.
Particular attention in this regard is given to the "Start" button and the menu of the same name that is called when you click on it. Most of the links to programs and basic settings are located here. Please note that the applications are physically located in a different place, and the menu contains only shortcuts, presented in the form of application names or settings with icons.
Pictograms or icons as objects of the operating system are small graphic images. The difference between shortcuts and icons is that, in addition to the program name or file name, shortcuts also describe some properties of applications, settings or documents, and also indicate the location of the file itself to be opened. To describe the files, there is also an indication of the program with which it can be opened.
Menus are means of selecting user actions. Conventionally, they can be divided into main and contextual (those that are called by the right click). However, the organization of the main menus is part of the objects called windows. And the menu can also be attributed to the controls, since it is in them that the user is prompted to select a specific action.
Windows: types and available operations with them
Windows are basic objects (Windows or any other computer OS). They have the main space where information is displayed, or, as it is also called, the work area. There are also special panels with main menus containing sets of commands or actions, buttons quick access to certain functions, scroll bars, etc.
Actions with operating system objects of this type consist in the fact that their size can be reduced or increased, collapsed and expanded, to quickly switch between programs, change the scaling of the workspace, etc. In addition, the windows themselves are basic and dialog, which provides closer interaction between the program and the user.
Controls
And here it is worth dwelling separately on the controls. The main element, if you do not take into account tablet PCs or smartphones, as well as touch screens, is a cursor with which you can move around the entire interface, call some actions, resize, etc.
The cursor is "attached" to the mouse in stationary PCs or to the touchpad in laptops. In general terms, a cursor is not just a pointing element. For example, when stretching windows, it changes its icon. Thus, even by changing the state of the cursor, you can always determine what kind of action is performed or is supposed to be performed in this moment. Again, if an hourglass appears on the screen or a rotating one indicates that some process is currently being executed and there will be no access to it until it is completed.
Another control element - screen keyboard, which has received the main distribution on tablets and smartphones, when the connection of the "iron" keyboard is not provided.
Files and folders
Finally, the largest class are directories (directories, folders) and files, which together form a single structure called the file system.
Files and folders in terms of computer system do not differ from each other, since even directories themselves are files without an extension and also occupy a certain disk space (and for empty folder zero size can be specified in file manager, But actually it is not). Just for the convenience of grouping files that are similar in some way, the method of combining them into one directory is used.
Physically, despite the fact that some files seem to be present in some directory, they can be located in completely different places. hard drive. The properties of operating system objects of this type are determined primarily by size (occupied space on the hard disk), location in the file structure, type, etc.
And for sure everyone knows exactly what actions can be performed with both types. Working with objects presented in the form individual files or entire directories, comes down to more than simple operations like copying, deleting, renaming, or moving. Files, for example, can be viewed, edited, opened in a specific program (often with the ability to choose the application yourself), and many other actions.
Instead of total
But in general it is only short review the main objects of any OS. Note that here we did not consider the organization of the same system registry only for the simple reason that today you can also find OSes in which it is absent as such (Linux), and the key structure is very similar to the organization of files and folders. Actually, the keys themselves are files. By the way, applications and programs are also files or a collection of files to be executed by means of the operating system.
Representations in the life of each person play their role - in some people, visual representations predominate, in others - auditory, in others - motor representations. According to the role played by representations, people differ from each other. Depending on the prevailing type of representations, they are divided into 4 groups. In addition to the three groups mentioned above, there is a group of persons with mixed representations.
If past perceptual experience underlies representations, then the main classification of representations is based on the classification of types of sensation and perception. Based on this, the following types of representations are distinguished:
- visual representations;
- auditory representations;
- Motor performances;
- Tactile representations;
- Olfactory representations;
- Taste presentations;
- Temperature representations;
- organic representations.
This is not a single approach to the classification of representations, for example, B.M. Teplov believes that the classification of representations can be represented according to the following criteria:
- By content. In this regard, one can distinguish mathematical, geographical, technical, musical, etc.
- The degree of generalization. Here we can talk about private and general representations;
- According to the degree of manifestation of volitional efforts - involuntary and arbitrary representations. Classification of representations according to B.M. Teplov is shown in the diagram.
visual representations
In some cases, visual representations can be very specific and convey all the visible qualities of an object - its color, shape, volume. In all other cases of visual representations, some one quality will prevail, while others may be absent. As a rule, visual representations do not have three-dimensionality and are reproduced in the form of a two-dimensional picture, which can be either colorful or colorless. The nature of visual representations depends on the content and practical activity during which they arise.
For example, in the process of drawing, artists have bright, detailed and stable visual images. In order to transfer these visual images to paper, representation is necessary, so they can be superimposed on sensations and combined with them. The artist combines an imaginary image with a sheet of paper.
Representation is attributed to cognitive mental processes, therefore, in terms of education, it plays an important role. The assimilation of any material is associated with visual representations, for example, in geography lessons, a student represents the natural area or sea area in question, in physical education lessons, represents the action that needs to be carried out, etc.
Visual images of memory in people who lost their sight at an early age will be few. They reflect only those objects and phenomena that caused them strong emotional experiences.
auditory representations
Auditory representations include speech and musical representations. Speech representations include phonetic and timbre-intonation. Representations of any word without reference to intonation, to sound coloring are phonetic representations. Here we are talking about the representation of the "word in general".
Representations are timbre-intonation, associated with the timbre of the voice, with the peculiarities of the intonation of some specific person. Representations of this kind are very important for a number of professions - actors, teachers, etc.
Such auditory representations as musical ones are a representation of a sequence of sounds, their relationship to each other in height and duration, in rhythm. Of course, the musical performance will be very well developed among composers and musicians who are able to imagine the sound of a whole orchestra of instruments.
motor representations
Motor representations include images of movements of varying degrees of complexity. They are always associated with real sensations, muscle tone. Any motor representation, as experiments have shown, is accompanied by muscle contraction. If, for example, you imagine that you bend your arm at the elbow, then the devices register the contraction that occurs in the biceps. Moreover, even a mentally spoken word leads to a contraction in the muscles of the tongue, lips, and larynx. It turns out, therefore, that the whole human body is a model of itself.
Weak motor sensations serve as the material basis of motor representations.
Motor representations can be divided into groups:
- Ideas about the movement of the whole body;
- Ideas about the movement of individual parts. As a rule, these representations are the result of a fusion of motor sensations with visual images;
- Speech motor representations. These representations are the result of the merging of speech-motor sensations with auditory images of words.
The first two types are called visual-motor in a different way, the third type is called auditory-motor. More complex are the ideas about the movement of the whole body, in comparison with individual parts of the body.
All the main types of representations are to some extent related to each other, so their division into classes and types is very conditional.
Spatio-temporal representations
Spatio-temporal representations were singled out as a separate group. This is due to the fact that they clearly represent the spatial form and placement of objects, changes in shape and placement in time. With this representation, objects can be represented schematically and colorless, so the concept of "visual image" is not applicable to them. You can call them "schematic representations".
Basically, these representations are visual-motor, which are based on visual and motor representations. Spatio-temporal representations are typical for chess players who calculate different options for the development of the game. They are also typical for coaches of football teams who present attack and defense schemes during the game, drivers who evaluate the traffic situation.
When studying physical and technical disciplines, space-time representations are also very important. Theoretical physicists operate precisely with space-time representations. There are flat and three-dimensional spatial representations.
According to the degree of generalization, general representations are distinguished, reflecting the properties of a number of similar objects, and single ones, based on the observation of one object. According to volitional efforts, they can be involuntary and arbitrary. The classification of the main types of representations is shown in the diagram.
Topic 1. 2. The concept of data type
The concept of a variable
In any program that processes data, variables are used as operands in expressions. A variable is often defined as a pair of "name" - "value". The name corresponds to the address of the memory area allocated to the variable, and the value is the contents of this area.
Variable- This is a named area of computer memory allocated for storing specific data, the value of which, in the general case, can change during program execution.
The declaration of variables in the program has the following format:
Let's look at each element of this description.
Name– identifier;
Every variable, constant, function, every expression in a program written in the language high level, has a certain type. Data different types stored and processed differently.
Data type defines:
Internal representation of data in computer memory;
Operations and functions that can be applied to objects of this type;
The set of values that values of this type can take.
All types of the C++ language are divided into main And derivatives (compound).
Basic data types
In programming languages, the main data types include data types for storing numbers (integer type, real type) and characters.
The C++ language defines seven basic data types: six to represent integer, real, character, and boolean values, and one special type, void. To describe the six main ones, the following keywords:
int-whole,
char, wchar_t- symbolic
float, double- real,
bool- logical.
In addition, there are four specifiers that specify the internal representation and range of values standard types:
short- short ,
long- long ,
signed- signed (most significant bit is interpreted as sign, 0 is positive, 1 is negative) ,
unsigned- unsigned .
Integer, character, and real types are also called arithmetic types.
Variable declaration examples:
int a,b;//two variables of integer type
float summa;// variable of real type
Let's consider the main types in more detail.
Under variable integer type (int) 2 or 4 bytes are allocated (for a 16-bit and 32-bit processor, respectively). short int - 2 bytes, long int - 4 bytes. Constants are assigned a type according to their type. By default, integer constants are interpreted as short and signed. To change this interpretation, you can use suffixes - L, l, U, u. For example, 8L, 71u.
Character type(char) - 1 byte. (For wchar_t– depends on the implementation, usually 2 bytes).
Consider the internal representation of a range of values using the char type as an example.
The smallest unsigned number one byte long 00000000 2 =0
The largest unsigned number one byte long is 11111111 2 =255.
Therefore, the unsigned char type allows you to store 256 different characters with codes from 0 to 255.
The smallest positive number one byte long 00000000 2 =0
Largest positive number one byte long 01111111 2 =127
Largest negative number one byte long 11111111 2 =-1
The smallest negative number one byte long 10000000 2 = -128
Recall that to obtain the absolute value of a negative number, it is inverted, that is, replace 0 with 1, 1 with 0, and add one. For example, a negative number is 10000000. Invert - 01111111. Add 1
Therefore, the signed type char allows you to store 256 different characters with codes from -128 to 127.
Boolean type (bool)- 1 byte. The value of values of this type is either true ( true or 1) or false ( false or 0). Any null value is interpreted as false, any non-zero value is interpreted as true.
Real type(float, double, long double). The internal representation of real values consists of two things - the mantissa and the exponent. For example, 148.35 can be represented as 1.4835 * 10 2, where 1.4835 is the mantissa, 2 is the order. Mantissa >1 and< 2. Длинна мантиссы определяет точность числа, а длина порядка его диапазон. Для float отводится 4 байта = 1 знак + 8 порядок + 23 мантисса). Так как старшая цифра мантиссы =1, то она не хранится. Для double отводится 8 байт = 1 знак+11 порядок+52 мантисса. Константы вещественного типа по умолчанию имеют тип double. Для его изменения можно использовать суффиксы F,f,L,l.
void type is a special type, the set of values of this type is empty. It is not used when declaring variables.
In addition, I use the specifier typedef you can enter convenient descriptions for complex types. For example,
typedef unsigned char UC;
UC symbol; // symbol is type variable UC, i.e. unsigned character
Let's continue to consider the syntax of variable declaration:
[storage class]type name1 [initial_expression1], name2 [initial_expression2],…;
In order to understand what is storage class Let us introduce several definitions.
Each program object in particular a variable is characterized by such parameters as
Scope;
Area of visibility;
Lifetime (length of existence).
Scope is the part of the program where an identifier can be used to access a variable. If a variable is declared inside a block, then it is called local and its scope from the point of description to the end of the block. If the variable is declared outside the block, then the variable is called global and its scope is from the point of description to the end of the file.
Area of visibility is a part of the program from which it is possible usual variable access. Most often, the scope coincides with the scope, but there are exceptions - if variables with the same names are used in nested blocks (the external variable is invisible in this case).
#include