Questions tagged as 'c'

1
answer

Problem in basic C [closed]

I am learning to program in C and they left us a job to do, but when I want to compile I get an error and as far as I know, I still do not know what the error is. Thanks in advance and sorry if it's a very stupid question, I'm still learning.  e...
asked by 05.02.2017 / 17:11
2
answers

Pass by reference a vector [closed]

The problem is that I pass a vector by reference and the terminal tells me it's wrong. Here are the respective codes and errors: ordenavector(&vector, cont);    test13.c: 21: 6: warning: passing argument 1 of 'ordenavector' from inco...
asked by 10.01.2017 / 19:40
0
answers

Node ordering? [closed]

I would like to ask about the ordering of nodes in a simple linked list. I am currently having problems with sorting a simple list of a field ( int ), I want to sort the nodes by changing the relationships between them, I have tried severa...
asked by 27.02.2017 / 05:36
1
answer

Unexpected behavior with (user-threads | fibers | coroutines)

I'm testing libcoro , a very simple and low-level library that provides coroutines more or less portable . Supposedly, it is valid for systems in production. My code is as follows: #include <stdio.h> #include <signal.h> #i...
asked by 18.12.2016 / 23:41
2
answers

Struct in C. Database

I have to make a database for the university in C. struct fecha { int dia; int mes; int anio; }; typedef struct { char nombreAsignatura[MAX]; int creditos; float nota; }registroAsignaturas; struct registroAlumnos {...
asked by 18.12.2016 / 21:14
2
answers

Problem with for, while and do while loops in C

/ * 10 positive integers are requested, calculate and show the following values, the sum of all the numbers read, the mean of the numbers, the largest number entered and the smallest number entered * / I'm confused about how I can enter the a...
asked by 11.12.2016 / 15:56
1
answer

There is some ide that comes with multiplatform libraries installed [closed]

It would be better to be downloading an ide and add by eg gtk or sdl manually I program in c.     
asked by 07.10.2016 / 13:58
2
answers

Help about programming ls-l in c segment violation

I'm crazy with this program that I'm doing in c and I can not get it to work well for me. What I'm doing is implementing in c two commands a ls-x and a ls-l when I try it with the directory "." , everything works for...
asked by 09.11.2016 / 12:57
0
answers

Compile and link in linux to external libraries contained in a rootfs.img

Well, I think the title says it all, or almost everything. I give a little more details: I have an ARM computer with Ubuntu Linux installed and a cell phone with Linux installed, but it is Tizen. The two devices have compatible CPU among them...
asked by 25.07.2016 / 14:41
1
answer

How to compare a text string of a file with a variable in C?

I have problems with an exercise in C. I need to compare a string of text stored in a file. File content (client.txt): Jose Gomez Santos Maria Sanz Trementina Jesus Gomez Soler First name, last name, second last name...
asked by 29.05.2016 / 21:44