Search:

Type: Posts; User: walkonwater

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    19
    Views
    2,049

    So should i set j=0

    So should i set j=0
  2. Replies
    19
    Views
    2,049

    This is what is wrong: How many values are...

    This is what is wrong:


    How many values are you going to enter (5-25)30
    To many values; try again
    How many values are you going to enter (5-25)2
    To Few values; try again
    How many values are...
  3. Replies
    19
    Views
    2,049

    Anyways since you corrected the "indention" why...

    Anyways since you corrected the "indention" why is my sum not working right?
  4. Replies
    19
    Views
    2,049

    Is this better? numEntered = 0; cout

    Is this better?


    numEntered = 0;
    cout << "How many values are you going to enter (5-25)";
    cin >> numEntered;


    while (numEntered < 5 || numEntered > 25 ) {
  5. Replies
    19
    Views
    2,049

    This is my new code but for some reason it gives...

    This is my new code but for some reason it gives me an outrageous number for sum


    numEntered = 0;
    cout << "How many values are you going to enter (5-25)";
    cin >> numEntered;
    while...
  6. Replies
    19
    Views
    2,049

    but now I am trying to find the average and sum...

    but now I am trying to find the average and sum and also the average of numbers over 100.
  7. Replies
    19
    Views
    2,049

    Ok guys I did it,I just changed j =1

    Ok guys I did it,I just changed j =1
  8. Replies
    19
    Views
    2,049

    numEntered = 0; cout

    numEntered = 0;
    cout << "How many values are you going to enter (5-25)";
    cin >> numEntered;
    while (numEntered < 5 || numEntered > 25 ) {
    if (numEntered < 5) {
    cout << "To Few values; try...
  9. Replies
    19
    Views
    2,049

    Ok I fixed the brace but still not luck

    Ok I fixed the brace but still not luck
  10. Replies
    19
    Views
    2,049

    Please help

    Please help
  11. Replies
    19
    Views
    2,049

    Help with array

    I have this code and I am trying to make it look like this:

    How many values are you going to enter (5-25)? 30
    Too many values; try again.
    How many values are you going to enter (5-25)? 2
    Too...
  12. Replies
    2
    Views
    1,320

    Help me please with functions.

    Ok I am trying to make it look like this but with functions and I am not sure I have this right.

    This is my code that I have and not sure if right. Could y'all help?



    #include <iostream>
    ...
  13. Replies
    8
    Views
    1,173

    So would this be my final product? Does this look...

    So would this be my final product? Does this look like it answers the question?


    #include <iostream>

    int main() {
    string str;
    string j;

    cin >> str;
  14. Replies
    8
    Views
    1,173

    So would this be the answer? string str =...

    So would this be the answer?



    string str = "This is the string";
    string j;

    j = str.substr(0,5);
    cout << j;
  15. Replies
    8
    Views
    1,173

    So could I make the str = to anything I wanted it...

    So could I make the str = to anything I wanted it to be? For example, could it be


    string str = "This is the string";
  16. Replies
    8
    Views
    1,173

    I would think it would be something like this but...

    I would think it would be something like this but not sure.



    string str;
    string pos;

    pos = str.substr[5];
  17. Replies
    8
    Views
    1,173

    Big Test! Need Help!

    Okay, I have a test tomorrow basically over strings. I am very new and in the process of learning. So our teacher gave us a pre-test and gave us all the answers if we asked for them. But I didn't and...
  18. Replies
    18
    Views
    12,122

    right under main (){ put: char test;

    right under main (){
    put:
    char test;
  19. Replies
    1
    Views
    921

    Having problem with loop!!

    I am trying to make an easy program but I have it done except it prints off extra data.

    while (cin) {
    cout << "Enter an even number: ";
    cin >> num;
    if (num % 2 == 0 && num >=...
  20. Replies
    30
    Views
    2,937

    can you seriously just put how it should look so...

    can you seriously just put how it should look so I can learn by visuals. I am completely lost.
  21. Replies
    30
    Views
    2,937

    I can't do this. I have been working on it for...

    I can't do this. I have been working on it for about 7-9 hours.
  22. Replies
    30
    Views
    2,937

    #include int main () { double...

    #include <iostream>

    int main () {
    double value, total;
    value = -2.3;
    while (value <= 2.9) {
    cout << value << " ";
    value = value + .4;
    if (0 < value)
    total = value
  23. Replies
    30
    Views
    2,937

    So do I need to create a double or float? Can you...

    So do I need to create a double or float? Can you tell me what I have wrong in my code.
  24. Replies
    30
    Views
    2,937

    Well I know, after. I don't know the correct...

    Well I know, after. I don't know the correct space


    while (value <= 2.9) {
    cout << value << " ";
    value = value + .4;
    if (0 < value)
    total = value
    cout << "Sum of negative...
  25. Replies
    30
    Views
    2,937

    I want it to look like this: -2.3 -1.9 -1.5 -1.1...

    I want it to look like this:
    -2.3 -1.9 -1.5 -1.1 -0.7 -0.3 0.1 0.5 0.9 1.3 1.7 2.1 2.5 2.9
    Sum of negative values: __
    Sum of positive values: __
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4