![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
格调的忧伤
这个作者很懒,什么都没留下…
展开
-
leecode刷题笔记
两数之和(遍历法)class Solution {public: vector<int> twoSum(vector<int>& nums, int target) { int n=nums.size(); for(int i=0;i<n-1;++i) { for(int j=i+1;j<n;++j) { if(nums[i]原创 2022-02-12 20:18:57 · 458 阅读 · 0 评论 -
Qt学习笔记
窗口 widget.cpp#include "widget.h"#include "ui_widget.h"#include <qpushbutton>#include <mypushbutton.h>#include <QtDebug>Widget::Widget(QWidget *parent) : QWidget(parent) , ui(new Ui::Widget){ ui->setupUi(this); //原创 2022-02-02 10:03:33 · 611 阅读 · 0 评论 -
带类的C语言
面向对象的程序设计和面向过程的程序设计是程序#include<iostream>#include<string>using namespace std;class Record{ private: string name; size_t byte_count; /* data */public:typedef size_t size; Record(/* args */):byte_count(0){} Record(si原创 2020-11-25 16:21:34 · 509 阅读 · 0 评论 -
C++练习笔记
//#include<iostream>//#include<string>////using namespace std;////int main()//{// string s("hello");// string name("hello");// string::size_type position = name.find("he");// if (position==string::npos)// {// cout << "error";原创 2020-09-23 22:59:11 · 99 阅读 · 0 评论 -
C++基础语法复习
#include<iostream>#include <iomanip.h>using namespace std;int main(){ char a, b; a = 'A'; b = 65; cout << "a=" << a << endl; cout << "b=" << b << endl; //////////////////////// char c1, c2, c3, c4;原创 2020-06-12 00:50:51 · 183 阅读 · 0 评论