No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This code might be a bit vague, but this question is regarding an assignment I have to turn in and will be checked for plagerism so I will just give the jist of my problem. bool x = false; while (x == false) { } if (conditions) { x = … |
|
Hey all, I've been making a caesar cipher but seem to have encountered a problem. My program reads an integer from a text file and stores it as the shift value. Then my goal was to add that shift value to the alphabet array. Here is a part of my … |
|
I'm fairly new with arrays but from my understanding it is set up as so: datatype arrayname[#of elements] = {elements}; I was wondering why this code doesn't work typedef char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', … |
|
Hi, this program is a high-low guessing game that generates a random number and the user has 6 guesses to win their bet. When I run my code the "random number" is always the same. Any help is greatly appreciated. #include <iostream> #include <iomanip> #include <ctime> /* to access the … |