//
archives

pascalteacher

pascalteacher has written 39 posts for pascalteacher

MỤC LỤC TRANG THÔNG TIN TOÁN HỌC

MỤC LỤC TRANG THÔNG TIN TOÁN HỌC Tham khảo chung về chương trình Phân phối chương trình toán 6 Phân phối chương trình toán 10 Chương trình điều chỉnh môn Toán năm 2007 – 2008 Khung phân phối chương trình Toán từ năm học 2007 – 2008 Năm 2009 Đề tham khảo học kỳ 1- … Đọc tiếp

Bài 13: Kiểu dữ liệu tập tin (file)

Pascal – File Handling http://www.tutorialspoint.com/pascal/pascal_files_handling.htm Copyright © tutorialspoint.com Pascal treats a file as a sequence of components, which must be of uniform type. A file’s type is determined by the type of the components. File data type is defined as: type file-name = file of base-type; Where, the base-type indicates the type of the components … Đọc tiếp

Bài 12: Kiểu dữ liệu bản ghi (record)

Pascal – Records http://www.tutorialspoint.com/pascal/pascal_records.htm Copyright © tutorialspoint.com Pascal arrays allow you to define type of variables that can hold several data items of the same kind but a record is another user-defined data type available in Pascal which allows you to combine data items of different kinds. Records consist of different fields. Suppose you want … Đọc tiếp

Bài 11: Kiểu dữ liệu tập hợp (set)

Pascal – Sets http://www.tutorialspoint.com/pascal/pascal_sets.htm Copyright © tutorialspoint.com A set is a collection of elements of same type. Pascal allows defining the set data type. The elements in a set are called its members. In mathematics, sets are represented by enclosing the members within braces{}. However, in Pascal, set elements are enclosed within square brackets [], … Đọc tiếp

Bài 10: Kiểu dữ liệu xâu (string)

Pascal – Strings http://www.tutorialspoint.com/pascal/pascal_strings.htm Copyright © tutorialspoint.com The string in Pascal is actually a sequence of characters with an optional size specification. The characters could be numeric, letters, blank, special characters or a combination of all. Extended Pascal provides numerous types of string objects depending upon the system and implementation. We will discuss more common … Đọc tiếp

Bài 9: Kiểu dữ liệu mảng (array)

Pascal – Arrays http://www.tutorialspoint.com/pascal/pascal_arrays.htm Copyright © tutorialspoint.com Pascal programming language provides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of … Đọc tiếp

Bài 8: Chương trình con: Thủ tục và hàm

Pascal – Procedures http://www.tutorialspoint.com/pascal/pascal_procedures.htm Copyright © tutorialspoint.com Procedures are subprograms that, instead of returning a single value, allow to obtain a group of results. Defining a Procedure: In Pascal, a procedure is defined using the procedure keyword. The general form of a procedure definition is as follows: procedure name(argument(s): type1, argument(s): type 2, … ); … Đọc tiếp

Bài 7: Câu lệnh lặp

Pascal – Loops http://www.tutorialspoint.com/pascal/pascal_loops.htm Copyright © tutorialspoint.com There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The first statement in a function is executed first, followed by the second, and so on. Programming languages provide various control structures that allow … Đọc tiếp

Bài 6: Câu lệnh lựa chọn IF và CASE.

Pascal – Decision Making http://www.tutorialspoint.com/pascal/pascal_decision_making.htm Copyright © tutorialspoint.com Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition … Đọc tiếp

Bài 5: Nhập, xuất dữ liệu.

Program Ca_dao; {Bai tap 01.01} Begin Writeln(‘Trong dam gi dep bang sen,’); Writeln(‘La xanh bong trang lai chen nhi vang,’); Writeln(‘Nhi vang bong trang la xanh.’); Writeln(‘Gan bun ma chang hoi tanh mui bun’); Readln End.   Program Phep_Tru; {Bai tap 01.03} Var so1,so2,hieu :Integer; Begin Writeln(‘ CHUONG TRINH THUC HIEN PHEP TRU SO HOC’); … Đọc tiếp

Theo dõi

Get every new post delivered to your Inbox.