D28. 学习基础C、C++语言

D28. 题目练习 这次一样是练3n+1的题目,之前是用C语言,这次用C++来写 #includeiostreamusing namespace std;int main(){ int n; cinn; while(n!=1){ if(n%2==0){ n=n/2; } else{ n=n*3+1
D29. 学习基础C、C++语言

D29. C++字串 C++ string的特别用法 str.size():字串长度。 str.empty():字串是否为空 str.length():字串的长度 assign(str, start, num):从str的第start个字元取出num个字元来指定
【Vue】params vs. query | Vue Router

params - 命名的路由,加上参数让路由建立 url 动态的参数前要加上冒号 : let router = new VueRouter({ routes:[ { // 内页 path: '/pdp/:id', name: 'product-detail-page', component
30天Python自学:Day01

#以下内容皆由初学者撰写,有错误可能,不建议尽信 30天Python自学: Day01 Python基本介绍 Python是新兴年轻程式语言,具有高可读性、多範性的特性,可与不同
OST to PST converter

This last year 2021, was great for the bitdataconversion ost to pst converter tool (software) for delivering the best solution for users to convert ost files to pst Now in 2022, we came as strong as we
Leetcode: 704. Binary Search

思路: 将index不断除以2以找到对应的值, while条件是在index保持在=0 array size 。 思路修正: 因为不断地根据寻找的边界限缩,所以index不可能超出前面说的