Questions tagged as 'c'

0
answers

How do I pass the values stored in a struck to another function can I modify it?

I've been trying to run this program since yesterday, but I can not manipulate the data of my struct when I move it to another function, the other function simply to create other values, the goal of the program is to change the name cpf and enro...
asked by 22.06.2018 / 21:52
0
answers

"SIGSEGV ON THREAD", does anyone help me to solve, and also if possible, to complete the program?

It's the following, I do an info technician, and I'm learning C just two months, and I know little yet. Recently my teacher asked to make a program in which user entered with two number num, and that each position of two vectors n, were filled i...
asked by 19.06.2018 / 02:36
1
answer

How to separate a vowel of consonants into a matrix in C

Hello, I have a problem with my code. I have an array [6] [3] that reads letters, after reading I want to separate the vowels from the consonants. However, I did not succeed because all the letters go to the consonant variable. Can someone take...
asked by 23.06.2018 / 17:13
0
answers

Insert at the beginning of a circular row

I'm working on a circular queue program where I want to implement a "stick queue" function where the user enters a number and this number should be entered in the queue spaces prior to f.com. But the logic I implemented did not seem to work very...
asked by 14.06.2018 / 23:21
1
answer

print an array of string

When I do a print in my string array this is showing some symbols and not the words. The array is located in the void query function. I put all the code because it may be a mistake somewhere else but I'm not finding it. Exercise asks for this...
asked by 15.06.2018 / 02:23
1
answer

Variable returning 0 to file

Hello, I'm learning files I'm having a hard time using fwrite and fread, then the variable num1 is returning me 0 in the repeat structure and I think I did everything right = ( #include<stdio.h> #include<stdlib.h> int main() { FI...
asked by 15.06.2018 / 03:48
0
answers

Rand generating equal numbers

I have to do a program that generates random numbers for x1 and x2 and perform the operation F = x1 * x1 + x2 * x2; but I'll repeat this 10 times and I'll save the smallest value of F; then I'll repeat 100 times and save the smallest value of F;...
asked by 24.06.2018 / 23:17
0
answers

Copy a string into a noh in a list in c

I have a linked list and I want a two-character string, which will be entered by the user via the keyboard, to be inserted into the value field of the list. When I do this using integers as value, it works normally. However, with string the v...
asked by 24.06.2018 / 22:32
0
answers

Manipulating Label in pure C with GTK3

I'm starting now in graphical interfaces and I'm learning about gtk3 using glade to create the screens. The error, which I am going to submit for help, may be more of my oversight over the basics of pointers. I have a screen that has a "Log"...
asked by 22.06.2018 / 06:44
1
answer

How to compare two vectors and exclude equal values of the vector with the largest number of characters? In "C"

Generate and display sets A - B and B - A A and B are both vectors with user-defined sizes A - random values B - user defined For example: Vector A = (10), (5), (7), (8), (12) vector B = (10), (8) A-B New Vector A = (5), (...
asked by 14.06.2018 / 15:01