lnlidawei

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 48 下一页

2024年1月12日

摘要: 学习方法:知识模块 知识,是“某个问题解决方案”的思想、原理、技术、方法。每个学科,就是“一组问题的解决方案”的思想、原理、技术、方法。 模块,一个相对独立的、能够解决问题的知识的基本单位。每个学科,由若干个“模块”组成。每个学科的“模块”,叫做“知识模块”。“知识模块”,是每个学科的基本单位。 如 阅读全文
posted @ 2024-01-12 20:29 lnlidawei 阅读(67) 评论(0) 推荐(0)

摘要: [cpp]: Standard Input/Output -- <iostream> 一、基本说明 1、IO library 2、library(part): <iosfwd> 3、library(part): <ios> 4、library: <isotream> 二、参考文档 1、 input/ 阅读全文
posted @ 2024-01-12 19:01 lnlidawei 阅读(31) 评论(0) 推荐(0)

摘要: [cpp]: concept --<template> 一、说明 1、concept 定义一个‘概念’并且命名为‘C’;‘C’是一组“模板参数T”的限制条件。概念‘C’的涵义:只有满足限制条件‘C’的模板参数T,源文程序才能通过编译。 2、代码示例 1 // 定义概念“C1” 2 3 templat 阅读全文
posted @ 2024-01-12 11:18 lnlidawei 阅读(62) 评论(0) 推荐(0)

2024年1月11日

摘要: [cpp]: <fstream> - read_from_file 一、介绍 1、介绍:从文件【big.cpp】读取内容,然后将【读取内容】输出到【屏幕】。 2、主程序源文件:iotest.cpp 3、被读取的文件:big.cpp 二、源代码 1、主程序源代码:iotest.cpp 1 /* fil 阅读全文
posted @ 2024-01-11 06:08 lnlidawei 阅读(43) 评论(0) 推荐(0)

摘要: 哲学:想和做(“理论”必须作用域“实现”) 想和做。理论和实现。 想、理论,都是“思维”活动,“虚拟”行为;做、实现,都是“实践”活动,“真实”行为。虚拟行为,指“行为”没有改变客观世界;真实行为,指“行为”改变了客观世界。 理论、想,在“虚拟环境”中,构建一条在现实环境中实现目标的可行路径。理论、 阅读全文
posted @ 2024-01-11 01:43 lnlidawei 阅读(48) 评论(0) 推荐(0)

摘要: [cpp]: class/struct -- 初始化‘实例对象’ 一、说明 1、编译标准: std = c++20 2、编译语句: g++ -std=c++20 -O2 -Wall -pedantic -pthread main.cpp && ./a.out 二、class/struct(初始化‘实 阅读全文
posted @ 2024-01-11 00:47 lnlidawei 阅读(29) 评论(0) 推荐(0)

2024年1月10日

摘要: [cpp]: 获取“实例对象”--template 编程 一、代码 1 #include <iostream> 2 #include <string> 3 4 5 using namespace std; 6 7 8 class base { }; 9 10 11 class work:base { 阅读全文
posted @ 2024-01-10 04:26 lnlidawei 阅读(31) 评论(0) 推荐(0)

摘要: device: 设备模拟 -- (电脑->手机) 一、电脑浏览器(chrome)模拟手机 1、配置:选择【chrome浏览器图标】,右击鼠标,选择【“属性” -> “short cut” -> “target”】,在【target】内输入代码(代码的红色部分): [ C:\Users\Adminis 阅读全文
posted @ 2024-01-10 02:06 lnlidawei 阅读(88) 评论(0) 推荐(0)

2024年1月9日

摘要: cpp: 指针数组和数组指针 一、基本概念 1、指针数组 1.1、指针数组:指针数组是以指针为元素的数组;指针数组是一个数组;指针数组的元素是指针。 1.2、定义: int *pt[10]; // pt是数组,包含10个整型指针元素; 2、数组指针 2.1、数组指针:数组指针是指向数组的指针;数组指 阅读全文
posted @ 2024-01-09 23:05 lnlidawei 阅读(107) 评论(0) 推荐(0)

2024年1月8日

摘要: cpp: compiler -- 玩具 一、compiler 构思 1、文本读取:“编译器”,读取“源程序文本(xx.txt)”; 2、词法分析:“编译器”,将“xx.txt”分解成“字符串”; 3、语法/语义分析:“编译器”,检验“字符串”的语法规则;解析并且赋予“字符串”的语义属性; 4、翻译1 阅读全文
posted @ 2024-01-08 22:47 lnlidawei 阅读(32) 评论(0) 推荐(0)

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 48 下一页