operator tag

28 questions


1 answers
126 views
0
I assigned an array with new, but the last value of the array cannot be entered.

#include <iostream> using namespace std ; class Matrix { int** values; int row, column; public: Matrix(int row = 0, int column = 0) { this->row = row; this->column = column ; } Matrix ...


1 answers
98 views
0
What's the difference between new and parentheses?

When you create an instance of the Test class that I define.What's the difference between the two?Is there a difference?


1 answers
76 views
0
Can I use "delete this"?

Can I write delete this; when I delete an instance of the class I created with new at the end?Write it like this. void doStuff(){ // This object is a working module // When you want to switch to anoth...


1 answers
114 views
0
In what order does i = (i, ++i, 1) + 1; run?

#include <stdio.h>int main(void) { int i = 5; i = (i, ++i, 1) + 1; printf(%d\n, i); return 0;}I'm Newbie who is studying about the Undefined Behavior.I was experimenting with this and that with ...


1 answers
124 views
0
What's the difference between taking a dot (.) and doing ->?

What is the difference between pointing a dot on an object (.) and doing -> in C++?I hate pointers.

2 years ago

1 answers
72 views
0
C++ Logical Operations Questions

#include <iostream>using namespace std;int main(){ char id[6] = apple; if (id == apple) { cout << True; } else { cout << False; } return 0;}== among operators is an operator that c...


1 answers
119 views
0
c++ Repeating Statement

#include <iostream>using namespace std;int main(){ const int N=3; int i,j; for(i=0; i < N; i++){ for(j=i; j < N; j++){ cout << i << << j << endl; } }}When you go ...

2 years ago

1 answers
69 views
0
c Language operator questions

include<stdio.h>int main(void){a=63, b=1, c=11, d=8, e=28;d %= c += 5 - d--;printf(%d %d %d %d %d, a,b,c,d,e);return 0;}Why does the value of d come to -1 when you turn the code to?When calculat...

2 years ago
« - 3 -

© 2024 OneMinuteCode. All rights reserved.