I am new to this website and was looking for some help .I am currently having trouble because I need to take the function generateOutput and have it display three random messages: Excellent, Good Job, and Very Good. Attached is the .cpp file

Hey,

I'm sure that many people here will be slacker about opening your attached source code. Instead, you should try to embed you code into your message :)

-hakan

I looked at it, and I would suggest adding a random number between 1-4, and then adding a simple 'switch' statement to change the comment based on the random number.

And as hnizamoglu said, it would be more convenient for us if you posted the code embedded into the site using code-tags.

can u plz elaborate ur problem... whats the main problem u r facing with the code...???

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.