given this structure:
struct Libro{
string nombre;
int codigo;
bool disp;
};
and this list list <Libro> libro;
I would like to know how to find a specific book by means of the code, I mean something so the user places the co...
I'm doing a small form with Qt, I insert several QPushButton buttons, but I do not have to add the header that specifies it, nor do I add anything in the .cpp or the .h, but it works perfectly. Is the library included in another? In which?
I wanted to know how you could concatenate two fixes in C ++:
For example
a = {1,2,3,4,5}
b = {6,7,8,9,10}
c = a + b
//El resultado c = {1,2,3,4,5,6,7,8,9,10}
These are the methods of my program, when I divide between 0 the error message is printed and then if they print a series of random numbers (I understand the cout of the main is not executed correctly) What is the best way to check that Do not d...
I want the data I entered in an array of 4 rows and 5 columns to be displayed in order when printing, I have only placed a line break and a tab to make it look a bit ordered, but I would like the numbers were separated from each other and closer...
I'm new to the C ++ language and I have a problem with this cycle.
#include<iostream>
using namespace std;
int main(){
int iterador=0;
while (iterador<=10){
cout<<iterador<<endl;
iterador+=1;...
Good people,
I just had an error in this fairly simple code, which I had never seen before.
#include <iostream>
#include <iomanip>
#include <string.h>
#include <stdio.h>
const int tam = 10;
using namespace std;
stru...
I would like to know if someone could explain two things to me, the first one to make a ship that moves alone until an x coordinate, and, the second as I can do to control the speed of the ship, my programming teacher told me to use some time, b...
I am programming a listener (Observer) in C ++ version 11 and if I do a new project I do not have problems doing some simple classes. But when I incorporate these classes into my main project, it gives me some errors that I do not know how to so...
I'm doing a wrapper in C ++ for a C library ( libuv , in case there is curiosity).
To keep the code as portable as possible, I am using pointers at the original struct .
Each type of struct has its own initialization fun...