上一页 1 ··· 22 23 24 25 26
摘要: class Complex { double real; double imag; public: friend istream& operator>>(istream& is, Complex& c); friend ostream& operator <<(ostream& os, const 阅读全文
posted @ 2023-04-18 20:12 aallofitisst 阅读(25) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; class Counter { friend Counter& operator +(const Counter& a, const Counter& b); int num; public: Counter() { n 阅读全文
posted @ 2023-04-17 21:47 aallofitisst 阅读(25) 评论(0) 推荐(0)
摘要: include<iostream> #include<fstream> using namespace std; #include<string> void test01() { string l; ofstream a; a.open("test.txt", ios::out); /*getlin 阅读全文
posted @ 2023-04-16 16:44 aallofitisst 阅读(10) 评论(0) 推荐(0)
摘要: 编写一个高效的算法来判断 m x n 矩阵中,是否存在一个目标值。该矩阵具有如下特性: 每行中的整数从左到右按升序排列。每行的第一个整数大于前一行的最后一个整数。 示例 1: 输入:matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 阅读全文
posted @ 2023-04-12 17:22 aallofitisst 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26