Questions tagged as 'c'

1
answer

printing memory garbage

This program should load words from a txt file into a vector, draw 10 words, place them in vector and then print on the screen. The problem is that it is printing memory garbage and I do not know how to solve this problem. How to solve...
asked by 23.06.2017 / 13:38
1
answer

How to replace a middle character of a string and change it by two characters?

For example, Char s1 [ ] = "azul"; Char S2 [ ] = "z"; Char S3 [ ] = "PP"; Puts(s1); //azul Code to replace ... Expected result: Puts(s1); //aPPul Note: I have been able to do this by changing 1 character by another, but by 1 by 2...
asked by 18.06.2017 / 21:40
1
answer

Create a recursive function in C that returns the largest and smallest values of a vector

Well, how can I resolve this exercise? 1- In the first line the user has to enter the size of the vector 2- In the second line, the user fills with integers 3 - make a recursive function that receives by reference the variables of greater and...
asked by 06.06.2017 / 04:39
2
answers

How to use argc and argv in a windows terminal?

I'm creating a stack for valid expression checking, but it should be used in this int main( int argc, char **argv ) for input. I compiled and did not give any error, however I can not create an executable file through the prompt. And I al...
asked by 13.07.2017 / 14:46
1
answer

C Parking Administrator

How do I calculate the totals of the car park values as stated below: Make a C program to help manage a parking lot For this procedure the following was reported: For each car you should be informed of the license plate, the number of hou...
asked by 08.06.2017 / 00:17
1
answer

Warnings when compiling the program

In the code below, I need to create a structure for Point (Coordinate x and y) and create a function that creates those points using pointers. The structure was made as follows: typedef struct //Estrutura definida para os pontos. { double...
asked by 30.05.2017 / 18:40
2
answers

C / C ++ library for manipulating images

I would like to know which library to use, which is easy to install for both Windows and Linux, to manipulate images (of type png, jpg, etc) in C / C ++? I would like to open and save it in an array to be able to work with this data as well a...
asked by 07.07.2017 / 20:48
3
answers

Vector without repeated numbers in C

How do I load a vector, let the user enter all values, which can not have repeated numbers? For example, a vector of 20 positions that asks the user to enter each value, and, when reporting a value equal to any previous one, a message would a...
asked by 11.05.2017 / 03:18
1
answer

Programming in Ubuntu, problem IDE

Good afternoon, I'm migrating to ubuntu and looking for a good IDE with visual clean, here I find the "Builder" and when trying to use the program two errors are displayed but fortunately one already solved. The error that persists is as follows...
asked by 03.06.2017 / 20:13
1
answer

Compress array with equal values C

The problem consists of the following: Make an algorithm that reads vector A [10]. Then, remove the elements in duplicate by compressing vector A. Finally enter the value zero in the last elements. Show vector A updated. But finally it does n...
asked by 05.06.2017 / 02:03