Purchase Solution

C++ code to recognize comments using /* and */

Not what you're looking for?

Ask Custom Question

I am attempting to teach myself some basic C++ programming and in working my way through a Programming Languages book, I have come across a question I am having difficulty with.

The problem is two-fold. The first is to design a state diagram to recognize one form of the comments of the C-based programming languages, those that begin with /* and end with */.

I believe I have that (attached as 4#1).

The second part of the question is to write the code to implement the state diagram.

I have attached what I have come up with (attached as 4#3). However, I am unsure what I have left out and what I need to do to define SLASH.

Purchase this Solution

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.