Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 160
» Latest member: zezima
» Forum threads: 439
» Forum posts: 1,391

Full Statistics

Online Users
There are currently 6 online users.
» 1 Member(s) | 5 Guest(s)
dzung

Latest Threads
Will the vertex not be a ...
Forum: Project 3
Last Post: ACCD
7 hours ago
» Replies: 0
» Views: 12
Accessing Test Cases
Forum: Project 2
Last Post: rshowe
Yesterday, 08:03 AM
» Replies: 0
» Views: 13
Minimum Depth Test #2
Forum: Project 2
Last Post: rshowe
Yesterday, 08:01 AM
» Replies: 0
» Views: 15
Method to get last submis...
Forum: Project 2
Last Post: rcfrederick
11-23-2017, 07:52 PM
» Replies: 1
» Views: 26
A lot of new test cases
Forum: Project 3
Last Post: rcfrederick
11-23-2017, 07:50 PM
» Replies: 0
» Views: 26
Test files
Forum: Project 2
Last Post: ianbway
11-23-2017, 04:48 AM
» Replies: 5
» Views: 252
Finishing extremely effic...
Forum: Project 2
Last Post: stvnengineer
11-20-2017, 03:30 PM
» Replies: 4
» Views: 139
Exam Date/Time
Forum: Final Exam
Last Post: ianbway
11-19-2017, 08:00 PM
» Replies: 1
» Views: 57
Some large input test cas...
Forum: Project 3
Last Post: ZachWassynger
11-18-2017, 09:59 PM
» Replies: 3
» Views: 121
Inconsistencies between t...
Forum: Project 3
Last Post: radagast
11-18-2017, 09:22 PM
» Replies: 1
» Views: 66

 
  clean string
Posted by: Logand064 - 11-09-2017, 03:51 PM - Forum: Project 2 - Replies (1)

Would " abc 123 def " be cleaned to " abc def " or "abc def" ?

Print this item

  Can I change the h file to make my function public?
Posted by: ACCD - 11-09-2017, 03:06 PM - Forum: Project 2 - Replies (2)

I really want to make my own function public, I don't know that was allowed or not.

Print this item

  How to swap count?
Posted by: ACCD - 11-09-2017, 06:57 AM - Forum: Project 2 - Replies (1)

Code:
   function swapper(BSTNODE *a,BSTNODE *b)
       {
       RBTVALUE *ra = getBSTNODE(a);
       RBTVALUE *rb = getBSTNODE(b);

       /* swap the keys stored in the RBT value objects */
       void *vtemp = ra->value;
       ra->value = rb->value;
       rb->value = vtemp;

       /* swap the counts stored in the RBT value objects */
       int ctemp = ra->count;
       ra->count = rb->count;
       rb->count = ctemp;

       /* note: colors are NOT swapped */
       }

I don't understand how "RBTVALUE *ra = getBSTNODE(a);"  "getBSTNODE(a)" just return a void * which was a string. How can he use RBTVALUE *ra to equal that? And how he can get ra->value and ->count?
So BSTNODE struct should include a RBTVALUE struct, and RBTVALUE have void* value and int count?

Print this item

  Unavailable tests?
Posted by: jaw653 - 11-09-2017, 04:08 AM - Forum: Project 2 - Replies (2)

This might just be from a lack of understanding, but I can't access Test #2, among others, as it/they aren't in the tarball I fetched. Any suggestions?

Print this item

  Cleaning "hello 1234 world"
Posted by: radagast - 11-09-2017, 02:36 AM - Forum: Project 2 - Replies (6)

My program cleans "hello 1234 world" into "hello world". It seems lusth's program cleans it to "hello" and "world". Does anyone see where in the spec it says to do this? The test I'm getting this from is test-0-0.

Print this item

  Timeouts
Posted by: elmines - 11-08-2017, 11:58 PM - Forum: Project 2 - Replies (10)

Let me know if anyone else's code timed out on "shakespeare.txt." My program timed out for all four tests with it, so I'm trying to figure out if the issue is in my file processing, my BST class, and/or something else entirely.

Print this item

  New version of assignment
Posted by: lusth - 11-08-2017, 08:56 PM - Forum: Assignment 3 - No Replies

Version 3 is up.

* pfs should produce numbers in sorted order.

* correction to the sample output for task 8.

Print this item

  Why we need these functions?
Posted by: ACCD - 11-08-2017, 06:52 PM - Forum: Project 2 - Replies (2)

Some thing like this I don't know why we need to be function, it just very simple.

Code:
void *getBSTNODE(BSTNODE *n)
{
    return n->value;
}

void setBSTNODE(BSTNODE *n, void *value)
{
    n->value = value;
}

BSTNODE *getBSTNODEleft(BSTNODE *n)
{
    return n->left;
}

Also Can I put bstnode and bst struct in bst.h file? Will he use mine h file or his file?

Print this item

  -v option tested for, but not in assign2 details
Posted by: jaw653 - 11-08-2017, 05:10 AM - Forum: Project 2 - Replies (3)

I've read through assign2 a lot now, so if I missed something let me know. But Dr. Lusth's tests included a "-v" option looking for the author output. However, this is not in the assign2 details. Am I missing something or is this a mistake?

Print this item

  Task 5
Posted by: mlpearson4 - 11-07-2017, 05:30 PM - Forum: Assignment 3 - Replies (1)

Can someone provide examples of calling task 5 and what it returns? I'm a bit confused as to what this question is asking and how it differs from exercise 3.47 in the book.

Print this item