My question is how do I print the list of the 10 best students ( no students ) first I would have to sort the notes with a loop lower than 10? it has to be yes or yes with qsort ()? As I do to print the names of the students (not the numbers of...
Well, my problem is this:
When trying to compile this code in linux (gcc server.cpp -o server
):
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#inclu...
if (fork() == 0){
execlp("date","date",NULL);
execlp("ls","ls",NULL);
}
I need to enter the date and list the files but it only shows me the first one that would be the date
I have been trying to make my hanoi towers program, which allows the user to select the movement that will do, in principle it works well, but as it progresses, it does not allow to make the changes, I think not I am correctly using the counte...
Within a C programming course that I am taking, enter the loop section (while, do-while, for, etc ...).
And within one of the practices had as goal to achieve that in the last printf in which prints the numbers entered by the user, whe...
I'm trying to assign the array to another variable to get one of the specific characters, by a pointer
int main(){
char id[10];
char *idn[10];
FILE *in;
fscanf(in,"%s",id);
idn[10]=&id[10];
printf("%s\n",*i...
Is it possible that a data thrown by a sensor (the data thrown is unsigned char ) using the command i2c_read() , dato=10101010 , be saved in a array as datoarray[8]={1,0,1,0,1,0,1,0} instead of as type unsigned...