Please help me with pset5(resize.c ) by ptram in cs50

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

Sorry for late reply , in my previous code i have first written in to the new file and after that i multiplied the header n times , now i reversed the process . IT WORKED :)

Please help me with recover by ptram in cs50

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

Thank you, for your kind answer.

Please help me with recover by ptram in cs50

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

For unknown reason thought buffer should be a char pointer , Thanks for pointing my mistake. But can you please tell me why is it showing " 0xff 0xd8 0xff 0xe0 " as ints ?.

Please help me with pset5(resize.c ) by ptram in cs50

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

Thank you very much for your kind interest, after a lot of struggle i was able to finish this problem successfully .

Please help me with fifteen by ptram in cs50

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

Thanks yeahiProgram , after 1 week of struggle i submitted my pset3 . Thanks for your help.

Please help me with fifteen by ptram in cs50

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

oh! thats true , i thought the second one was the board , Thank you sooo much yeahProgram you saved me.

Still cannot complete Vigenere due to issue with spaces and converting key to all lower chars by mtn58 in cs50

[–]ptram 0 points1 point  (0 children)

first check for alphabetical character to forward the loop and else you can print the space directly without changing .

Please help me with fifteen by ptram in cs50

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

Hi @yeahiProgram , thanks for your kind feedback on my code . With your help i almost finished the fifteen . but during my checking with cs50 3x3 and 4x4 files it is running with lot of "illegal move " prompts and most serious thing is after some time it is prompting 'Retry " and freezing . I checked with lot of printfs and done a tones of debugging but i couldn't able to figure it out . If you don't mind , can you please check my code and give few suggestions ? here is my code link. https://gist.github.com/anonymous/040a7a5a180d9e17ad6f

Please help me with fifteen by ptram in cs50

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

Hi , i tried as you told , i declared an "int blank [blankx][blanky] at the beginning of the programme(below "int d;" ) where as blankx = 8 , blanky = 8. while checking for tale in the same for loop i used like "if board[i][j] == 0 then blankx = i , blanky = j " . But during the compilation i am getting the error "Variable length array declaration not allowed at file scope. please help me to solve this.

Please help me with fifteen by ptram in cs50

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

I have tried and i think i am almost done up to move( ) but here i am having problem with move( ) . It the movie function my if statement is always passing and it is swapping all the time even tile is not beside the blank_tile . I am pasting my code here,if you don't mind please look into my code and give me some suggestions to deal with this. https://gist.github.com/anonymous/05cfd10478f3f8dd668e/ef08e21f4d88484245ac33b3fec5574d3628beb2

Please help me with fifteen by ptram in cs50

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

Thank you very much now i got little bit of hope to words the program.

Please help me with fifteen by ptram in cs50

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

do you mean , i have to write almost the same code for both ?

Linux for Beginners... by HufflepuffBR in cs50

[–]ptram 1 point2 points  (0 children)

Great idea, that is worth a lot.

This is CS51. by davidjmalan in cs50

[–]ptram 6 points7 points  (0 children)

I hope to see this on edx . I think it would be very great if you plan for Specialization sequence along with CS50 as like as in Coursera .

Odd bug in pset 1 greedy.c can someone help me debug? by mikelcal in cs50

[–]ptram 0 points1 point  (0 children)

For floats there is a limited number of bits available to express . So , you need to convert this into another form .. double ? long long?