Mã:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;// datafile.using System.Threading;// mau. namespace TheZoo4{ class vongtron { Double r; public vongtron(Double bk) { r = bk; } public Double dientich() { return Math.PI * r * r;// Math.PI tu la 3.14. } public Double chuvi() { return Math.PI * r * 2; } } class chunhat { Double day, rong; public chunhat(Double D, Double R) { day = D; rong = R; } public Double chuvi() { return 2 * (day + rong); } public Double dientich() { return day * rong; } } class hinhvuong { Double canh; public hinhvuong(double c) { canh = c; } public Double chuvi() { return canh * canh; } public Double dientich() { return canh * 4; } } class Gamer { private int hp, mana; private string name; public int Gia_Tri_HP() { return hp; } public int Gia_Tri_Mana() { return mana; } public string Gia_Tri_Name() { return name; } public void Gia_Tri_HP(int hp1) { hp = hp1; } public void Gia_Tri_Mana(int mana1) { mana = mana1; } public void Gia_Tri_Name(string name1) { name = name1; } } class ngoc { public static int NgocHeThong; private int NgocPlayer; public void set(int Ngoc) { NgocPlayer = Ngoc; } public int get() { return NgocPlayer; } } class ProgramGamer { public int Menu() { int i2; do { Console.WriteLine(" "); Console.WriteLine("1. Doi ten nhan vat."); Console.WriteLine("2. Tan cong."); Console.WriteLine("3. Buff minh."); Console.WriteLine("4. Buff dong boi."); Console.WriteLine("5. Doi nhan vat"); Console.WriteLine(" "); i2 = Convert.ToInt32(Console.ReadLine()); } while (i2 < 1 || i2 > 6); return i2; } class lamtoan { Double[] mang; public void phepcong() { int i, sophantu; Console.Write("Ban muon tinh bao nhieu so: "); sophantu = int.Parse(Console.ReadLine()); mang = new Double[sophantu]; for (i = 0; i < sophantu; i++) { Console.Write("Nhap so thu {0} vao: ", i + 1); mang[i] = Double.Parse(Console.ReadLine()); } } public void xuatcong() { Double tong = mang.Sum();// cong tuc ca cac phan tu co trong mang. Console.WriteLine("Ket wa la: {0}", tong); } } class thutu { static public int n; static public void NhapMang(int[] b) { Console.Write("Ban muon bao nhieu so: "); n = int.Parse(Console.ReadLine()); for (int i = 0; i < n; i++) { Console.Write("Nhap vao phan tu thu {0}: ", i + 1); b[i] = int.Parse(Console.ReadLine()); } } static public int Tim_CS_Min(int[] b, int chisodau) { int chiso = chisodau; int min = b[chisodau]; for (int i = chisodau; i < n; i++) if (min > b[i]) { min = b[i]; chiso = i; } return chiso; } static public void XuatMang(int[] b) { for (int i = 0; i < n; i++) Console.Write("\t{0}", b[i]); } } class Program { public static int level;// Khai bao cho nay thi WriteData() & ReadData() moi thay dc. static public void WriteData() { FileStream fs = new FileStream("E:/save.txt", FileMode.Create, FileAccess.Write); StreamWriter sw = new StreamWriter(fs); sw.WriteLine(level);// ghi bien level vao. sw.Flush();// don rac he thong. sw.Close(); } static public void ReadData() { FileStream fs = new FileStream("E:/save.txt", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); sr.BaseStream.Seek(0, SeekOrigin.Begin);//doc tu dau toi cuoi. string str = sr.ReadLine(); level = Convert.ToInt32(str);// vi level la so nen phai Convert de doc duoi dang Int32. sr.Close(); fs.Close(); } static void SetMauNen(ConsoleColor m) { Console.BackgroundColor = m; } static void SetMauChu(ConsoleColor m) { Console.ForegroundColor = m; } static void ResetMau() { SetMauNen(ConsoleColor.Black); SetMauChu(ConsoleColor.White); } static void GotoXY(int x, int y)// tao do mang hinh. { Console.CursorLeft = x;// cot. Console.CursorTop = y;// dong. } static void Main(string[] args) { SetMauChu(ConsoleColor.Red); SetMauNen(ConsoleColor.Black); rID: String ID, Pass; Console.WriteLine(" "); Console.WriteLine(" Dang nhap tai khoan"); Console.Write(" Nhap ID : "); ID = Console.ReadLine(); Console.Write(" Nhap Pass : "); Pass = Console.ReadLine(); if (ID.Equals("truong") && Pass.Equals("truong")) { Console.WriteLine(" Dang nhap thanh cong."); goto passing; } else Console.WriteLine(" ID or Pass khong dung vui long nhap lai."); goto rID; passing: Console.ResetColor();// Reset Color ve mat dinh. SetMauChu(ConsoleColor.Green); SetMauNen(ConsoleColor.Black); int exp = 0; level = 1; char option2 = 'y'; while (option2 != 'n') { if (exp > 10) { exp %= 10;// exp ve 0 khi lan cap. level++; } Console.WriteLine(" "); Console.WriteLine(" Welcome to the zoo 4 (version 4.0)"); Console.WriteLine(" ♥♥♥Made by Truong cute♥♥♥"); Console.WriteLine(" EXP/level : {0}/{1}", exp, level); Console.WriteLine(" "); Console.WriteLine(" 1.Bai tap hinh hoc."); Console.WriteLine(" 2.Choi VLTK ( VLTK – resolves negative LAG scaling )."); Console.WriteLine(" 3.Lam Toan cong."); Console.WriteLine(" 4.Sap xep so theo thu tu tang dan."); Console.WriteLine(" 5.Xem hinh nay la hinh gi."); Console.WriteLine(" 6.Xem da banh."); Console.WriteLine(" 7.Viet bang cuu chung."); Console.WriteLine(" 8.Xem ngay/thangam nay co ton tai khong."); Console.WriteLine(" 9.Tinh tien Taxi coi."); Console.WriteLine(" 10.Save."); Console.WriteLine(" 11.Load."); Console.WriteLine(" 12.Loi ket."); Console.WriteLine(" "); int option = 0; while (option < 1 || option > 12)// con dung thi con lap. { Console.Write(" Moi chon kieu tuong tac: "); option = Convert.ToInt32(Console.ReadLine()); } switch (option) { case 1: Console.WriteLine(" "); Console.WriteLine(" 1.Hinh tron"); Console.WriteLine(" 2.Hinh Chu nhat"); Console.WriteLine(" 3.Hinh vuong"); Console.WriteLine(" "); int tuychon1 = 0; while (tuychon1 < 1 || tuychon1 > 3) { Console.Write(" Cho hinh: "); tuychon1 = int.Parse(Console.ReadLine()); } switch (tuychon1) { case 1: Double[] mang; int i1, sohinh; Double bankinh; Console.Write(" Ban muon tinh bao nhieu hinh: "); sohinh = int.Parse(Console.ReadLine()); mang = new Double[sohinh]; for (i1 = 0; i1 < sohinh; i1++) { Console.Write(" Nhap gia tri R: "); bankinh = Double.Parse(Console.ReadLine()); vongtron vt = new vongtron(bankinh); Console.WriteLine(" Chu vi la {0}, dien tich la {1}", vt.chuvi(), vt.dientich()); } exp += 5; break; case 2: int[] mang2; int i2, sohinh2; Double Day, Rong; Console.Write(" Ban muon tinh bao nhieu hinh: "); sohinh2 = int.Parse(Console.ReadLine()); mang2 = new int[sohinh2]; for (i2 = 0; i2 < sohinh2; i2++) { Console.Write(" Nhap chieu day (or rong) vao: "); Day = Double.Parse(Console.ReadLine()); Console.Write(" Nhap chieu rong (or day) vao: "); Rong = Double.Parse(Console.ReadLine()); chunhat cn = new chunhat(Day, Rong); Console.WriteLine(" Chu vi la {0}, dien tich la {1}", cn.chuvi(), cn.dientich()); } exp += 5; break; case 3: int[] mang3; int i3, sohinh3; Double canh; Console.Write(" Ban muon tinh bao nhieu hinh: "); sohinh3 = int.Parse(Console.ReadLine()); mang3 = new int[sohinh3]; for (i3 = 0; i3 < sohinh3; i3++) { Console.Write(" Nhap gia tri canh vao: "); canh = Double.Parse(Console.ReadLine()); hinhvuong vg = new hinhvuong(canh); Console.WriteLine(" Dien tich la {0}, chu vi la {1}", vg.dientich(), vg.chuvi()); } exp += 5; break; } break; case 2: { Console.WriteLine(" "); Console.WriteLine(" 1.PK."); Console.WriteLine(" 2.Ep ngoc."); Console.WriteLine(" "); int tuychonE = 0; while (tuychonE < 1 || tuychonE > 2) { Console.Write(" Cho hinh: "); tuychonE = int.Parse(Console.ReadLine()); } switch (tuychonE) { case 1: ProgramGamer ProG = new ProgramGamer(); Gamer g1 = new Gamer(); Gamer g2 = new Gamer(); g1.Gia_Tri_HP(100); g1.Gia_Tri_Mana(100); g1.Gia_Tri_Name(" Thieu lam"); g2.Gia_Tri_HP(100); g2.Gia_Tri_Mana(100); g2.Gia_Tri_Name(" Ngu doc"); Console.Write(" Chon Thieu lam hoac Ngu doc (1 or 2): "); int option4 = Convert.ToInt32(Console.ReadLine()); int option3; do { option3 = ProG.Menu(); Random r = new Random(); int blood, mana; switch (option4) { case 1: switch (option3) { case 1: Console.WriteLine(" Nhap ten nhan vat: "); string str = Console.ReadLine(); g1.Gia_Tri_Name(str); exp += 10; break; case 2: blood = r.Next(0, 50); g2.Gia_Tri_HP(g2.Gia_Tri_HP() - blood); mana = r.Next(0, 20); g1.Gia_Tri_Mana(g1.Gia_Tri_Mana() - mana); exp += 20; break; case 3: blood = r.Next(0, 50); g1.Gia_Tri_HP(g1.Gia_Tri_HP() + blood); mana = r.Next(0, 20); g1.Gia_Tri_Mana(g1.Gia_Tri_Mana() + mana); exp += 15; break; case 4: blood = r.Next(0, 50); g2.Gia_Tri_HP(g2.Gia_Tri_HP() + blood); mana = r.Next(0, 20); g2.Gia_Tri_Mana(g2.Gia_Tri_Mana() + mana); exp += 10; break; case 5: option4 = 2; break; } break; case 2: switch (option3)// giong case 1, nhung nguoc lai case 1. { case 1: Console.WriteLine(" Nhap ten nhan vat: "); string str = Console.ReadLine(); g2.Gia_Tri_Name(str); exp += 10; break; case 2: blood = r.Next(0, 50); g1.Gia_Tri_HP(g1.Gia_Tri_HP() - blood); mana = r.Next(0, 20); g2.Gia_Tri_Mana(g2.Gia_Tri_Mana() - mana); exp += 20; break; case 3: blood = r.Next(0, 50); g2.Gia_Tri_HP(g2.Gia_Tri_HP() + blood); mana = r.Next(0, 20); g2.Gia_Tri_Mana(g2.Gia_Tri_Mana() + mana); exp += 15; break; case 4: blood = r.Next(0, 50); g1.Gia_Tri_HP(g1.Gia_Tri_HP() + blood); mana = r.Next(0, 20); g1.Gia_Tri_Mana(g1.Gia_Tri_Mana() + mana); exp += 10; break; case 5: option4 = 2; break; } break; } Console.WriteLine(" "); Console.WriteLine(" Nhan vat {0}, HP {1}, Mana {2}", g1.Gia_Tri_Name(), g1.Gia_Tri_HP(), g1.Gia_Tri_Mana()); Console.WriteLine(" Nhan vat {0}, HP {1}, Mana {2}", g2.Gia_Tri_Name(), g2.Gia_Tri_HP(), g2.Gia_Tri_Mana()); } while (option4 != 6); break; case 2: ngoc[] n = new ngoc[2]; Random z = new Random(); Console.Write(" Nhap vao so ngoc cua he thong : "); ngoc.NgocHeThong = int.Parse(Console.ReadLine()); for (int i = 0; i < 2; i++) { n[i] = new ngoc(); int NgocRandom = z.Next(0, ngoc.NgocHeThong); ngoc.NgocHeThong -= NgocRandom; n[i].set(n[i].get() + NgocRandom); } Console.WriteLine(" "); for (int i = 0; i < 2; i++) Console.WriteLine(" So luong ngoc cua nhan vat {0} la : {1}", i + 1, n[i].get()); Console.WriteLine(" Ngoc trong ruong con: {0}", ngoc.NgocHeThong); exp += 15; break; } break; } case 3: lamtoan t = new lamtoan(); t.phepcong(); t.xuatcong(); Console.ReadLine(); exp += 15; break; case 4: int[] b = new int[50]; thutu.NhapMang(b); for (int i = 0; i < thutu.n; i++) { int cs_min = thutu.Tim_CS_Min(b, i); int temp = b[cs_min]; b[cs_min] = b[i]; b[i] = temp; } thutu.XuatMang(b); Console.ReadLine(); exp += 15; break; case 5: int a5, b5, c5, tam = 4; Console.Write("Nhap vao canh a: "); a5 = Convert.ToInt32(Console.ReadLine()); Console.Write("Nhap vao canh b: "); b5 = Convert.ToInt32(Console.ReadLine()); Console.Write("Nhap vao canh c: "); c5 = Convert.ToInt32(Console.ReadLine()); if (((a5 + b5) > c5) || ((b5 + c5) > a5) || ((c5 + a5) > b5)) { if (a5 == b5 && a5 == c5) tam = 3; else { if ((a5 == b5) || (a5 == c5) || (b5 == c5)) { tam = 2; } if ((a5 * a5 + b5 * b5 == c5 * c5) || (a5 * a5 + c5 * c5 == b5 * b5) || (b5 * b5 + c5 * c5 == a5 * a5)) { if (tam == 2) tam = 0; else tam = 1; } } } if (tam == 4) Console.Write("Ko phai tam giac"); else if (tam == 3) Console.Write("Tam Giac Deu"); else if (tam == 0) Console.Write("Tam Giac Vuong Can"); else if (tam == 2) Console.Write("Tam Giac Can"); else if (tam == 1) Console.Write("Tam Giac Vuong"); exp += 15; break; case 6: int year; XX: Console.Write(" Nhap vao 1 nam bat ky: "); year = Convert.ToInt32(Console.ReadLine()); if (year <= 0) { Console.Write(" Nhap sai roi, nhap lai: "); goto XX; } switch (year % 4) { case 0: Console.Write(" Nam {0} la nam to chuc Euro", year); exp += 15; break; case 2: Console.Write(" Nam {0} la nam to chuc Word Cup", year); exp += 15; break; default: Console.Write(" Nam nay ko co su kien nao het"); exp += 15; break; } break; case 7: Console.WriteLine("1.Bang cuu chuong Full."); Console.WriteLine("2.Bang cuu chuong cho 1 so."); int optionb = 0; while (optionb < 1 || optionb > 2) { Console.WriteLine("Moi chon kieu lam toan."); optionb = Convert.ToInt32(Console.ReadLine()); } switch (optionb) { case 1: for (int n = 1; n <= 10; n++) for (int i = 1; i <= 10; i++) Console.WriteLine("{0} X {1} = {2}", n, i, n * i); exp += 10; break; case 2: int na; Console.WriteLine("Nhap so vao: "); na = int.Parse(Console.ReadLine()); for (int i = 1; i <= 10; i++) Console.WriteLine("{0} X {1} = {2}", na, i, na * i); exp += 20; break; } break; case 8: int dd, mm, yy, nhuan = 0; YY: Console.Write("Nhap nam: "); yy = Convert.ToInt32(Console.ReadLine()); if (yy <= 0) { Console.Write("Nhap nam sai roi, nhap lai: "); goto YY; } if ((yy % 4 == 0) || ((yy % 100 == 0) && (yy % 400 == 0))) nhuan = 1; MM: Console.Write("Nhap thang: "); mm = Convert.ToInt32(Console.ReadLine()); if ((mm <= 0) && (mm > 12)) { Console.Write("Nhap thang sai roi, nhap lai: "); goto MM; } DD: Console.Write("Nhap ngay: "); dd = Convert.ToInt32(Console.ReadLine()); if (dd <= 0) { Console.Write("Nhap ngay sai roi, nhap lai: "); goto DD; } else { if ((nhuan == 1) && (mm == 2) && (dd > 29)) { Console.Write("Nam {0} la nam Nhuan, thang 2 co 29 ngay thoi, nhap lai di: "); goto DD; } if ((nhuan == 0) && (mm == 2) && (dd > 28)) { Console.Write("Nam {0} ko phai la nam Nhuan, thang 2 co 28 ngay thoi, nhap lai di: "); goto DD; } if ((mm == 1) || (mm == 3) || (mm == 5) || (mm == 7) || (mm == 8) || (mm == 10) || (mm == 12)) { if (dd > 31) { Console.Write("Lam gi co thang nao con hon 31 ngay, nhap lai:"); goto DD; } } else { if (dd > 30) { Console.Write("Thang {0} chi co 30 ngay thoi, nhap lai", mm); goto DD; } } } Console.Write("{0} - {1} - {2} co ton tai", dd, mm, yy); exp += 10; break; case 9: float km; Console.Write("Nhap km: "); km = float.Parse(Console.ReadLine()); Console.Write("{0}Km = ", km); if (km > 30) Console.Write("0.8*10000 + 4.2*12500 + 25*10000 + {0}*9000 = {1}VND", km - 30, 0.8 * 10000 + 4.2 * 125000 + 25 * 10000 + (km - 30) * 9000); else if (km > 5) Console.Write("0.8*10000 + 4.2*12500 + {0}*10000 = {1}VND", km - 5, 0.8 * 10000 + 4.2 * 12500 + (km - 5) * 10000); else if (km > 0.8) Console.Write("0.8*10000 + {0}*12500 = {1}VND", km - 0.8, 0.8 * 10000 + (km - 0.8) * 12500); else if (km > 0) Console.Write("{0}*10000 = {1}VND", km, km * 10000); exp += 15; break; case 10: WriteData(); break; case 11: ReadData(); break; case 12: SetMauChu(ConsoleColor.Magenta); SetMauNen(ConsoleColor.Black); Console.WriteLine(" "); Console.WriteLine(" Cam on cac ban da ung ho va choi game cua Truong trong thoi gian qua"); Console.WriteLine(" Trong qua trinh choi neu phat hien Bug thi bao truong de Fix"); Console.WriteLine(" Version Love hua hen co nhieu tinh nang moi se ra mat vao ngay 23/7/2011."); Console.WriteLine(" "); Console.ResetColor(); break; } SetMauChu(ConsoleColor.Green); SetMauNen(ConsoleColor.Black); Console.WriteLine(" "); Console.WriteLine(" Ban co muon tuong tac nua khong (y): "); option2 = Convert.ToChar(Console.ReadLine()); } } } }}
Bất chấp những lầm tưởng phổ quát, hồ hết những người có âm đạo đều khó lên đỉnh khi bị kích thích âm đạo. Tuy nhiên, điều đó không có tức thị nó không thể vui được! Việc xâm nhập vào âm đạo bằng...
Quý bà giải tỏa bằng việc kích...