Maybe...I don't think it would be wise though, because cout is being outputted to the screen and will probably never contain anything, thus halting the program forever.
If hold1=='n' wouldn't it just skip over that and go to my else which defined die1 to show a random number. The point of this is to choose whether to display a random number or get that specific random number from a previous iteration. Like in yahtzee when I want to hold certain dice but continue to roll the rest.
Is it a syntax thing? I'm not quite sure if I'm using the correct format. When I try to run my program it gives me this error cpp(43) : error C3861: 'getline': identifier not found.