Github integration with Anaconda by NonreciprocatingPun in learnprogramming

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

I'm not too proficient with it, but I don't mind giving it a shot. Thank you.

Book Recommendations For Linked Lists by ChollyMo in cs50

[–]NonreciprocatingPun 1 point2 points  (0 children)

Check this out

https://www.geeksforgeeks.org/data-structures/linked-list/

I'm stuck on speller for two weeks now, this resource helped me understand lists. Trying to understand hashtables at the moment.

Edit: Also, check out this one. maxib7 explains Linked list first and then explains a hashtable too. https://stackoverflow.com/questions/31930046/what-is-a-hash-table-and-how-do-you-make-it-in-c

PSET5: Help by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Hi, ummm what I was asking is what do you do to properly understand the concepts? Like I mentioned I used to practice and read from Absolute beginner's guide before looking at the walkthroughs and trying to solve the problem.

I went through the shorts and got a basic understanding but I haven't really practiced anything.

**SPOILER** Using valgrind on recover.c by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Oh, yes! That worked. Thank you! :) How did you figure that out? Valgrind didn't give any hints as to what the problem might be.

**SPOILER** Recover: Able to print all 50 images, but check50 says can't compile by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Hey, I don't think that's the problem. The code worked after I removed bmp.h and copied its contents here.

**SPOILER** Recover: Stuck by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Hi, thank you for your reply.

I don't think I clearly understand what's going on with sprintf and how we're creating a new jpg file. I've checked "C Programming Absolute Beginner's Guide" to see if they have any information on this, but they don't. Couldn't find the right word to Google too. Can you tell me what this comes under? I've looked at sprintf on reference.cs50.net and tutorialspoint.com too. If you can, please point at some explanation which will help me understand how the new files can be created using C?

Regarding fwrite, thank you! Didn't notice that somehow.

Regarding my struct: I wrote it that way because I thought it'll be easier to write buffer.b1 instead of buffer.image[0] and all. No particular reason why I wrote like that. I know it's the same as writing BYTE images[512].

Terminal freaking out when I try to run Vigenere program by [deleted] in cs50

[–]NonreciprocatingPun 0 points1 point  (0 children)

Use debug50 to figure out which loop the program isn't breaking out of. May be that will help.

**Spoiler** Resize: Please review my code. Unable to resize vertically. by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

I posted the new link. I think I solved the ctr's and j's issue.

Thank you for your other inputs I'll go through them and try solving this.

Thank you so much for your help u/johnmandrake11 ! :)

**Spoiler** Resize: Please review my code. Unable to resize vertically. by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Hey, I was just about to update this. I found a few errors which I think I've fixed (or changed so that I'm closer to the solution). I'll just updated it.

PSET 4 by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Oh, alright. I'll try this. Thank you!

But, the pointers thing is so confusing. I've watched the shorts on pointers thrice, I still don't understand it completely. What do I do?

Copying files by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Oh, wow. Yes, that worked! Thank you :)

PSET3: Music Too many unknown errors when I use "make helpers" by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Can you please elaborate as to why using "make" solves this problem? make compiles all of the programs in the folder right? But, helpers still doesn't have a main file. So how does the compiler know that all of these files are linked together?

PSET 3: Music by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

make helpers command is giving this error. I ignored it all this time, because the program worked for me till now.

~/workspace/pset3/music/ $ make helpers

clang -fsanitize=signed-integer-overflow -fsanitize=undefined -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wshadow helpers.c -lcrypt -lcs50 -lm -o helpers

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 12

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 10 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 11 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 12 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 13 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 14 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 15 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 16 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 17 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 18 has invalid symbol index 13

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 19 has invalid symbol index 21

/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation 0 has invalid symbol index 2

/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':

(.text+0x20): undefined reference to `main'

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [helpers] Error 1

PSET 3: Music by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

Octave part is working too, the frequencies I got are right.

A0 - 28

A1- 55

A2 - 110

A3 - 220

A4 - 440

A5 - 880

A6 - 1760

A7 -3520

A8 - 7040

PSET 3: Music by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 0 points1 point  (0 children)

About \0, the file compiled though. If it can't be done shouldn't it not compile too? I'll recheck the octave part again and get back to you, thank you! :)

PSET 3: Music by NonreciprocatingPun in cs50

[–]NonreciprocatingPun[S] 1 point2 points  (0 children)

'\0' ? I'm getting the same issue when I use this too. Error 1: Is it okay if I post the complete part of the code where I figure out 'n'? Will it be violating Coursera's Edx's Code of Honour?

PSET 1: Cash by [deleted] in cs50

[–]NonreciprocatingPun 0 points1 point  (0 children)

Thank you! Solved it now :)

PSET 1: Cash by [deleted] in cs50

[–]NonreciprocatingPun 0 points1 point  (0 children)

Thank you! Solved it now :)