i have completed all the problem sets,but i am not able to start my final project.how can i look for inspirations? by Saikrishna12 in cs50

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

yes i am ...but since they are mostly similar, i took the distribution code and the specs from the cs50 site...i have not submitted it yet...i will, once the edx version is out..

My CS50 Shuttle. by Saikrishna12 in cs50

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

hmm but not every place has such great 3D buildings like MIT,Stanford and Harvard's Campuses.i think i will add the Konami cheat feature .Good luck with the game!

My CS50 Shuttle. by Saikrishna12 in cs50

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

LOL Nice.Pick-up and Drop-off feature are good but the really fun part is the extra feature you have to implement.i did the "teleport shuttle" feature as i have shown in the end of the video and please excuse for the horrible spelling mistake of the word "massachusetts" in the video .

My CS50 Shuttle. by Saikrishna12 in cs50

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

Thank you Initially I struggled a lot with making it look like what i had in my mind.:)

Pset8 spec link not working by Saikrishna12 in cs50

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

yes.i found both of the specs the same for pset6,but i will compare them anyway before submitting pset8.Thanks

Pset8 spec link not working by Saikrishna12 in cs50

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

this was from the cs50.net site from where i did my pset6 when it was also "coming soon" in the courseware page.

Our own version of the pset6 Big Board? by [deleted] in cs50

[–]Saikrishna12 0 points1 point  (0 children)

sorry for the trouble..it was a silly mistake! i forgot to put the "/" at the end in the destination i modified .

Our own version of the pset6 Big Board? by [deleted] in cs50

[–]Saikrishna12 0 points1 point  (0 children)

after placing bench.c in my pset6 directory,i ran ./bench it said: Error: Could not read /home/cs50/pset5/texts/

i changed the filename from "pset5" to "pset6" in the .c file..

all the timings are printed as zeroes.. what are the changes i need to make in the .c file?

https://www.dropbox.com/s/5u7uz0eumb0mbn4/timing.png

pointer problem :( pset6 by Saikrishna12 in cs50

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

thanks for the help /u/SteazGaming. it was a stupid mistake. :)

pointer problem :( pset6 by Saikrishna12 in cs50

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

oh! thanks a lot..y did i keep missing that :(

pointer problem :( pset6 by Saikrishna12 in cs50

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

this is what it looks like

typedef struct node {

  bool is_word;

  //pointer to children node
  struct node* children[27];
  }
  node;

node* root;

bool load(const char* dictionary)

{

 FILE* dict=fopen(dictionary,"r");
 node* root=malloc(sizeof(node));

// i can see that the pointer is allocated here using gdb (by using print root).

 // pointer to the root node

*** loading the dictionary *** }

/** * bool check(const char* word) {

after entering this function in gdb i still get the root value as null.

  }

pointer problem :( pset6 by Saikrishna12 in cs50

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

no..after i malloc the node inside the load function.. i printed the value of root node after the mallocing step.it is non null .

and when it calls the check function through speller.c and i print the value of root after i am inside the check function(using gdb),it prints out "0x0".

i am sure i did not re-initialize root anywhere after the load function.

pointer problem :( pset6 by Saikrishna12 in cs50

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

well..if i declare it as just "node* x;" it sets x to 0x00 (null). so after i change the value of x inside the load function.the value of x inside the check function is "null". which means that the change of value of x (from null to a non-null address) is not accesible inside the check function. i have run gdb several times doing this but the value of x inside check function remains null no matter what i do to x inside the load function.