-
-
2
-
1#include <iostream> #include <string> using namespace std; class person{ friend ostream & operator<<(ostream &cout,person &p); public: person(){ ma=0; } //int是占位符,可以区分前置与后置 person operator++(int){ person tp = *this; ma++; return tp; }//重载后置++运算符 private: int ma; }; ostream & operator<<(ostream &cout,person &p){ cout << p; return cout; } void test(){ person p; cout << p++ << endl; cout << p << endl; } int main(){ test(); system("pause"); return 0; }
-
25
-
9
-
0解决一下难题
-
0吧友们想问问c++网课谁讲的好啊,老师说卷面考不到60分会直接不让过的
-
0看别人的代码遇到的疑惑,列出来相关的部分,求大佬解答 这是PIDController这个类的构造函数 PIDController::PIDController(float P, float I, float D, float ramp, float limit) : P(P), I(I), D(D), output_ramp(ramp), limit(limit) { } 其中 P,I,D,output_ramp,limit 都是PIDController类的成员。 但是在后面使用大括号初始化时,其中的一些语法我有些含糊。相关代码如下 PIDController angle_loop_M0 = PIDController{.P = 2, .I = 0, .D = 0, .ramp = 100000, .limit = 100}; 请问,这里是在使用大括号初始化吧?在大括号
-
0
-
43楼主22届天坑毕业生,工厂里干了一年半,不想每天在工厂里混吃等死11月裸辞转行
-
1507现在我二战跨考计算机已经没有上岸希望了 于是报名c++培训班 想记录一下学习历程 看看我六月能不能找到工作 三年或五年能做到什么程度
-
6
-
19
-
63想问下吧友们c++自学好找工作吗,还有王道的c+培训班怎么样,看了下最近的招聘感觉都不符合要求
-
0
-
5这是我写的 #include <iostream> using namespace std; #include<string> class Matrix { friend Matrix operator+(const Matrix &p1,const Matrix &p2); public: Matrix():m_Lines(0),m_Rows(0){}; Matrix(int Lines,int Rows); ~Matrix() { for(int i=0; i<m_Lines; i++) { delete[lbk][rbk] Array[lbk]i[rbk]; }delete[lbk][rbk] Array; } Matrix(const Matrix&m); void get();void put(); private:undefinedundefined }; Matrix::Matrix(int Lines,int Rows):m_Lines(Lines),m_Rows(Rows) { Array = new int*[lbk]Lines[rbk];/*行*/ for(int i=0; i<Lines; ++i) { Array[lbk]i[rbk] = new int[lbk]Rows[
-
2598哪来什么为什么,就不能水经验吗
-
18最好湖南的,可以面基,前期我可以赞助你的吃衣住行,你懂c还有汇编等这些能做ms就行,直接私我。
-
12
-
1
-
2我需要会c++ qt
-
24以前的梦想是想开发游戏,现在是想开发游戏或游戏相关的东西,比如说游戏引擎之类的。目前c++入门了才想起要不要换其他语言好点,还是说c++更好?我想先主攻一门
-
0
-
0
-
9
-
20以前学过C++,熟练掌握Java,了解汇编,有没适合的资料讲编写外挂的资料啊
-
4
-
1#include <iostream> #include <cmath> #include <iomanip> using namespace std; class CPoint2D{ private: double X; double Y; public: CPoint2D(double x = 0, double y = 0) : X(x), Y(y) {} double d(const CPoint2D& other){ return sqrt((X - other.X) * (X - other.X) + (Y - other.Y) * (Y - other.Y)); } }; class CTriangle{ private: CPoint2D p1; CPoint2D p2; CPoint2D p3; public: CTriangle(CPoint2D& p1_, CPoint2D& p2_, CPoint2D& p3_) : p1(p1_), p2(p2_), p3(p3_) {} double getC(){ double s1 = p1.d(p2); double s2 = p1.d(p3); double s3 = p2.d(p3); return s1 + s2 + s3; } double
-
0
-
2
-
9本人本科全日制计算机专业毕业,已经34岁了,做过五年的网工,现在已经辞职两年了,现在想去培训PLC和CNC,请问一下做过这方面的前辈和高手这两个行业哪个好?PLC不想一直当接线工,想往编程走,CNC也不想当个绿箭侠操机工,也想往CNC编程走,请问哪个容易入行?#PLC和CNC#
-
36各位大佬们,我想问一下,作为新手想学C++,我第一部该做什么?应该看哪些书?哪个老师教的比较好?谢谢各位大佬了
-
3想知道用VS,QT,写一个程序可以让敌对进入两个按钮,有先后顺序防止冲突的程序怎么写?比如D1和 D3怎么D1向D3跟D3向 D1先后按键顺序不同所排进路不同,求大佬帮忙🙏
-
3
-
8兄弟们,迷茫了,C++转哪个语言好些
-
0安徽阜阳或者周边附近的技术联系,远的不考虑,能面谈的私我
-
6rt
-
0在跟一个课,里面的数据结构代码全部是用模板类实现的 奈何自己cpp水平实在不够,只能指定一些简单的数据类型以测试数据结构正确性 想蹲蹲大佬们是如何测试模板数据结构的呢,或者,挨个把模板数据结构实现一遍,是否是学模板的高收益的方式呢?(因为我粗略看了下,全实现一遍的时间成本非常高,而且我现在也只是在做int类型的指定测试,所以挺迷茫的)
-
0
-
10本科是江苏一本的软件工程,硕士是澳洲新南威尔士的IT,之前有过半年实习,是3d网格图形这块的c++算法,还有一部分的ai,问一下现在有什么好的方向可以推荐,预计参加今年秋招
-
2
-
39
-
0
-
12
扫二维码下载贴吧客户端
下载贴吧APP
看高清直播、视频!
看高清直播、视频!