Questions tagged as 'arquivo'

0
answers

FileTransfer does not work with JPG

I'm trying to implement a download routine in an application. It worked normally, but when I went to see it I had only done tests with PDF. Already in images (jpg, png, ...) it does not work. When I edited the file in notepad++ the fir...
asked by 23.05.2018 / 17:31
0
answers

How to detect the end of reading a file in a loop with while in C ++

In my code, you have the struct: struct material { int idmaterial; double rho; double precokg; }; And the reading function of a data vector of type "material", from a file: std::vector<material> le_material(std::string s...
asked by 14.05.2018 / 19:36
0
answers

How to Build a File Explorer with PHP?

I made a Banking system that creates a file in the "bans" folder with the users' names banned. I'm building another system to remove the ban, but it's very manual: / Is it possible to display the contents of this specific folder so that I can...
asked by 28.04.2018 / 09:02
0
answers

How to combine 2 binary files into 1 with regular interval?

I have a program called interleave and it comes with an interleave.cpp file and I am trying to use this program to combine 2 files to result in 1 at regular intervals but I am not getting it. It does not open and does nothing when I click on i...
asked by 25.04.2018 / 05:38
1
answer

Converting list to float array

I'm working on a data import, which are in the format, as in the example: [-2.814285863362681, -2.814158589901394, -2.8123844084634873] [-2.874285863362681, -2.054158589901394, -2.6523844084634873] . . . I used this code to import, already...
asked by 30.04.2018 / 16:37
1
answer

Read file from end to start [closed]

.... fseek(arq, 0, SEEK_END); while(!feof(arq)){ //fgets(&ch,2,arq); fread(&ch, sizeof(char), 1, arq); //printf("\n%c",ch); num = ato...
asked by 04.04.2018 / 21:18
1
answer

How to omit space to enter only numbers in different lists

#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct NBIG{ int numero; struct NBIG *nseg; struct NBIG *nant; }Nbig; int main(int argc,char *argv[]) { char *nf,ch; Nbig *vem=NULL,*resm...
asked by 05.04.2018 / 10:29
1
answer

Accessing the allocation causes the program to stop working

I have a problem accessing a struct of subscribers typedef struct Inscrito { char nome[50]; float cadastro; float nota; }; Inscrito *inscritos = NULL; It is a global variable and every time I access it in some way (either to...
asked by 07.04.2018 / 21:20
1
answer

C separating string with commas into vectors

I want to separate each line of a file into 2 vectors: v [i] .date and v [i] .value. However, when I run the code, no value I print is correct, and the outputs are random values. Is there something I should change?    Input   02/20 / 18,1140...
asked by 19.03.2018 / 17:48
1
answer

Thread1: EXC_BAD_ACCESS (code = 1, address = 0x68)

I'm having this problem on ide Xcode. In line 8 the warning    Thread1: EXC_BAD_ACCESS (code = 1, address = 0x68) The .txt file is in the same folder where main is. void construir1(struct elemento **P_inicio){ FILE *arq;...
asked by 27.03.2018 / 02:42