<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ytasdfg的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ytasdfg</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ytasdfg]]></copyright><item><title><![CDATA[C++ primer第7章]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/121893421</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/121893421</guid><author>ytasdfg</author><pubDate>Sun, 12 Dec 2021 22:43:38 +0800</pubDate><description><![CDATA[一、函数原型

    函数原型作用：描述函数的输入参数及类型、输出类型以及名称，并将其告诉编译器。

    为什么编译器需要函数原型呢

第一：效率不高。如果没有函数原型只有函数定义，编译器在编译main函数碰到调用函数的位置时，需要搜索文件找到文件定义的地方，main的编译也会停止。

    第二：函数有可能不在main()所在文件中。C++允许将一个程序放在多个文件中，单独编译这些文件，再将它们组合起来。这种情况下，如果该函数未在main()所在的文件中定...]]></description><category></category></item><item><title><![CDATA[C++ primer plus 第四章]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/121892472</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/121892472</guid><author>ytasdfg</author><pubDate>Sun, 12 Dec 2021 20:43:08 +0800</pubDate><description><![CDATA[1、数组

    typedefName arrayName[arraysize]

2、字符串

    （1）字符串的尾部为"\0"；

    （2）字符串常量其实代表字符串所在的内存地址：

const char* p = "s"是合法的；

char p ="s"是不合法的，其原因在于"s"代表了其所在地址，不是char类型的，而是char*     类型的。

    （3）strlen...]]></description><category></category></item><item><title><![CDATA[标准I/O库]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/99966953</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/99966953</guid><author>ytasdfg</author><pubDate>Wed, 21 Aug 2019 16:33:21 +0800</pubDate><description><![CDATA[一、基本操作

（1）fopen、 fdopen、 fclose

（2）getc、putc  特殊：ungetc

 fgetc、fputc

 getchar、putchar

（3）gets、puts

 fgets、fputs

（4）fwrite、fread

二、格式化

 printf、scanf、

 fprintf、...]]></description><category></category></item><item><title><![CDATA[文件目录]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/99958528</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/99958528</guid><author>ytasdfg</author><pubDate>Wed, 21 Aug 2019 14:23:01 +0800</pubDate><description><![CDATA[一、文件

基本函数：stat、lstat、fstat

结构：

struct stat {

        mode_t st_mode -------------------文件类型：如S_ISREG()等        权限位：S_IRUSR等

           ino_t...]]></description><category></category></item><item><title><![CDATA[文件IO]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/99957337</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/99957337</guid><author>ytasdfg</author><pubDate>Wed, 21 Aug 2019 14:06:00 +0800</pubDate><description><![CDATA[一、基本操作

文件的打开读写关闭

（1）open函数 注意：O_SYNC、O_DSYNC

（2) write函数

（3）read函数

（4）close函数

二、其他函数

（1）dup ------------------ 文件共享 --三个表项

（2）lseek ------------------O_APPEND 原子操作

（3）sync、fsyn...]]></description><category></category></item><item><title><![CDATA[JAVA字符流]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81482840</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81482840</guid><author>ytasdfg</author><pubDate>Tue, 07 Aug 2018 23:07:47 +0800</pubDate><description><![CDATA[ 

一、编码与解码

 String(byte[] bytes, String charsetName):通过指定的字符集解码字节数组
 byte[] getBytes(String charsetName):使用指定的字符集合把字符串编码为字节数组

如下：

String s = &quot;你好&quot;    byte[] bys = s.getBytes();   byte[] bys = s.getB...]]></description><category></category></item><item><title><![CDATA[JAVA 字节流]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81457064</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81457064</guid><author>ytasdfg</author><pubDate>Tue, 07 Aug 2018 14:05:47 +0800</pubDate><description><![CDATA[一、FileOutputStream

该流用于写文件。

构造方法FileOutputStream(File file) 
              FileOutputStream(String name)

如：FileOutputStream fos = new FileOutputStream(&quot;fos.txt&quot;);

注：如果第二个参数为 true，即FileOutputStream...]]></description><category></category></item><item><title><![CDATA[JAVA FILE类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81454480</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81454480</guid><author>ytasdfg</author><pubDate>Mon, 06 Aug 2018 15:12:37 +0800</pubDate><description><![CDATA[一、构造方法

File(String pathname)：根据一个路径得到File对象
File(String parent, String child):根据一个目录和一个子文件/目录得到File对象
File(File parent, String child):根据一个父File对象和一个子文件/目录得到File对象

二、创建功能

public boolean createNewFil...]]></description><category></category></item><item><title><![CDATA[java异常处理]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81436385</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81436385</guid><author>ytasdfg</author><pubDate>Mon, 06 Aug 2018 12:05:45 +0800</pubDate><description><![CDATA[一、异常分类

严重问题：Error 。这种问题一般都是很严重的，比如说内存溢出。不处理。

问题：Exception

         编译期问题:不是RuntimeException的异常 必须进行处理的，因为你不处理，编译就不能通过。

         运行期问题:RuntimeException  需要修正代码的。

二、异常的处理

1、try...catch...finally 
...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（十二）Calendar类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81086118</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81086118</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 22:11:30 +0800</pubDate><description><![CDATA[Calendar类

Calendar:它为特定瞬间与一组诸如 YEAR、MONTH、DAY_OF_MONTH、HOUR 等日历字段之间的转换提供了一些方法，并为操作日历字段（例如获得下星期的日期）提供了一些方法。

一、构造方法

protected Calendar() :由于修饰符是protected，所以无法直接创建该对象。需要通过别的途径生成该对象。

二、成员方法

Calendar类...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（十一）Date类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81083260</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81083260</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 16:54:28 +0800</pubDate><description><![CDATA[Date类

一、构造方法

public Date()  根据当前的默认毫秒值创建对象。

public Date(long date) 根据给定的毫秒值创建对象。

二、成员方法

public long getTime():获取时间，以毫秒为单位。

public void setTime():设置时间，以毫秒为单位。

三、Date与String类互相转换

DateFormat:可以进行...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（十）BigInteger类与BigDecimal类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81082792</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81082792</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 16:04:02 +0800</pubDate><description><![CDATA[BigInteger类

BigInteger:可以让超过Integer范围内的数据进行运算
构造方法：BigInteger(String val) 

方法：

public BigInteger add(BigInteger val):加
public BigInteger subtract(BigInteger val):减
public BigInteger multiply(BigInt...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（九）System类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81082435</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81082435</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 15:41:48 +0800</pubDate><description><![CDATA[System类

类方法：

public static void gc()：运行垃圾回收器。

public static void exit(int status):终止当前正在运行的 Java 虚拟机。参数用作状态码；根据惯例，非 0 的状态码表示异常终止。

public static long currentTimeMillis():返回以毫秒为单位的当前时间，前后加时间获得运行时间。
...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（八）Random类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81081735</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81081735</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 15:26:04 +0800</pubDate><description><![CDATA[Random类

Random类是用于生成随机数的一个类。

一、构造方法

 public Random():没有给种子，用的是默认种子，是当前时间的毫秒值

 public Random(long seed):给出指定的种子

注：所谓种子就是一个long型的数。如果两个种子相等，则它们生成的随机数也完全相等。

二、成员方法

以int型数据为例，其他数据类型也是如此。

public in...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（七） Math类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81081554</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81081554</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 15:10:56 +0800</pubDate><description><![CDATA[Math类

math类是用于数学计算的类。在使用是直接math.方法或math.静态变量来使用，不需要创建对象。

一、静态变量

static double E      比其他任何一个都更接近 e ，自然对数的基数。

static double PI     比任何其他的更接近 pi ，圆周长与其直径的比率。

二、常用方法

public static int abs(int a)：绝对...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（六）Character类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81080488</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81080488</guid><author>ytasdfg</author><pubDate>Tue, 17 Jul 2018 14:46:27 +0800</pubDate><description><![CDATA[Character类

Character类是char类型的包装类，它是对一个字符类型的变量进行操作。其实可以看成是对字符进行操作的一个工具类。

一、构造方法

public Character(char value)      构造一个新分配的Character对象，代表指定的char值。

二、常用方法

1、public static boolean isDigit()/isLetter ...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（五) Integer类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81047315</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81047315</guid><author>ytasdfg</author><pubDate>Sat, 14 Jul 2018 21:50:02 +0800</pubDate><description><![CDATA[Integer类一、构造函数(1) public Integer(int value)   (2) public Integer(String s) 注意：s必须得是数字字符。二、Integer类方法public static String toBinaryString(int i)                             返回二进制                        ...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（四)   StringBuffer类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81046725</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81046725</guid><author>ytasdfg</author><pubDate>Sat, 14 Jul 2018 20:27:47 +0800</pubDate><description><![CDATA[StringBuffer类StringBuffer类不像String类不可修改，它是可以修改的。所以它比String类多了很多方法，例如添加删除之类的。一、构造方法（1）public StringBuffer () 空构造（2）public StringBuffer(int capacity) 指定容量的字符串缓冲区对象（3）public StringBuffer(String str) 指定字符...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（三) String类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81046102</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81046102</guid><author>ytasdfg</author><pubDate>Sat, 14 Jul 2018 19:33:56 +0800</pubDate><description><![CDATA[String类一、构造方法主要构造方法如下：（1）public String（）空构造。（2）public String(byte[] bytes) 字节数组转字符串。一个字节换算成十进制后按照ASCII码对应一个字符。（3）public String(byte[] bytes,int index,int length) 从index开始的length长度的字节数组转换为字符串。（4）public...]]></description><category></category></item><item><title><![CDATA[JAVA常见类（二) Scanner类]]></title><link>https://blog.youkuaiyun.com/ytasdfg/article/details/81044624</link><guid>https://blog.youkuaiyun.com/ytasdfg/article/details/81044624</guid><author>ytasdfg</author><pubDate>Sat, 14 Jul 2018 17:46:19 +0800</pubDate><description><![CDATA[Scanner类Scanner主要用于获取键盘输入的内容。1、构造方法Scanner类有很多种构造方法，一般用于输入的话则是Scanner(InputStream source)，所需参数为InputStream，如果想获取键盘输入的内容，则需要选择System类的静态成员变量：System.in。它的描述是“标准”输入流，是一个InputStream类型的变量。格式如下：Scanner sc=n...]]></description><category></category></item></channel></rss>