Results 1 to 6 of 6

Thread: Code analysis software?

  1. #1

    Code analysis software?

    I'm a grader for a Computer Science class at my University and I would really like it if I can find some software to assist me in grading these assignments. They are done in C++.

    Does anyone know of some good code analyzing software, especially if it pertains to this? What would be really nice is if there was something that could analyze code structure and see if there are any possibilities of cheating. I would always, of course, check with my own eyes to make sure, but at least it would help me to pin point those persons' sources that look similar.

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Posts
    280

    Re: Code analysis software?

    If you're looking for students copying others, you might try using 'diff' on the source code or even the compiled files and look for files that are somewhat similar and inspect those files closer.

  3. #3
    Guest

    Re: Code analysis software?

    Vim 6 has a 'diff' mode which shows two documents and highlights where they are different.

  4. #4

    Re: Code analysis software?

    The problem is that diff doesn't look at structure. It doesn't take much to change function and variable names. I don't think that any student is stupid enough to just copy code line for line.

  5. #5
    Guest

    Re: Code analysis software?


    The problem is that diff doesn't look at structure. *It doesn't take much to change function and variable names. *I don't think that any student is stupid enough to just copy code line for line.
    Use vim in vertical split mode and scroll down.

  6. #6

    Re: Code analysis software?

    vimdiff will not only show you what lines are different, it will also show you what parts of the line are different. If you have two students who you think copied, just do a "vimdiff file1 file2" and it'll show you everything

Similar Threads

  1. Microsoft's anti-spyware strategy
    By genesis in forum Windows - General Topics
    Replies: 2
    Last Post: 01-22-2005, 05:09 PM
  2. What you can do about spyware
    By genesis in forum Windows - General Topics
    Replies: 0
    Last Post: 01-22-2005, 08:50 AM
  3. Device Manager Error Codes
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 12:52 AM
  4. The Software Developer as Movie Icon
    By coltrane in forum General Chat
    Replies: 5
    Last Post: 02-20-2003, 11:52 PM
  5. Microsoft Will Offer Linux Software (2004)
    By coltrane in forum General Chat
    Replies: 8
    Last Post: 12-11-2002, 05:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •