Questions tagged as 'c'

1
answer

Sorting With certain condition

I asked the question Who will be disapproved? that had the rule Students would be sorted according to the number of problems solved, with draws sorted according to the alphabetical order of the names (there are no homonyms in the class), Well...
asked by 21.08.2018 / 02:56
1
answer

Check if an expression is well formed

I was trying to make a program that checks if an expression is well formed. Something of type {[()()]} is well formed whereas something of type {{())({] is not. I've implemented a "stack.c" library from which I take some func...
asked by 23.08.2018 / 22:35
1
answer

Error with Strings in C

Thephrase" ENTER THE STREET " should only appear as soon as you enter the " ENTER A NUMBER TO CONTACT" link. What must have happened? #include <string.h> #include <stdlib.h> #include <stdio.h> typedef struct aluno { char...
asked by 07.07.2018 / 15:11
1
answer

Counting sequence of numbers recursively in a matrix C

So, I have the following problem:    I need to count how many descending sequences of numbers exist in an array in a recursive way, but only a sequence is considered if it is complete to the number 1. Ex: The user informs the value that he wa...
asked by 06.07.2018 / 04:42
1
answer

code in C, url = inet_ntoa (* (struct in_addr *) ip-h_addr); I do not understand what is happening.

I was studying sockets for this material link and I came across a code that I do not understand what is going on. The code part is this: struct hostent *ip; ... // função da lib netdb.h para converter ai nosso host para IP ip = gethostbyna...
asked by 20.07.2018 / 12:31
2
answers

Image Processing? Doubt about the theme and usability

Talk, how are you? I have a question if it's the same name as the Image Processing I do not know if you have a look around there are some applications that bring such a proposal. There is a translation of words, which when placing the camer...
asked by 05.09.2018 / 01:17
2
answers

Storage of the sum of matrices in vector

This function that I created needs to calculate the sum of each column of the array and store it in a vector position. However, it is not giving the desired result, I think it can be within the third% of%. Can anyone help me with regard to...
asked by 18.06.2018 / 20:19
1
answer

Delete a record in struct using free ()

I am creating a registry using struct , where I should have a menu to include, display and answer (exclude) patients. The problem is in the delete function that because of my lack of knowledge I do not understand what the correct way to...
asked by 17.06.2018 / 02:41
1
answer

Multiplication of arrays and store in another array?

Be a function that receives three arrays of integer values A, B, and C, and two integers n and m representing the number of rows and columns of these arrays. This function must compute the multiplication of the matrices A and B and...
asked by 19.06.2018 / 20:54
1
answer

Reading and dividing files in C

I'm doing a project for college, the code already reads the files and splits the lines taking into account the ";", how can I write these tokens into variables? struct informacaoFicheiroInput{ int id; int acompanhantes; char tipo...
asked by 01.06.2018 / 21:31