03 2021 档案
摘要:1 CREATE TABLE emp (-- 创建emp表 2 id INT PRIMARY KEY AUTO_INCREMENT, 3 NAME VARCHAR(30), 4 age INT, 5 dep_name VARCHAR(30),-- 部门名称 6 dep_location VARCHA
阅读全文
摘要:1 SELECT COUNT(english) FROM student; 2 3 SELECT *FROM student; 4 5 SELECT COUNT(IFNULL(english,0)) FROM student; 6 7 SELECT COUNT(id) FROM student; 8
阅读全文
摘要:1 package principles.demo1开闭原则; 2 3 /** 4 * <p>Title: AbstractSkin</p> 5 * <p>Description: </p> 6 * @author 丁帅帅 7 * @date 2021-3-29 22:30:44 8 */ 9 pu
阅读全文
摘要:1 CREATE TABLE student( 2 id INT, -- 编号 3 NAME VARCHAR(20), -- 姓名 4 age INT, -- 年龄 5 sex VARCHAR(5), -- 性别 6 address VARCHAR(100), -- 地址 7 math INT, -
阅读全文
摘要:1 DESC stu; 2 3 INSERT INTO stu(id,NAME,age) VALUES(1,'张无忌',18); 4 5 SELECT *FROM stu; 6 7 INSERT INTO stu VALUES(2,'赵敏',17,NULL,NULL,NULL); 8 9 INSER
阅读全文
摘要:1 #include <iostream> 2 #include <string> 3 using namespace std; 4 //汽车类 5 class Car 6 { 7 public: 8 Car(); 9 Car(string name) 10 { 11 cout << "Car带参构
阅读全文
摘要:1 #include <iostream> 2 #include <cstring> 3 using namespace std; 4 class Person 5 { 6 public: 7 Person() 8 { 9 cout << "无参构造" << endl; 10 } 11 Person
阅读全文
摘要:#include <iostream> #include <cstring> using namespace std; class Person { public: Person() { cout << "构造函数调用" << endl; pName = (char *)malloc(sizeof(
阅读全文
摘要:1 #include<iostream> 2 using namespace std; 3 class Point 4 { 5 public: 6 void setX(int x) 7 { 8 mX = x; 9 } 10 void setY(int y) 11 { 12 mY = y; 13 }
阅读全文
摘要:1 //设计立方体类(Cube),求出立方体的面积(2 * a*b + 2 * a*c + 2 * b*c)和体积(a * b * c), 2 //分别用全局函数和成员函数判断两个立方体是否相等。 3 #include <iostream> 4 using namespace std; 5 clas
阅读全文