... thái (Status Register) Thanh ghi lệnh (Command Register) Thanh ghi t m (Temporary Register) Thanh ghi chế độ (Mode Register) Thanh ghi m t nạ (Mask Register) Thanh ghi yêu cầu (Request Register) ... nhiều thi t bị nối với bus, s thi t bị t ch cực (active) đòi hỏi truyền thông bus, có thi t bị thụ động chờ yêu cầu t thi t bị khác Các thi t bị t ch cực gọi chủ (master) thi t bị thụ động t (slave) ... Register) 16 Thanh ghi đếm t hành (Current Word Count Register) 16 Thanh ghi địa t m (Temporary Address Register) 16 Thanh ghi đếm tt m (Temporary Word Count Register) 16 Thanh ghi trạng thái...
... bánh thứ Các thuộc t nh thông thường xem thuộc t nh thể (instance attribute) chúng chứa đựng trạng thái cho đối t ợng xe đạp cụ thể Trong kỹ thu t hướng đối t ợng đối t ợng cụ thể gọi thể (instance) ... thứ cần thi t ph t lờ thứ không cần thi t Ví dụ thông tin sau đặc t nh gắn k t với người: T n Tuổi Địa Chiều cao Màu t c Giả s ta cần ph t triển ứng dụng khách hàng mua s m hàng hóa chi ti t ... phương thức để thay đổi t c độ t c độ xe đạp t nh t hai yếu ts vòng quay bánh Những phương thức thông thường bi t phương thước thể (instance method) chúng t c động hay thay đổi trạng thái đối t ợng...
... p=5,q=12,r=20 ,s; s= p+q; System.out.println(p+q is +s) ; s= p%q; System.out.println(p%q is +s) ; s* =r; System.out.println (s* =r is +s) ; System.out.println(Value of p before operation is+p); p++; System.out.println(Value ... int a; Super(Class() // constuctor { } SuperClass(int b) //overloaded constructor { a=b; } class Subclass Extends SuperClass {// derriving a class int a; SubClass(int a) {//subclass constructor ... public static void main(String parameters[]) { System.out.println(This is what the main method received); System.out.println(parameters [0 ]); System.out.println(parameters [1 ]); System.out.println(parameters...
... ‘ttthcn’ thç måïi chỉång trçnh Uses CRT; Var Password : String[6]; Begin Repeat Write( ‘ Xin hay nhap mat khau : ‘ ); Readln(Password); Until Password = ‘ttthcn’; Write( ‘ Ban da nhap dung mat ... hm: ta gi hm thäng qua t n km theo tham s ú ca hm sau: T n_hm(Danh cạc tham s ú thỉûc s û); Cáúu trục ca th t c cọ dảng: PROCEDURE T n_Th _t c(TS1: Kiãøu; TS2: Kiãøu; ; Var TS3: Kiãøu; Var TS4: ... láúy kã tqu thäng qua t n hm, nãúu l th t c thç kã tqu åí tham s ú thỉûc s û ỉïng våïi tham s ú biãún Khi cáưn láúy nhá t mä t giạ trë t ì chỉång trçnh thç ta láûp mä t FUNCTION, cáưn láúy t ì...
... y); K t là: The The The The The The integers are : addition gives : subtraction gives : multiplication gives : division gives : modulus gives : & 10 Các toán t (unary) Các toán t toán t trừ ... độ ưu tiên cao toán ts học khác Riêng với toán t so s nh, thứ t ưu tiên toán t chúng ước lượng t trái sang phải Thứ t ưu tiên toán t luận lý Bảng trình bày thứ t ưu tiên cho toán t luận ... printf(“ %s , ”\nThis also prints a string”); } K t chương trình sau: Integer data = 10 Float Data = 24.678923 Character = A This prints the string This also prints a string Bổ t (Modifier) cho...
... a_date date ); Sau dùng insert để đưa giá trò ngày vào a_date: insert into date_test (a_date) values (‘00-06-01’); insert into date_test (a_date) values (‘2000-06-01’); insert into date_test (a_date) ... not connect to localhost”); mysql_select_db(“test”, $conn) or die (“Could not select database”); Lệnh CREATE Table Lưu ý: Lệnh thực sau có lệnh CREATE Database M t bạn t o chọn database, việc t o ... mysql_connect(“localhost”,”username”, “password”) or die (“Could not connect to localhost”); mysql_select_db(“test”, $conn) or die(“could not select database”); $query = “create table my_table (col_1 int...
... duy t h ttt thư mục t m t p tin bạn đònh HTTP_USER_AGENT B t kỳ thi t k t Web site hiểu t m quan trọng việc nhận dạng trình duy t người s dụng M ts trình duy t không s dụng JavaScript, s ... run the first time to //this page elseif(empty($your_name) && !isset($submit)) { echo " first name
... ByVal lParam) Else 'N•u nh•n Shift-C If (GetKeyState(VK_SHIFT) And &H8000) And wParam = Asc("C") Then 'thì hi•n th• k tqu Form1.Print "Shift-C pressed " End If If (GetKeyState(VK_CONTROL) And &H8000) ... push ax ; push registers on the stack push bx push dx push ds mov ax,segment_kb ; address of keyboard data segment to DS mov ds,ax ; ; Read the character ... message box, scroll bar menu hệ thống (WH_SYSMSGFILTER) - Xử lý thay đổi thông điệp hệ thống hàm GetMessage hay PeekMessage gọi (WH_GETMESSAGE) - Xử lý thay đổi thông điệp hệ thống hàm SendMessage gọi...
... lập trình cấu trúc phương pháp phân t ch t xuống (Top – Down) với quan điểm phải đứng cao để quan st tổng thể ví trí thấp để quan st h t xung quanh Page | 10 Qu trình phân rã t an thực theo ... tin cậy -> tiện lợi -> giá thành II.2 Cấu trúc lệnh (cấu trúc điều khiển): M t chương trình máy t nh ch t mã hóa thu t tóan Thu t tóan coi dãy hữu hạn thao t c s cấp t p đối t ợng vào (Input) ... pháp Top – Down: Qu trình phân t ch t an thực t xuống T vấn đề chung đến vấn đề cụ thể T mức trừu t ợng mang t nh ch t tổng quan t i mức đơn giản đơn vị chương trình M t nguyên lý quan trọng...
... output stream for this socket String toString() Converts this socket to a String java.net Class DatagramSocket Constructor Summary DatagramSocket() Constructs a datagram socket and binds it to ... multicast address boolean isSiteLocalAddress() Utility routine to check if the InetAddress is a site local address String toString() Converts this IP address to a String java.net Class ServerSocket ... setSocketAddress(SocketAddress address) Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent java.lang Class String Constructor Summary...
... ans= Đặc bi t để gọi toàn s hàng toàn s c t dùng toán t (:) >> A(:,1) % gọi toàn s hàng t ng ứng với c t ans= Trang Tungvn40@yahoo.com CM Soft 70 NCT F2 Q10 >>A(1,:) % gọi toàn s c t tơng ... Matrận t M-file Ta nhập matrận cửa s soạn thảo M-file, mở cửa s cách vào File- New- M-file M t cửa s soạn thảo đợc cho phép bạn soạn thảo dới dạng text, cửa s soạn thảo dạng text bạn soạn ... 3.4 Truy nhập phần t ma trận Đê truy nhập phần t ma trận ta làm nh sau: Giả s ma trận A= Thì >> A(i,j) ; truy nhập đến phần t hàng thứ i c t thứ j Ví dụ để truy nhập đến phần t thứ ta :...
... super.onCreate(savedInstanceState); setContentView(R.layout.main); // invoking the service Intent service1Intent = new Intent( this, Service1.class ); startService( service1Intent ); // some work ... Contacts available in the phone Intent myIntent = new Intent( Intent.ACTION_VIEW, Uri.parse("content://contacts/people")); startActivity(myIntent); 34 Example of Intent (1) Intent uses ACTION_VIEW ... Corp Qualcomm SiRF Tech Holdings Synaptics Texas Instr AKM Semicond ARM Atheros Comm EMP ACER ASUS HTC LG Motorola Samsung ASUSTek Garmin Huawei Tech LG Samsung … Sony Ericsson Toshiba See Android...
... response.write RS(“MaHV”) response.write RS(“Ten”) response.write “” rs.movenext ‘dịch trỏ rs t i ghi loop rs.close ‘đóng recordset set rs=nothing ‘hủy recordset %> Chúng ta k t hợp script ... Request, Response, Session, Application, Server M ts đối t ợng cần khởi t o muốn s dụng Dictionary, Connection, Recordset 1.4.1 Đối t ợng Request Request Response đối t ợng dùng nhiều lập trình ... thông tin trang thời gian định Khi session h t thời gian hiệu lực xem h t hạn s dụng ,t t biến lưu session thân session bị hủy bỏ Có thể kiểm tra t ng giảm thời gian Timeout Session t nh giây sau:...
... confirmPassword=request.form("confirmPassword") address=request.form("address") 'validate if username is exist in the tblUsers?,password and confirmPassword are ‘matched?, address openConn sql="UPDATE tblUser ... openConn sql="insert 42 into tblUser([username],[password],[address]) ASP values('"&username&"','"&password&"','"&address&"')" conn.execute sql destroyConn response.write "Successfull Registration!"%> ... openConn set rs = server.createobject("ADODB.Recordset") rs.open "select * from tblUser", conn%> IDUsernameAddressEditDelete...