Skip to main content

Questions tagged [reverse]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

pset4 reverse, check50 says file is not reversing as specified, even though the output file has a reversed version and seems fine

#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "wav.h" int check_format(WAVHEADER header); int get_block_size(WAVHEADER ...
Bijal Shrestha's user avatar
0 votes
0 answers
44 views

reverse isn't properly reversing the file

The audio file that is generated not reversing the audio correctly. Here is the code: #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "wav.h" int ...
Splendid Digital Solutions's user avatar
0 votes
0 answers
13 views

reverse, todo 8, cs50, please help me identify my mistake

fseek(inptr, HEADER_SIZE, SEEK_END); int audiolength = ftell(inptr); int buffer; int j = 0; for (int i = 0; i < audiolength; i++) { fseek(inptr, j , SEEK_END); fread(&buffer, block_size, 1, ...
Trex Vanga's user avatar
0 votes
1 answer
60 views

my 'reverse' code works on wav files but it doesn't pass check50

#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "wav.h" int check_format(WAVHEADER header); int get_block_size(WAVHEADER header); int main(int argc, ...
ME Desings's user avatar
0 votes
1 answer
39 views

What is wrong in my TODO 8? PSET04 - RECOVER

I'm Currently doing the PSET04 Recover. I've done all the TODOS, but in the last one, I think I have an error and I don't know why. Check50 prompts me everything is ok except for the last requirement. ...
AlvaroAndLukeTheCoder's user avatar
0 votes
1 answer
143 views

reverse .wav file not working correctly

I tried running this code to reverse the .wav audio file, but it does not work as required. Can someone explain what's wrong? // create array of size (size) to store blocks BYTE buffer[size]; // ...
Ahmed ElToukhy's user avatar