General C++ Programming - August 2017 (Page 9)

I need help with my Dice program
 
My professor has assigned a program that rolls two Dice. I am pretty much done coding it I just can not get it to display a message when I enter a number less t...
[2 replies] Last: And if you just want to stick to what you had and work with that then ... (by closed account 48T7M4Gy)
by pozoJ
Im unable to find the syntax errors
 
struct TwoVals { int x; double y; }; int main() { TwoVals.x = 10; TwoVals.y = 20; TwoVals vals; cout << vals << endl; return 0; }
[1 reply] : TwoVals vals; // declare variable vals of type TwoVals vals.x = 10; ... (by closed account 48T7M4Gy)
August 2017 Pages: 1... 789
  Archived months: [jul2017] [sep2017]

This is an archived page. To post a new message, go to the current page.