Send Close Add comments: (status displays here)
Got it!  This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Project ideas: C program processing


1. Project ideas: C program processing

2. Problem
Beginning students learning the C programming language could use help with the following.

3. Solution
Use a collection of regular expressions to do pattern matching for certain features of the program and then create output that can be transformed into something meaningful.

4. Data
The data to be analyzed for test is a large collection of programs submitted by students.

The real time data will eventually be programs that students are developing for class requirements.

5. Languages
The languages that might be be best used for these projects include the following.

6. Style
Checking style usage, say for braces, could be done as follows.

7. printf and scanf
Checking the usage of printf and scanf can be done as follows.

8. Language usage

   if (x = 2) {       // then part       }    else {       // else part       }

The assignment statement in the condition always succeeds. The else part will never be executed.

9. End of page

10. Acronyms and/or initialisms for this page