954,178 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Defining structure for a scenarios

Cplusplus question

I need assistance with defining structures:

1. Write the member function definitions...

Object Type: a pair of dice
Knows:
The vaule of each face (1-6)
Can Do:
ROll for new face values
Tell the value on each face.
Initialize the die to have a value of 1 on each face. To roll the die, use the rand() function, to generate a random number. :sad:

t3bruce
Newbie Poster
5 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 

What have you tried so far, and why is everyone posting C++ questions in the Community Introductions forum? There's a separate C++ forum for such problems.

Dogtree
Posting Whiz in Training
233 posts since May 2005
Reputation Points: 35
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You