Here is part of my code. The rest is just the function definitions. .I have an array of 20 x 20 that outputs the temperature of a plate. I need to reiterate through a loop until no cell in the array...
Type: Posts; User: skittlesaddict
Here is part of my code. The rest is just the function definitions. .I have an array of 20 x 20 that outputs the temperature of a plate. I need to reiterate through a loop until no cell in the array...
Here is my full program and what I tried.
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void myFunction(double randomizer, double selection)
I have this code and I want to be able to call it as a function. I looked up how, but am pretty confused and always get an error. Here is my code I want to make a function without global variables:
...
So would I use your_name.clear(); ?
when I do that and it repeats it ignores one of my variables.
I ask them to enter their name and it just puts the cout and skips the cin. It works fine the first instance though.
string...
If I have a do-while loop like this below: and then what follows, how would I repeat the whole shabang?
#include <iostream>
# include <time.h>
using namespace std
;int main()
{int...
I made this loop, but how do I make it so it doesn't output numbers below 0 or over 10?
It asks for a user to input a number 1-10 earlier and then randoms a 0 or 1. If a 0 then add 0.5, if a 1...