Questions tagged as 'c++'

2
answers

Help with eclipse c ++

When I compile the example hello world that brings eclipse compiles me well but if I create it from scratch in another project I get this error 11:42:22 **** Rebuild of configuration Debug for project hello 2 **** Info: Internal Builder...
asked by 15.04.2016 / 16:48
1
answer

Errors when using static libraries in QT

Hi, I'm a bit desperate with this if someone has worked with this ide that please specify why I can not create a static version? The errors are:    Makefile: 66: recipe for target 'sub-tools-make_first' failed   mingw32-make [1]: * [sub-tool...
asked by 25.08.2016 / 20:07
1
answer

Run a file

My question is whether a file can be executed by its address (file path?). For example, I want to execute the file that is in "C: \ Program Files \ Misc \ list.txt" and that the notepad with the file will open. As if I were opening it manuall...
asked by 28.11.2018 / 06:11
1
answer

Background cairomm

I have a drawing where I paint like this: // ******** Drawing the background ********* \ // Setting the color for the background cairo_set_source_rgba(cr, 1, 1, 1, 1); // Setting a rectangle cairo_rectangle (cr, 0, 0, 200, 200); cairo_stroke_p...
asked by 15.11.2018 / 13:07
4
answers

Problem in scanning scan and storing text in C ++

This is the code of my program: #include stdio.h #include stdlib.h #include string.h int main () { string a; string help = "-h"; printf("Por favor introduzca la orden. Si desea ver la ayuda introduzca -h");...
asked by 10.06.2016 / 20:57
0
answers

How to operate the push and print a Stack with fixes?

It turns out that I want to make batteries with fixes, and I want to run the push and print, but I print it with errors. What corrections can I make? if possible, pop also want to do it, but I have no idea how to do it. Code: Pilas.h #p...
asked by 20.09.2018 / 03:06
1
answer

You doubt how to assign objects to an array of pointers, created with new

Someone could tell me how to assign objects during the code, to an array of this type. Time * pTArray=new Time[2]; I do not want to initialize, the array in the creation, that is, I do not want this: Time * pTArray=new Time[2]{Time(1,2,...
asked by 28.04.2018 / 02:12
1
answer

C ++ distance algorithms with Opencv

Hello, I have this code in c ++. Its only entry is a totally white image with a black dot of a pixel in the center ~ (300x300), the image is 600x600.png located in a folder img / The problem is that I try to make the CDA 3x3 link based o...
asked by 07.02.2018 / 17:21
0
answers

Recursivity in c ++ [closed]

I would like to know how I can create a recursive function to read the numbers from 1 to N. I have had problems creating the base code which I would think that N would be like a limit given by the user and when you compare with Number 1 that...
asked by 31.01.2018 / 01:31
2
answers

Calculate area under the curve of a function

I have a problem with my algorithm. The purpose of the program is to calculate the area under the curve of a function by means of the Riemann method. The error is in the lower sum. since at the moment of being taking out the areas of the triangl...
asked by 01.05.2018 / 00:26