No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Can someone please give me tips on how to accomplish generating a random number within a random range. See 'roll_dice' #include <iostream> #include <limits> #include <ctime> #include <iomanip> #include <cstdlib> using namespace std; using std::cout; using std::cin; struct Sanity { unsigned int turns = std::numeric_limits<int>::max(); unsigned int sanity = std::numeric_limits<int>::max(); … |
|
Hello Dani Web, I have written a program that needs to run on Ubuntu 14.0. It runs on Windows 10 and will compile in Replit. But I get this error in Replit. Can anyone figure out why? I assume it's in relation to my pointer "highScore". Can anyone figure out … |
|
am doing a project with I/O and structs. My text file is below. I need to make my program store each string in a different part of the array of structs I have created. I am having a problem making it separate them in the array when it senses a … |