<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sugar_master的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/sugar_master</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; sugar_master]]></copyright><item><title><![CDATA[抽象类和接口]]></title><link>https://blog.csdn.net/sugar_master/article/details/121214176</link><guid>https://blog.csdn.net/sugar_master/article/details/121214176</guid><author>sugar_master</author><pubDate>Mon, 08 Nov 2021 21:16:32 +0800</pubDate><description><![CDATA[参考：
什么是抽象类
Java 抽象类、普通类、接口的区别
抽象类
概述

抽象类 和具体类是相对的概念。“抽象”是一种存在思想逻辑中的概念，而“具体”是一种可见可触摸的现实对象。如：动物比猫咪更抽象一点，而生物比动物更抽象。

在Java中一个没有方法体的方法应该定义为抽象方法，
public abstract class Animal{
		public abstract void eat();
}

而类中如果有抽象方法，则必须定义为抽象类
抽象类的特点

抽象类和抽象方法 必须用 关键词abstra]]></description><category></category></item><item><title><![CDATA[575.分糖果]]></title><link>https://blog.csdn.net/sugar_master/article/details/121087780</link><guid>https://blog.csdn.net/sugar_master/article/details/121087780</guid><author>sugar_master</author><pubDate>Mon, 01 Nov 2021 22:08:23 +0800</pubDate><description><![CDATA[class Solution {
    public int distributeCandies(int[] candyType) {
        Set&lt;Integer&gt; set = new HashSet&lt;Integer&gt;();
        for (int candy : candyType) {
            set.add(candy);
        }
        return Math.min(set.size(), candyType.le]]></description><category></category></item><item><title><![CDATA[java_foreach]]></title><link>https://blog.csdn.net/sugar_master/article/details/121088009</link><guid>https://blog.csdn.net/sugar_master/article/details/121088009</guid><author>sugar_master</author><pubDate>Mon, 01 Nov 2021 21:21:07 +0800</pubDate><description><![CDATA[foreach
for (element_type element_value : 遍历对象obj){
}

例1
public class test {
	public static void main(String args[]){
	int arr1[] = {1,2,3,3,5};
	System.out.println("逐个输出一维数组元素:");
	for(int i:arr1){
		System.out.println(i);
	}
	}
}

例2
public class test2{]]></description><category></category></item><item><title><![CDATA[A a = new A()；]]></title><link>https://blog.csdn.net/sugar_master/article/details/121044130</link><guid>https://blog.csdn.net/sugar_master/article/details/121044130</guid><author>sugar_master</author><pubDate>Fri, 29 Oct 2021 23:06:06 +0800</pubDate><description><![CDATA[JAVA new
class A{
	int i;
}
class Test{
	public static void main(String[] args){
	A a = new A();
	}
}

如何理解A  a = new A();

a是静态太分配的，new A()是动态分配的。
a是在栈里分配的，存放了动态内存的地址。
new A() 等价于  （A*）malloc (sizeof(A));
java中 a.i   等价于  C中(*a).i
new A()；  指的是在堆中动态分配一块区域]]></description><category></category></item><item><title><![CDATA[JAVA多态理解]]></title><link>https://blog.csdn.net/sugar_master/article/details/121042791</link><guid>https://blog.csdn.net/sugar_master/article/details/121042791</guid><author>sugar_master</author><pubDate>Fri, 29 Oct 2021 22:10:14 +0800</pubDate><description><![CDATA[多态
一.多态的条件

继承
方法的重写
父类引用指向子类对象

二.多态举例
public class DuoTai{
	public static void main(String[] args){
		//条件3：父类引用指向子类对象
		FatherClass fc = new SonClass();
		fc.test();
	}
}

class FatherClass{
	void test(){
		System.out.println("Father");
	}
}
//条件1：子类继承父]]></description><category></category></item><item><title><![CDATA[Rockstar games库服务连接失败]]></title><link>https://blog.csdn.net/sugar_master/article/details/117853286</link><guid>https://blog.csdn.net/sugar_master/article/details/117853286</guid><author>sugar_master</author><pubDate>Sat, 12 Jun 2021 18:24:28 +0800</pubDate><description><![CDATA[任务管理器打开，把Rockstar Service服务开启就好了，全名Rockstar Game Library Service

]]></description><category></category></item><item><title><![CDATA[系统开机错误提示 INACCESSIBLE_BOOT_DEVICE 进不了安全模式]]></title><link>https://blog.csdn.net/sugar_master/article/details/117740416</link><guid>https://blog.csdn.net/sugar_master/article/details/117740416</guid><author>sugar_master</author><pubDate>Wed, 09 Jun 2021 14:01:55 +0800</pubDate><description><![CDATA[1

2
找一个空白U盘
搜索老毛桃 下载最新PE系统
下载  老毛桃  一键刻录PE U盘
关机的电脑插上U盘，启动时按F10 或者F12 等，即选择从U盘启动，进入PE系统

3
找到系统盘（一般是C盘）下的C:\Windows\System32\config\RegBack 该路径下的SYSTEM文件 复制到C:\Windows\System32\config 目录下覆盖原有的SYSTEM文件（该文件可以备份一下 以防覆盖后仍不行可以进行还原 再找其他问题所在）

...]]></description><category></category></item><item><title><![CDATA[C++输出Json文件]]></title><link>https://blog.csdn.net/sugar_master/article/details/117670427</link><guid>https://blog.csdn.net/sugar_master/article/details/117670427</guid><author>sugar_master</author><pubDate>Mon, 07 Jun 2021 18:03:46 +0800</pubDate><description><![CDATA[#include&lt;iostream&gt;
#include&lt;string&gt;
#include&lt;vector&gt;
#include&lt;ostream&gt;
#include&lt;fstream&gt;

using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::ofstream;
using std::ios;
using std::to_string;


int]]></description><category></category></item><item><title><![CDATA[2021-05-27 何为顶天立地？]]></title><link>https://blog.csdn.net/sugar_master/article/details/117338985</link><guid>https://blog.csdn.net/sugar_master/article/details/117338985</guid><author>sugar_master</author><pubDate>Thu, 27 May 2021 21:55:56 +0800</pubDate><description><![CDATA[陈清如
陈清如经常对学生说：“做学问要顶天立地——顶天，就要站在国际前沿，瞄准世界一流；立地，就要结合行业和产业需求，解决我们国家的重大发现。”

]]></description><category></category></item><item><title><![CDATA[面向对象编程（Object-oriented programming, OOP）]]></title><link>https://blog.csdn.net/sugar_master/article/details/116669355</link><guid>https://blog.csdn.net/sugar_master/article/details/116669355</guid><author>sugar_master</author><pubDate>Tue, 11 May 2021 22:08:28 +0800</pubDate><description><![CDATA[//仅用于记录
C++基于三个基本概念：数据抽象、继承和动态绑定。
数据抽象：用类进行数据抽象。
继承：用类派生从一个类继承另一个类：派生类继承基类的成员。
动态绑定：使编译器能够在运行时决定是使用基类中定义的函数还是派生类中定义的函数。

注：继承和动态绑定容易地定义与其他类相似（similar）但又不相同（different）的新类，能够容易地编写忽略这些相似类型之间区别的程序。

面向对象编程的关键思想是：多态性（polymorphism）。i.e. 许多形态，通过继承而相关联的类型成为多态类型，可以]]></description><category></category></item><item><title><![CDATA[Use const whenever possible]]></title><link>https://blog.csdn.net/sugar_master/article/details/116593182</link><guid>https://blog.csdn.net/sugar_master/article/details/116593182</guid><author>sugar_master</author><pubDate>Mon, 10 May 2021 14:34:14 +0800</pubDate><description><![CDATA[const优势
允许你指定一个语义约束，即指定一个“不该被改动的对象”，而编译器会强制执行这项约束。
char greeting[] = "hello";
char* p = greeting;		//non-const pointer;non-const data
const char* p = greeting;		//non-const pointer, const data
char* const p = greeting;;	//const pointer, non-const data
cons]]></description><category></category></item><item><title><![CDATA[为什么要“尽量以const,enum,inline”替换#define]]></title><link>https://blog.csdn.net/sugar_master/article/details/116566155</link><guid>https://blog.csdn.net/sugar_master/article/details/116566155</guid><author>sugar_master</author><pubDate>Sun, 09 May 2021 16:10:34 +0800</pubDate><description><![CDATA[Markdown将文本转换为 HTML。

]]></description><category></category></item><item><title><![CDATA[ECMAScript语法变量及数据类型]]></title><link>https://blog.csdn.net/sugar_master/article/details/116520791</link><guid>https://blog.csdn.net/sugar_master/article/details/116520791</guid><author>sugar_master</author><pubDate>Sat, 08 May 2021 11:35:11 +0800</pubDate><description><![CDATA[var
var 操作符定义的变量将成为定义该变量的作用域中的局部变量,即变量在函数退出后会立即销毁。
省略var后，会将其定义为全局变量不推荐
function test(){
	message = "hi" ; //全局变量
	}
	test();
	alert(message);	//“hi”

用一条语句定义多个变量
var message = "hi",
	found = false,
	age = 12;

数据类型

ECMAScript有5中基本数据类型：Undefined、Null、Bool]]></description><category></category></item><item><title><![CDATA[＜script＞元素]]></title><link>https://blog.csdn.net/sugar_master/article/details/116518340</link><guid>https://blog.csdn.net/sugar_master/article/details/116518340</guid><author>sugar_master</author><pubDate>Sat, 08 May 2021 10:59:05 +0800</pubDate><description><![CDATA[向html页面中插入JavaScript的主要方法，就是使用*&lt;script&gt;*元素.

HTML4.01 为其定义了6个属性：

async:可选。表示应该立即下载脚本,但不应妨碍页面中的其他操作，比如下载其他资源或等待加载其他脚本。只对外部脚本文件有效。
charset:可选。表示通过src属性指定的代码的字符集。很少使用。
defer:可选。表示脚本可以延迟到文档完全被解析和显示之后在执行。只对外部脚本文件有效。
src:可选。表示包含要执行代码的外部文件。
type:text/java.]]></description><category></category></item><item><title><![CDATA[面试常见问题]]></title><link>https://blog.csdn.net/sugar_master/article/details/116465047</link><guid>https://blog.csdn.net/sugar_master/article/details/116465047</guid><author>sugar_master</author><pubDate>Thu, 06 May 2021 22:46:28 +0800</pubDate><description><![CDATA[一、自我介绍
二、在校期间个人情况回顾（为什么选这个学校和专业就读），在校期间学习成绩怎么样，最喜欢哪门课和最不喜欢哪门课
三、平时从事哪些课外活动呢，你从中学到了什么
四、你觉得在学校期间，最大的收获是什么
五、请你简单介绍一下你的实习经历，哪一段对你的影响最大，为什么
六、在过去的一年中，你遇到的最大的挑战是什么？是如何解决的
七、在过去的经历或者说过去一年中，你觉得自己做的最有成就感的一件事情是什么
八、在过去的几年中，你经历过的最大的一次挫折是什么
九、能不能简单介绍一下你的家庭情况，或者谈一谈家庭]]></description><category></category></item><item><title><![CDATA[中文字号——英文字号——像素值]]></title><link>https://blog.csdn.net/sugar_master/article/details/116463784</link><guid>https://blog.csdn.net/sugar_master/article/details/116463784</guid><author>sugar_master</author><pubDate>Thu, 06 May 2021 22:03:39 +0800</pubDate><description><![CDATA[中文字号1
英文字号/磅2
像素值/px[^3]




八号
5磅
6px


七号
5.5磅
7px


小六
6.5磅
8px


六号
7.5磅
10px


小五
9.5磅
12px


五号
10.5磅
14px


小四
12磅
16px


四号
14磅
18px


小三
15磅
20px


三号
16磅
21px


小二
18磅
24px


二号
22磅
29px


小一
24磅
32px


一号
26磅
34px


小初
36磅
48px


初号
42磅
56px...]]></description><category></category></item><item><title><![CDATA[基本内置类型]]></title><link>https://blog.csdn.net/sugar_master/article/details/116461594</link><guid>https://blog.csdn.net/sugar_master/article/details/116461594</guid><author>sugar_master</author><pubDate>Thu, 06 May 2021 20:29:12 +0800</pubDate><description><![CDATA[C++算术类型1




类型
含义
最小存储空间2




bool
布尔型
—


char
字符型
8位


wchar_t
宽字符型
16位


short
短整型
16位


int
整型
16位


long
长整形
32位


float
单精度浮点型
6位有效数字


double
双精度浮点型
10位有效数字


long double
扩展精度浮点型
10位有效数字


整型
定义:表示整数、字符和布尔值的算术类型合称为整形（integral type）。
字符型有两种：char和wch]]></description><category></category></item><item><title><![CDATA[C++标准库（部分）]]></title><link>https://blog.csdn.net/sugar_master/article/details/116457691</link><guid>https://blog.csdn.net/sugar_master/article/details/116457691</guid><author>sugar_master</author><pubDate>Thu, 06 May 2021 17:02:29 +0800</pubDate><description><![CDATA[标准库名字和头文件1




名字
头文件
名字
头文件




vector
&lt;vector&gt;
string
&lt;string&gt;


cin
&lt;iostream&gt;
cout
&lt;iostream&gt;





后续持续添加 ↩︎




]]></description><category></category></item><item><title><![CDATA[标准库vector类型]]></title><link>https://blog.csdn.net/sugar_master/article/details/116451767</link><guid>https://blog.csdn.net/sugar_master/article/details/116451767</guid><author>sugar_master</author><pubDate>Thu, 06 May 2021 14:45:53 +0800</pubDate><description><![CDATA[标准库vector类型摘要声明vector对象的定义和初始化创建确定元素的个数值初始化vector对象的操作vector对象的size向vector添加元素vector下标操作
摘要
vector是同一种类型的对象的集合，每个对象都有一个对应的整数索引值。
我们把vector成为容器，是因为它可以包含其他对象。一个容器中的所有对象都闭学式同一种类型的。
vector是一个类模板（class template），使用它可以定义保存string对象的vector，或保存int值的vector，又或是保存自定义的]]></description><category></category></item><item><title><![CDATA[Fortan占位]]></title><link>https://blog.csdn.net/sugar_master/article/details/116431135</link><guid>https://blog.csdn.net/sugar_master/article/details/116431135</guid><author>sugar_master</author><pubDate>Wed, 05 May 2021 21:54:44 +0800</pubDate><description><![CDATA[Fortan记录




代码
含义




.GE.
大于


.GE.
大于等于


.IT.
小于


.IE.
小于等于


.EQ.
等于


.NE.
不等于



]]></description><category></category></item></channel></rss>