Questions tagged as 'c++'

2
answers

Graph an image of a two-dimensional array

I am passing an image to a one-dimensional array. This must be passed to another two-dimensional array from which I must graph the saved image. the image has its beginning in 1078 and ends in 3078 , the problem that I have is to gra...
asked by 26.11.2016 / 20:20
3
answers

how to use the variable rand in c ++ and not repeat the number? [closed]

Help I am doing a naval battle in c ++ and I have to face the user in front of the machine and I must use the rand function to generate a random coordinate within a 10x10 matrix, what do I do so that I do not repeat the same data? / p>     
asked by 19.06.2016 / 08:13
2
answers

I need help to formulate a prime number algorithm

How is the algorithm that I have to write for a whole list of numbers save the first n ° cousin entered?     
asked by 21.05.2017 / 19:20
2
answers

Split string c ++. (split) [duplicate]

Good morning community. How to split a string? Suppose that: string cadena = "abc#123#faker"; The procedure would be that when you get a "#" assign to the resulting string. What I want to be able to do is save in another array s...
asked by 20.04.2017 / 05:02
1
answer

when one handles pointers does the information double?

When you manage pointers, is the information duplicated or is there some way to create something like hyperlinks? for example: struct Ciudad{ //datos ciudad } struct persona{ Ciudad ciudadOrigen; //otros datos }; H...
asked by 20.08.2018 / 05:39
1
answer

Doubt about the pipe (p) command and access to p

I am currently working on a project based on multi-tasking. What I do is create a child process with the fork () command and in this process use the execl command to start an executable. The idea is that the executable can transmit information t...
asked by 03.05.2018 / 19:57
1
answer

Timer while the program is running in C ++ Using Threads? [closed]

I turn to StackOverflow, because I can not find explanatory material about the programming of Threads in C ++ . The fact is that I'm doing a game and I need to show the player a timer in a part of the screen as the user is playing, so he k...
asked by 14.06.2018 / 22:20
1
answer

Placing windows on the screen with QT

I'm doing an application in C ++ using QT Creator that opens several windows at the same time. The problem is that all are placed one above the other, what is the operation that allows to place the windows in a specific part of the screen ?. Gre...
asked by 06.05.2018 / 14:22
1
answer

problem with showing vendors in c ++

Good I am working with files in c ++ and I am doing a kind of store that stores the data of vendor and product, but my problem is that when I close the program and start it again and use it as an option 2 to search for seller appears as if the...
asked by 10.11.2018 / 18:24
1
answer

(Dirent.h), List folder txt files

I want to use the dirent.h library to list all the file names of a folder (files type .txt) but that as they are being listed, they are also saved in a string type variable that is also opening it in reading mode with an ifstream. I do not know...
asked by 23.11.2017 / 23:40