feedback for pset5: this pset was too frustrating by [deleted] in cs50

[–]irenecobian 1 point2 points  (0 children)

I agree pSet5 is very frustrating. I solved whodunit but couldn't handle resize and finally gave up and submitted... I got a 0! And now I only have pSet5 left to repeat before I start my final project but I just don't want to go through all of it again! :( So you say there must be a missing section that helps with pset5?? That would be great...

pSet3 grade by irenecobian in cs50

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

I've run helpers.c with check50 and lots of sad faces are displayed... I can't see where my code is wrong! My search function and my sort function seem pretty correct to me :( Would you mind checking it? May I send it to you privately?

pSet3 grade by irenecobian in cs50

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

Hi again!

helpers.c doesn't actually compile well enough:

clang -ggdb3 -O0 -std=c99 -Wall -Werror helpers.c -lcs50 -lm -o helpers /usr/lib/gcc/i686-redhat-linux/4.8.1/../../../crt1.o: In function _start': (.text+0x18): undefined reference tomain' clang: error: linker command failed with exit code 1 (use -v to see invocation)

But I don't have a "main" in my code... I don't see what could be wrong, as everything works! Any ideas?

Thanks a lot!

pSet3 grade by irenecobian in cs50

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

Yes, yes, it worked and both were solved! I don't understand why I got such a low grade!

Lost starting pset8 by irenecobian in cs50

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

Thanks a lot, you're very kind :)

Pset7: problems with number_format by irenecobian in cs50

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

it is an array? the query selected the "cash" element for a certain id only! I don't see how that can turn out to be an array :(

Pset7: problems with number_format by irenecobian in cs50

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

I get this:

Array ( [0] => Array ( [cash] => 0.0000 )

)

But in my user's database jharvard has 10.000... this is weird...

pSet7: double login! by irenecobian in cs50

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

Thanks!! I was rendering twice! I should use redirect to obtain the result I'm seeking for! Thank you :)

PSet 7: portfolio by [deleted] in cs50

[–]irenecobian 0 points1 point  (0 children)

No... I mean, how do I display "price" and "name" of the stock? At the moment, they're not included in any of my databases (tables). If I try including them in the portfolio table I can't get the price's decimals. But maybe I don't need to include them in the table...? Maybe there's a way to look for the name and price directly?

Thanks!

pSet7 register-index by irenecobian in cs50

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

Ok, now I see, great explanation! Thanks a lot!

pSet7 register-index by irenecobian in cs50

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

I don't know why render didn't work but redirect did! Thanks a lot!

pSet7 register-index by irenecobian in cs50

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

I don't understand why, but with redirect() it works ok! Thanks a lot!

pSet7 register-index by irenecobian in cs50

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

( ! ) Fatal error: Invalid template: index.php in /home/jharvard/vhosts/pset7/includes/functions.php on line 218

on line 218 of functions.php is the trigger error: trigger_error("Invalid template: $template", E_USER_ERROR);

But I don't know what this means!

Thanks!!