Search:

Type: Posts; User: Kelton2

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. I would like to do this, but I still don't quite...

    I would like to do this, but I still don't quite get it. Where is every element stored in my current program?
  2. Could someone help me with this n queens-based problem?

    I have a problem where eight queens are to be placed on an 8x8 chessboard in such a way that no queens will be able to attack each other (i.e., lie along same row, column or diagonal). The program...
  3. Replies
    16
    Views
    2,599

    Except I know that that if condition is wrong,...

    Except I know that that if condition is wrong, but I don't know what it should be.
  4. Replies
    16
    Views
    2,599

    I don't get what you're saying. Anyways, I made...

    I don't get what you're saying.
    Anyways, I made progress:


    #include <iostream>
    using namespace std;
    int main ( ) {
    int num;
    int array[40];
    cout << "Enter number of numbers here:...
  5. Replies
    16
    Views
    2,599

    Okay, so what I've found out is that the # is...

    Okay, so what I've found out is that the # is printing the wrong number of times, and it might be trying to print in the wrong place. I'm not sure how to fix it though-is it something with one of the...
  6. Replies
    16
    Views
    2,599

    Post updated, still need help.

    Post updated, still need help.
  7. Replies
    16
    Views
    2,599

    I still need help, so I bumped the topic, and...

    I still need help, so I bumped the topic, and nobody has replied.
  8. Replies
    16
    Views
    2,599

    Okay, here is the indented code: #include...

    Okay, here is the indented code:


    #include <iostream>
    using namespace std;
    int main ( ) {
    int num;
    int array[40];
    cout << "Enter number of numbers here: ";
    cin >> num;
  9. Replies
    16
    Views
    2,599

    Only I don't have a reply yet....

    Only I don't have a reply yet....
  10. Replies
    16
    Views
    2,599

    Vertical bar graph not working

    Title. I'm working on a vertical bar graph program, and it doesn't work.
    What it should print:


    Number of values to graph: 3
    1 2 3

    #
    # #
    # # #
  11. Nevermind, solved.

    Nevermind, solved.
  12. Update: It still doesn't work, but I have updated...

    Update: It still doesn't work, but I have updated my code. It now has a revised main and prints in a different way. My code is below:


    #include <iostream>#include <iomanip>
    #include <cmath>...
  13. I have changed it back to iteration and I now...

    I have changed it back to iteration and I now have:


    #include <iostream>
    using namespace std;
    int explode(int number,int array[])
    { int variable = number;
    int numberOfDigits = 0;
    ...
  14. Function that should return number of digits in an integer returns last digit.

    Title. Can someone help me fix it?


    int exploder(int number,int array[]) {
    int functi = 0;
    int digit = number % 10;
    while (number > 0) {
    // int digit = number % 10;
    ...
  15. Isn't it already like that?

    Isn't it already like that?
  16. How would I check for that?

    How would I check for that?
  17. I got it to work with recursion, but it prints...

    I got it to work with recursion, but it prints one too many comma and IDK how to fix it:


    #include <iostream>
    #include <iomanip>
    #include <cmath>
    using namespace std;
    int explode(int...
  18. #include #include #include...

    #include <iostream>
    #include <iomanip>
    #include <cmath>
    using namespace std;


    int explode(int number,int array[])
    {
    int digit = number % 10;
    while (number > 0) {
  19. Yes, but it won't always be in that position. I...

    Yes, but it won't always be in that position. I printed digits[4] anyways, and it didn't work. I don't understand how I can get it to print in the right order.
  20. And how would I reverse the order?

    And how would I reverse the order?
  21. I figured it out, but it prints backwards: ...

    I figured it out, but it prints backwards:


    #include <iostream>
    #include <iomanip>
    #include <cmath>
    using namespace std;


    void explode(int number,int array[])
  22. I can't get this to work, please tell me what I...

    I can't get this to work, please tell me what I am missing:


    #include <iostream>
    #include <iomanip>
    #include <cmath>
    using namespace std;


    int explode(int number, int array[])
  23. I would rather print it differently, but how?

    I would rather print it differently, but how?
  24. It's data (what's printed finally is data[i])....

    It's data (what's printed finally is data[i]). What do I need to change in it?
  25. I'm still confused? What array/variable do I need...

    I'm still confused? What array/variable do I need to change to what to make it print right?
Results 1 to 25 of 227
Page 1 of 10 1 2 3 4