Computing desk | ||
---|---|---|
< November 20 | << Oct | November | Dec >> | November 22 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
How do you look at Vines directly while on your computer (can you?). As best I can make out, vines are for your phone? When I went to the website, it tried to connect to iTunes? Can someone explain this to me?-- 108.46.96.174 ( talk) 03:38, 21 November 2013 (UTC)
I have never been able to get a Vine to work on my PC (Windows 8, Firefox). Although it plays, it never makes sound. RNealK ( talk) 03:47, 21 November 2013 (UTC)
Anyone know a Firefox add on to allow the circumvention of blocked webpages by the ISP or family filter? I know of HideMyAss.com but i'd rather have an add-on if one is available. Thanks ツ Jenova 20 ( email) 18:09, 21 November 2013 (UTC)
https://immunicity.org/ 82.44.76.14 ( talk) 12:09, 22 November 2013 (UTC)
hello i have this code that merges two linked lists in c; however, it creates an extra node and i dont want that extra node. note i cannot cahnge the function parameters, so im not sure how to fix this. code:
struct node* Shuffle( struct node* a, struct node* b ) { struct node* c = (struct node*) malloc(sizeof(struct node)); struct node* cHead = c; while ( a != NULL || b != NULL ) { if ( a != NULL ) { c -> data = a -> data; c -> next = (struct node*) malloc(sizeof(struct node)); c = c - >next; a = a -> next; } if ( b != NULL ) { c -> data = b -> data; c -> next = (struct node*) malloc(sizeof(struct node)); c = c - >next; b = b -> next; } } /* print the merged linked list */ printf("c = "); PrintList( cHead ); return cHead; }
the INCORRECT result i get is (take note of the 0 at the tail of c):
a = { 78 -> 10 -> 6 -> 3 -> NULL } b = { 44 -> 34 -> 10 -> NULL } c = { 78 -> 44 -> 10 -> 34 -> 6 -> 10 -> 3 -> 0 -> NULL
The result I SHOULD get is
a = { 78 -> 10 -> 6 -> 3 -> NULL } b = { 44 -> 34 -> 10 -> NULL } c = { 78 -> 44 -> 10 -> 34 -> 6 -> 10 -> 3 -> NULL
i understand why i get the 0 (because I malloc before the loop) but i dont know how ti correct this. someone had the same problem on stackoverflow but the solutions dont help here because i cannot modify the function parameters.
Computing desk | ||
---|---|---|
< November 20 | << Oct | November | Dec >> | November 22 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
How do you look at Vines directly while on your computer (can you?). As best I can make out, vines are for your phone? When I went to the website, it tried to connect to iTunes? Can someone explain this to me?-- 108.46.96.174 ( talk) 03:38, 21 November 2013 (UTC)
I have never been able to get a Vine to work on my PC (Windows 8, Firefox). Although it plays, it never makes sound. RNealK ( talk) 03:47, 21 November 2013 (UTC)
Anyone know a Firefox add on to allow the circumvention of blocked webpages by the ISP or family filter? I know of HideMyAss.com but i'd rather have an add-on if one is available. Thanks ツ Jenova 20 ( email) 18:09, 21 November 2013 (UTC)
https://immunicity.org/ 82.44.76.14 ( talk) 12:09, 22 November 2013 (UTC)
hello i have this code that merges two linked lists in c; however, it creates an extra node and i dont want that extra node. note i cannot cahnge the function parameters, so im not sure how to fix this. code:
struct node* Shuffle( struct node* a, struct node* b ) { struct node* c = (struct node*) malloc(sizeof(struct node)); struct node* cHead = c; while ( a != NULL || b != NULL ) { if ( a != NULL ) { c -> data = a -> data; c -> next = (struct node*) malloc(sizeof(struct node)); c = c - >next; a = a -> next; } if ( b != NULL ) { c -> data = b -> data; c -> next = (struct node*) malloc(sizeof(struct node)); c = c - >next; b = b -> next; } } /* print the merged linked list */ printf("c = "); PrintList( cHead ); return cHead; }
the INCORRECT result i get is (take note of the 0 at the tail of c):
a = { 78 -> 10 -> 6 -> 3 -> NULL } b = { 44 -> 34 -> 10 -> NULL } c = { 78 -> 44 -> 10 -> 34 -> 6 -> 10 -> 3 -> 0 -> NULL
The result I SHOULD get is
a = { 78 -> 10 -> 6 -> 3 -> NULL } b = { 44 -> 34 -> 10 -> NULL } c = { 78 -> 44 -> 10 -> 34 -> 6 -> 10 -> 3 -> NULL
i understand why i get the 0 (because I malloc before the loop) but i dont know how ti correct this. someone had the same problem on stackoverflow but the solutions dont help here because i cannot modify the function parameters.