Sesiones de PyR
Cin/cout/cerr
0 Votos
1 Respuestac++
1 Voto
3 RespuestasHelp
0 Votos
3 RespuestasNo output in my code???
0 Votos
3 RespuestasIf-else problem
1 Voto
6 RespuestasExecution time
1 Voto
1 RespuestaC++ Question
3 Votos
3 RespuestasTimer?
1 Voto
1 RespuestaC++ Question
3 Votos
1 RespuestaWhat is wrong with this
0 Votos
2 RespuestasHow can declare a word?
0 Votos
2 RespuestasWhat's wrong?!
2 Votos
3 RespuestasPost- cin Text?
0 Votos
3 RespuestasIn the code below the output is 2. This code is used in a challenge and I get an error when I select the answer 2. It accepts as correct the answer 1 which I believe is wrong. If you agree please thumbs up.
If you find any other errors please post them here!
#include <iostream>
using namespace std;
int main()
{
for(int i=1; i>=1; i++) {
if(i<1 || i>1){
cout << i;
break;
}
}
return 0;
}
8 Votos
8 RespuestasC++ help
-1 Voto
2 Respuestascan anyone plz explain me this program step by step?#include <iostream>
using namespace std;
class MyClass {
public:
int var;
MyClass() { }
MyClass(int a)
: var(a) { }
MyClass operator+(MyClass &obj) {
MyClass res;
res.var= this->var+obj.var;
return res;
}
};
int main() {
MyClass obj1(12), obj2(55);
MyClass res = obj1+obj2;
cout << res.var;
}I am not getting the part inside operator+
0 Votos
8 RespuestasWhy it doesn't work?!
2 Votos
5 RespuestasEn tendencia hoy
New code
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
2 Votes
📝CHALLENGE [ EASY ]👀: Python
1 Votes