I do not understand what I am doing wrong with the writing of the text files, since I get many warnings.
Can someone help me know what I'm bugging him about?
fread(®,1,sizeof(info),fp);
while(!feof(fp))
{
fprintf(fpTextFijo,"%*ld%-*...
I want the user to add the data of the books and then save them in the library. Any advice to work with two structures? I leave what I advanced so far.
#include<stdio.h>
#include<conio.h>
#include<string.h>
//Estructura del...
I have a matrix (c) of 10x10 (M = 10) elements in which I divide the matrix by rows so that they are executed by 5 different processes (slaves = 5), so that each process corresponds to 2 rows of that matrix.
offset = 0;
filas = (M / esclavos);...
I need to do a program in c to copy the content of a file in another file. I'm using HANDLE objects to open the source and destination file and I'm using DWORD to read the content. The code is as follows
HANDLE hIn = CreateFile...
I am trying the following program: the user enters a word and it should be found in a matrix reading from left to right or from right to left.
I have managed to find the words reading from left to right, but not from right to left.
I have tri...
please could you tell me why the error persists if the scanf is validated. The error I get when I use the library 'mpi'. This is my code:
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
int insertminimo ();
int main...
Well that, how can I modify data from a record, I was trying this way:
gets(search); // nombre del dato que queremos modificar
fread(&producto,sizeof(_Registro),1,pf);
while(!feof(pf)){
if (strcmp(search,product...
I have a question about the i2c protocol programming in CCS Compiler with a specific sensor.
To fully synthesize I give you an example that appears in the sensor datasheet to obtain data of it.
And then I present the code in CCS:...
hello will see I have my code that counts the amount of files in a directory and then returns the name of that file next to your md5sum, what happens is that my task says the following:
The application should examine the contents of the "/...
I'm trying to compare the initials of some names previously obtained from a text file, the format of the file would be this:
nombre dato1 dato2
nombre dato1 dato2
nombre dato1 dato2
nombre dato1 dato2
I ask the user to type the name of the...