Questions tagged as 'c++'

1
answer

Difference threads.p and windows.h

Searching the internet I have seen in many tutorials that the threads.h library is used to create threads in windows, but in others they use the header windows.h directly. Which of the two should you use to create a thread? From what I've seen,...
asked by 21.06.2017 / 04:39
2
answers

Algorithm of ages of N students, obtain average and only show the student who is older than the average obtained

I just need to show the student's older age based on the average obtained #include<stdio.h> #include<iostream> using namespace std; int main() { int n, edad; cout<<"Ingresa la cantidad de alumnos: "; cin>>...
asked by 25.06.2017 / 06:31
2
answers

Problem with if and &&

Good morning! I'm doing an exercise that I found: Write a program in C ++, that determines the energy efficiency of a Thermoelectric, considering its consumption in general in 10000 kW. If your intake is between 80% and 100% kW, display...
asked by 25.06.2017 / 08:00
1
answer

Differences between C ++ and c ++ / cli

I am trying to make a windows form, and searching the web, I have seen that it is the c ++ / cli language, but I do not understand very well what this means. As I understand, it is a modification of c ++ by Windows, but I do not find any relatio...
asked by 07.07.2017 / 00:28
3
answers

Help with multiplication table in c ++

I need to create a multiplication table with a matrix in such a way that it looks like this: But I can not make the table of 0 appear, this is my progress: #include <iostream> using namespace std; main() { short A[12][12...
asked by 13.07.2017 / 16:36
1
answer

Error in getline syntax (cin, vectoralumno [e] .name);

I throw compilation error in the following code. #include <iostream> #include <windows.h> #include <string> #include <sstream> #include <stdio.h> #include <conio.h> #define TOTAL 1000 using namespace std;...
asked by 25.05.2017 / 23:25
1
answer

Problem using cv :: Imread

I am writing a code to read all the images in a folder and then write the information of the images in a binary all together. The problem is that when I use the function cv::imread the field .data of the cv::MAT always remains null...
asked by 16.05.2017 / 13:37
1
answer

Problem when initializing a vector within a class

Good morning, I have a problem when starting a vector. This starts when I call the Species function of the class. In principle it is created well, but when I try to use it, it tells me that it has size 0. This is the class: #include "Especi...
asked by 15.05.2017 / 18:05
1
answer

Error class vector_t C ++

I have to make a binary search code in a file, however, it is giving me an error in the class vector_t that I use to create a vector in which I have to search for a number. This is the code where I do the binary search in a separate fi...
asked by 28.04.2017 / 17:32
1
answer

Doubt about operator in c ++

I'm starting to work with bmp images in c ++ and there is some operator that I can not understand how it works, basically these are: string str string #include <cstdio> #include <cstring> void ocultar(BMP & bmp, char * str){...
asked by 11.05.2017 / 12:50