Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Forums
Favorite Tags
c x 18
Member Avatar for tehloki

I have to use a recursive backtracking search to solve the classic "bucket" problem. ie. You have two buckets, one holds 5L, the other 3L. Find a way to get 4L into the 5L bucket, while only being able to fill/empty either bucket, or to pour one of them into …

Member Avatar for Salem
0
77
Member Avatar for tehloki

I'm trying to implement a Double-Linked List ADT in an array (contiguous memory only, no dynamic allocation at runtime). So far, all my code does is generate a seg fault whenever I try and add a new element. Here's the whole ADT, if anybody feels like looking over it. FILE: …

Member Avatar for Narue
0
119
Member Avatar for tehloki

Hey, I have here a piece of code that works in parts but does not work together. If I test all three parts at once, I get a segmentation fault immediately before the program is supposed to test for a (null) value in the string array. However, if I comment …

Member Avatar for Ancient Dragon
0
960
Member Avatar for tehloki

Hey, it's me again, with another problem on an assignment. The input/output looks like this: [I]Enter the wind speed on the Beaufort Scale: [COLOR=red]7[/COLOR] Enter the number of boats racing (1-10): [COLOR=red]7[/COLOR] Enter the code for boat 1: [COLOR=red]LASE[/COLOR] Enter the time for boat 1: [COLOR=red]29:41[/COLOR] Enter the code for …

Member Avatar for tehloki
0
214
Member Avatar for tehloki

I am taking a programming course, and since we have not been introduced to string functions (puts(), gets(), etc) I need to take some input from the user using scanf. The assignment is to read a DNA sequence, storing it in a char array. The array must be 512 characters, …

Member Avatar for tehloki
0
231