摘要: Input and output with files C++ provides the following classes to perform output and input of characters to/from files: ofstream: Stream class to writ 阅读全文
posted @ 2020-10-06 21:10 leaguecn 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Class Classes are an expanded concept of data structures: like data structures, they can contain data members, but they can also contain functions as 阅读全文
posted @ 2020-10-04 07:47 leaguecn 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Dynamic memory In the programs seen in previous chapters, all memory needs were determined before program execution by defining the variables needed. 阅读全文
posted @ 2020-09-23 21:51 leaguecn 阅读(227) 评论(0) 推荐(0) 编辑
摘要: Character sequences The string class has been briefly introduced in an earlier chapter. It is a very powerful class to handle and manipulate strings o 阅读全文
posted @ 2020-09-18 00:28 leaguecn 阅读(169) 评论(0) 推荐(0) 编辑
摘要: C++的函数一般是由返回类型,参数和语句组合而成;模板的出现是为了决解同样的操作在不同类型数据之间具有通用性。 Functions Functions allow to structure programs in segments of code to perform individual task 阅读全文
posted @ 2020-09-13 21:40 leaguecn 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 这是一个github静态网页的备份,原地址。 Tools Hub Pro Tools 1. Android Tools supersu xposed twrp apktool baksmali/smali LineageOS(CN-CAS) LineageOS(CN-TH)full Android 阅读全文
posted @ 2020-09-12 00:59 leaguecn 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Basic Input/Output The example programs of the previous sections provided little interaction with the user, if any at all. They simply printed simple 阅读全文
posted @ 2020-09-10 23:10 leaguecn 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Constants Constants are expressions with a fixed value. Literals Literals are the most obvious kind of constants. They are used to express particular 阅读全文
posted @ 2020-09-06 17:53 leaguecn 阅读(223) 评论(0) 推荐(0) 编辑
摘要: C的程序结构与变量类型笔记,全文摘录自C++; 本文分为2个部分,第一部分是程序结构的介绍,主要是介绍C的程序结构由头文件,主函数,基本语句,注释等组成,使用命名空间可以节省代码量,提升代码的简洁,提高可读性; 第二部分是变量类型,主要介绍了C的变量及变量的数据类型。 以前没有深入了解C认为赋值就= 阅读全文
posted @ 2020-09-04 00:27 leaguecn 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 刚开始学C的时候,老师推荐的是VC,然后在同学中听闻到Dev C,再后来开始接触linux系统,知道了g和clang。现在看到网站上的文章,突然感到了一种所有编译器都铺面而来的感觉。个人觉得初学者,不太懂编程的还是用IDE好很多,按钮就能编译,喜欢闹腾的同学可以尝试用linux环境中的g,如果嫌li 阅读全文
posted @ 2020-08-31 21:20 leaguecn 阅读(442) 评论(0) 推荐(0) 编辑

闲来无事唱两句