Questions tagged as 'c'

2
answers

How to compare part of strings in C?

I only know how to compare two strings in C, but can I compare only part of a string? I wanted to develop a program that reads snippets of a complaint and based on those snippets give a suggested answer. Is it possible to read only snippets in C...
asked by 17.05.2018 / 12:11
1
answer

How do one array run inside another using functions?

I have two functions, one belongs to a 10x10 array and the other to a 3x3 array. I need to make the 3x3 array run within the 10x10 array. How do I do this? Thank you in advance for your help. Example: this is the 3x3 array: void conv(...
asked by 19.02.2017 / 21:26
1
answer

Insert node in binary tree

How to insert a node into a binary tree? Always gives segmentation error when code enters if (arv == NULL) struct no { int info; struct no *esq; struct no *dir; }; typedef struct no node; struct node *insere (node *arv, int...
asked by 16.03.2017 / 23:55
1
answer

How to find higher value Chained List C?

I'm having a hard time resolving a C exercise, I've never programmed it, and I've taken C in the first semester, can you help? I need to sort out 3 integer values between 0 and 200 in the main function. If the value is Par, I need to put t...
asked by 20.03.2017 / 02:35
2
answers

Remove stopwords listed in a txt file from another txt file

Good evening guys, I need help. I am doing preprocessing of text and for this I need to remove from a book in .txt format all stopwords found in a text file also "stopwords_br.txt". I found a program I think that's a bit like what I'm loo...
asked by 29.12.2016 / 00:11
2
answers

Problem deleting list with recursion

I'm trying to use this function to remove it from the list, but it runs infinitely. void rDeleta(lista* l, int elemento) { if(l!= NULL) { if(l->elem == elemento) { lista* aux = l; l = l->prox;...
asked by 06.12.2016 / 20:26
1
answer

Function return type for a linked list

What kind of return to use in a threaded list? For example, enter at the top of the list. void inserir(pessoas **pessoa, int valor) No return (% with%). Or return a pointer from the list. pessoas* inserir(pessoas **pessoa, int valor)...
asked by 07.12.2016 / 15:29
1
answer

Program does not wait to read content received

I am creating a program that reads the student's name, the number of absences, 3 grades and returns if the student has passed, failed for failure or failed by average, knowing that the limit of absences is 15, the minimum grade for approval is 7...
asked by 25.02.2017 / 16:10
1
answer

Doubt about matrix values

   A good example of a data set is the booking of a flight ticket. Build a C program for booking airline tickets. The plane has 50 rows with 6 seats each. The program should have:       Two vectors whose number of positions is the total numbe...
asked by 24.02.2017 / 22:55
1
answer

Vector of struct in C

I can not find the error in this code of my exercise. It prints right the first reading, then prints random things. I could not find out if the error is in the reading or the printing. #include <stdio.h> #include <stdlib.h> /*Defin...
asked by 26.12.2016 / 01:16