08 2021 档案
摘要:##C中的字符串相等 ###string: #####1.通过== C中的string类对操作符==实现了重载,可用来判断两字符串的内容是否相等 #####2.通过stdstringcompare 定义: int compare (const string& comparing_str) const
阅读全文
摘要:####定义 template <class RandomAccessIterator, class Compare> void sort (RandomAccessIterator first, RandomAccessIterator last, Compare comp); ####作用: S
阅读全文
摘要:####定义: void push_back (const value_type& val); ####作用: Add element at the end Adds a new element at the end of the vector, after its current last ele
阅读全文
摘要:使用场景 Comparable: 是interface,一般通过implements重写compareTo()方法,是自身与参数的比较 在比较时不再需要comparator javaDoc: int compareTo(T o) Compares this object with the spec
阅读全文

浙公网安备 33010602011771号