Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last year.
Improve this question
No matter the weight I enter, the output is always $3.50; however, it does not make any mistake on java. Can someone tell me what's wrong with it? Thank you.
enter image description here
It's because the first condition weight > 0 is always fulfiled.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 27 days ago.
Improve this question
how to fill a dynamic array with input from the console? Im begginer
and can't understand it.
some help will make my day :|
You can realize this in several ways. Have a look on following post may it will help you..
Using scanf() in C++ programs is faster than using cin?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I did various implementations but they take a long time
Can anyone give us the best implementation?
For example, add a ten-digit number to the end of a string
I did not find a good answer on the Internet
#include <iostream>
std::string a="string";
long n=1703705707;
a.append(std::to_string(n)); //becomes "string1703705707"
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Good evening, I am playing a monopoly style game, when I fall into the cell I would change it to the visibility to be true, now the problem is when the second player rolls, I cannot tell you that if the label is true that I pay a tax
if(ui->lblPropiedadJugador->setVisible(true)){
// Instrucciones de pago
}
It shows me the following error could not convert void to boolean.
Does anyone know if I can solve it, I would appreciate it very much
The function QWidget::setVisible() returns void. You should instead use
if (!ui->lblPropiedadJugador->isHidden()).
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Can you please help me with how to check CPP files in a project for functions exceeding 'n' number of lines using Clang-Tidy?
You can use the readability-function-size check and set the LineThreshold parameter to your n value.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
if(cout<<"h"){}
this gives me an output
h
Any idea why, I have tried many variations of it and it still works.
That's because the if statement needs to evaluate the condition you give into it, plus, streams are implicitly convertible to bool.