Thursday, May 12, 2016

Code chuyển năm dương lịch sang năm âm lịch Android bằng C#

1.File Main.axml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:minWidth="25px"     android:minHeight="25px">     <LinearLayout         android:orientation="horizontal"         android:layout_width="match_parent"      ...

Wednesday, May 11, 2016

Chương trình hằng đợi với danh sách liên kết đơn bằng C

#include<stdio.h> #include<stdlib.h> //Khai báo cấu trúc 1 nút struct node { int infor; struct node *link; }*F=NULL,*R=NULL; //Khởi tạo // Khai báo hàm void QInsert(int X); int QDelete(); int Empty(); // ===Chuong Trinh Chinh=== int main() {      // Bổ sung vào hàng đợi         QInsert(1);         QInsert(2);         QInsert(3);         QInsert(5); //Hiện thị thông tin của hàng đợi      printf("Cac...

Chương trình ứng ngăn xếp với danh sách liên kết đơn bằng C

#include<stdio.h> #include<stdlib.h> //Khai báo cấu trúc 1 nút struct node { int infor; struct node *link; }*T=NULL; //Khởi tạo T // Khai báo hàm void Push(int X); int Pop(); int Empty(); // ===Chuong Trinh Chinh=== int main() {      // Bổ sung vào ngăn xếp         Push(1);         Push(2);         Push(3);         Push(4);         Push(5); //Hiện thị thông tin của ngăn xếp printf("Cac so trong danh sach la: \n"); ...