Hot answers tagged

4

Each school/college/university has a numbering scheme for its courses. From the Harvard University 2013-2014 Guideline for Courses of Instruction Course Number Courses may have only one number and be listed in full by only one department or committee. The course number includes the two, three or four digit number used to identify the course ...


2

Have you watched the "Walkthrough" videos yet? It looks like there's only one video, but there are actually several (just kind of hidden because they will play one after another, and you can select which one with a playlist to the top right corner of the video screen). Watching the video on the grayscale implementation helped a lot, and I was actually able ...


2

While your program will likely pass the automated tests of C50, in terms of design, you could think of the following: As per the problem description, Visa uses 13- and 16-digit numbers Your program seems to consider a 13-digit number invalid You may not necessarily need to duplicate card into card1 and run them digit-to-digit twice to do the checks. ...


1

You should ALWAYS initialize pointers. Unless you're immediately allocating memory to them and setting them to a legitimate address, you should initialize them by setting them to NULL. Note that if the pointer or array is created as a global, it can't be assigned any value when declared. The assignment must be done inside main or inside a function. In ...


1

I bet that all the files are 512 bytes long too. else { if (counter != 0) { img = fopen(currentBlock, "w"); fwrite(buffer, 512, 1, img); } } You have the right idea to write the blocks without signatures out after the first signature is found. The problem is in the code above. It opens the output file for ...


Only top voted, non community-wiki answers of a minimum length are eligible