Good evening. I'm thinking about the vector library and one of the utilities that I see is great is that you can create a vector that is a variable
Example:
int main()
{
int a=5;
vector<double> vec(a,0);
}
That would be equivalent...
I have this code
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <cstring>
using namespace std;
int i, Num1;
int main()
{int Columna;
int ValorIngresado;
int FilaA [9],a;
for (a=0;a<9;a++...
In this program I have to enter 2 whole numbers a and b and the program should display on the screen the numbers harshad (numbers that are divisible by the sum of their numbers) between a and b. A and b must be positive, and b greater than a....
I have a question about how to connect a QLabel in a QDialog .
The idea is to be able to open a QDialog before running the program.
I leave part of the code:
QDialog jjj;
QLabel *logojjj;
logojjj->setPixmap(QPi...
In the HUD of my game I show the time ( tipo: float ), but I need it to be mm:ss , that is, 2 decimal places after the comma.
float timeReal = 12.342334;
float timeRedondeado = ...
How can I save it with 2 decimals?
I have something very simple in C ++ (trying to remember it) a library that I call element.h:
using namespace std;
typedef struct elemento{
int clave;
string nombre;
string apellido;
struct elemento *prox;
}Element...
It's a problem with the pointers.
Here I have a program that gives "high" soccer players, asks the name of the coach, and then asks you to fill some fields about the information of your players.
The problem is that the program stops working w...
I have a small problem with the Taylor series. To be exact with the natural logarithm. For what I realized, is because the divisor grows brutally and the word script does not give me more, I've tried with data types long long but even s...