Содержание
- 2. Questions: The structure of the language. Data types. Console input. Class Math. Input and output from
- 3. 1.The structure of the language. The alphabet includes: letters and an underscore; numbers; special characters, e.g.
- 4. Lexeme – a minimal unit of language: names (identifiers); key words; operation signs; dividers; literals (constants).
- 5. The expression specifies how to compute a certain value (a+b). The operator sets a complete description
- 6. 1.2. Identifiers The identifier can be letters, digits, and the underscore character. The first character letter
- 7. Notation — the agreement on the rules to generate names.In the notation of Pascal each word
- 8. According to Camel notation, with an uppercase letter begins each word constituting the identifier except the
- 9. In C# for naming different types of software objects are often used two notations: Pascal and
- 10. 1.3.Key words. Keywords are reserved identifiers that have special meanings to the compiler. (Tab.2.1.)
- 11. 1.5.Literals. Literals or constants are called immutable values. Constants can be Boolean, integer, real, character and
- 12. Boolean : true, false. Integer constant: decimal or hexadecimal. Decimal: the sequence of decimal digits, which
- 13. Hexadecimal: 0x or 0X, followed by hexadecimal digits. Numbers may be followed by a suffix (
- 14. Real literals are represented only in decimal, but in two forms: fixed point and with the
- 15. A real constant with the procedure is represented as a mantissa and order. The mantissa is
- 16. When the compiler recognizes a constant, it assigns her a place in memory according to its
- 17. Character – character in Unicode, enclosed in apostrophes.The character constant is written in one of four
- 18. Sequence is interpreted as a single character and is used to represent: Codes not having a
- 19. String constant – sequence of characters enclosed in quotation marks.Escape sequences can be used in string
- 20. 2.Data types. The data on which the program is stored in RAM. The compiler needs to
- 21. Each expression in the program has a type. Variables have no type exists. The compiler uses
- 22. A memory in which are stored data during program execution and are divided into two region:
- 23. Classification of data types: Types can be classified according to various criteria. In the classification according
- 24. At the time of memory allocation types are divided into static (the volume is known, the
- 25. Built-in types Do not require prior definition. Tab.2.5.Correspond to the standard class library .NET certain the
- 26. The internal representation of a value of integer type is an integer in binary code. In
- 27. The internal representation of real numbers consists of two parts – mantissa and order, each piece
- 28. The decimal type is intended for monetary calculations are critical rounding errors. As can be seen
- 29. The types of literals. If the value of the integer literal is within the range of
- 30. Examples. 10 - int; 2147483648 – uint 2.6 – double To explicitly set the type of
- 31. Packing and unpacking. Conversion from type value to a reference type is called Boxing (boxing), inverse
- 32. 3. Console input To input variable string from console we are to use operator. Examples. string
- 33. int variableFirst; variableFirst= Convert.ToInt32(Console.ReadLine());
- 34. After you enter a value variable must make a control output Console.WriteLine(" Enter the value of
- 35. 4.Class Math. (page 65) In terms often used mathematical functions such as sine or exponentiation. They
- 36. hyperbolic functions: Tanh, Sinh, Cosh; exponent and logarithm functions: Exp, Log, LoglO; modulus (absolute value), square
- 37. 5.Input and output from a file To enter information from a file, you must: 1.Add the
- 38. Specify the path to the file StreamReader f_чтение = new StreamReader("input.txt"); // First option of the
- 39. StreamReader f_чтение = new StreamReader(@"D:\input.txt”); //Third option operator, when the file input.txt located in an arbitrary
- 40. Iteration (Looping) Statement while There are many situations in which you will want to do the
- 41. The semantics of the while loop are "while this condition is true, do this work." The
- 42. Example int counterVariable = 0; // while the counter variable is less than 10 // print
- 43. Tasks Task 1. To calculate the value functions: in the range of the argument from a1
- 45. Скачать презентацию