Search:

Type: Posts; User: skittlesaddict

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,007

    Help with this For Loop

    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...
  2. Replies
    6
    Views
    1,196

    Here is my full program and what I tried. ...

    Here is my full program and what I tried.


    #include <iostream>
    #include <cstdlib>
    #include <ctime>
    using namespace std;


    void myFunction(double randomizer, double selection)
  3. Replies
    6
    Views
    1,196

    New to Functions

    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:
    ...
  4. Replies
    8
    Views
    1,695

    So would I use your_name.clear(); ?

    So would I use your_name.clear(); ?
  5. Replies
    8
    Views
    1,695

    when I do that and it repeats it ignores one of...

    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...
  6. Replies
    8
    Views
    1,695

    Repeat this!

    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...
  7. Replies
    1
    Views
    1,176

    Fix loop

    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...
Results 1 to 7 of 7