<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Serena4的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/Serena4</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; Serena4]]></copyright><item><title><![CDATA[[转载]C++ STL: map自定义键值类型]]></title><link>https://blog.youkuaiyun.com/Serena4/article/details/125603379</link><guid>https://blog.youkuaiyun.com/Serena4/article/details/125603379</guid><author>Serena4</author><pubDate>Mon, 04 Jul 2022 16:49:47 +0800</pubDate><description><![CDATA[C++ STL: map自定义键值类型]]></description><category></category></item><item><title><![CDATA[【转载】C++ STL：unordered_map 自定义键值类型]]></title><link>https://blog.youkuaiyun.com/Serena4/article/details/125602357</link><guid>https://blog.youkuaiyun.com/Serena4/article/details/125602357</guid><author>Serena4</author><pubDate>Mon, 04 Jul 2022 16:12:19 +0800</pubDate><description><![CDATA[C++ STL：unordered_map 自定义键值类型]]></description><category></category></item><item><title><![CDATA[Linux下编程获取本地IP地址的常见方法]]></title><link>https://blog.youkuaiyun.com/Serena4/article/details/120482561</link><guid>https://blog.youkuaiyun.com/Serena4/article/details/120482561</guid><author>Serena4</author><pubDate>Sun, 26 Sep 2021 10:01:34 +0800</pubDate><description><![CDATA[在进行Linux网络编程时，常常用到本机IP地址。本文罗列一下常见方法，以备不时之需。
linux获取本机IP地址，是一个至关灵活的操做，缘由是网络地址的设置很是灵活并且都是容许用户进行个性化设置的。好比一台计算机上能够有多块物理网卡或者虚拟网卡，一个网卡上能够绑定多个IP地址，用户能够为网卡设置别名，能够重命名网卡。用户计算机所在网络拓扑结构未知，主机名设置是一个可选项，而且一样能够为一个计算机绑定多个主机名等，这些信息都会有影响。脱离了网络链接，单独的网络地址没有任何意义。编程中遇到必须获取计算机IP的]]></description><category></category></item><item><title><![CDATA[c++中ifstream一次读取整个文件]]></title><link>https://blog.youkuaiyun.com/Serena4/article/details/120482094</link><guid>https://blog.youkuaiyun.com/Serena4/article/details/120482094</guid><author>Serena4</author><pubDate>Sun, 26 Sep 2021 09:38:46 +0800</pubDate><description><![CDATA[读取至char*的情况

std::ifstream t;
int length;
t.open("file.txt");      // open input file
t.seekg(0, std::ios::end);    // go to the end
length = t.tellg();           // report location (this is the length)
t.seekg(0, std::ios::beg);    // go back to the begi.]]></description><category></category></item><item><title><![CDATA[makefile简介]]></title><link>https://blog.youkuaiyun.com/Serena4/article/details/110199251</link><guid>https://blog.youkuaiyun.com/Serena4/article/details/110199251</guid><author>Serena4</author><pubDate>Thu, 26 Nov 2020 18:47:28 +0800</pubDate><description><![CDATA[makefile
一、什么是makefile?
make命令执行时，需要一个makefile文件，以告诉make命令需要怎么样的去编译和链接程序。makefile定义了一系列的规则来指定，哪些文件需要先编译，哪些文件需要后编译，哪些文件需要重新编译。
二、为什么需要makefile？
如果不用 makefile，每次编译、链接都需要手动敲的很多命令。当工程量很大时，编译整个工程需要花很久。而且我们并不是每次都修改了所有源文件，因此希望程序自动编译那些被修改的源码，而没被修改的部分不要浪费时间重新编译。mak]]></description><category></category></item></channel></rss>