Search:

Type: Posts; User: mas0nite

Search: Search took 0.00 seconds.

  1. Thread: using stream&

    by mas0nite
    Replies
    6
    Views
    1,171

    Yes. I looked into it more and I am not using...

    Yes. I looked into it more and I am not using ostream. Thanks for the help.
  2. Thread: using stream&

    by mas0nite
    Replies
    6
    Views
    1,171

    I checked that and there is nothing else wrong. ...

    I checked that and there is nothing else wrong. I also just commented out those 2 lines of code and the program compiled just fine. So, it has something to do with those lines.
  3. Thread: using stream&

    by mas0nite
    Replies
    6
    Views
    1,171

    using stream&

    Here is what I am doing:


    bool report(stream&,bool,int,int,int);

    The problem I am getting with this code is related to the "stream&" I am using. For this I want to be able to get a stream...
  4. Replies
    2
    Views
    1,224

    Array in a Map

    I was just curious if there was a way to pass an array as a value into a map without using a pointer. I am trying to do something like:


    map <string,array> nameMap;

    Here the key would be a...
  5. Replies
    15
    Views
    4,677

    Ok, I see what you are saying. Thanks for all...

    Ok, I see what you are saying. Thanks for all the help everyone, I am going to try to get this working now.
  6. Replies
    15
    Views
    4,677

    That will work fine, but it will get somewhat...

    That will work fine, but it will get somewhat sticky when I get a polynomial like:

    "345x^4"



    string polyString = "345x^4";
    char thisChar;
    int temp;
  7. Replies
    15
    Views
    4,677

    What happens if the polynomial is something like:...

    What happens if the polynomial is something like:

    "5x^3+-23x^12+3x^1+2x^1+5x^1"

    Would that code be able to be expandable for any length polynomial that the user could input?
  8. Replies
    15
    Views
    4,677

    I just used that polynomial as an example. The...

    I just used that polynomial as an example. The program needs to be able to handle a polynomial of any size. That would work great, but that above solution wont work in this case.
  9. Replies
    15
    Views
    4,677

    Parsing a String

    I am going to have to parse a polynomial string to break it down into its different elements.

    Lets say I have this polynomial: 5x^3+-23x^12

    What my thoughts were was to do something like...
  10. Replies
    8
    Views
    2,066

    Lets say I was to make a new local array each...

    Lets say I was to make a new local array each time. Do you think this code would work?



    int Solve::whereAmI(GridSpot finalArray[]){

    //creating a local array then assigning all the values...
  11. Replies
    8
    Views
    2,066

    Well I think the main issue is that with the...

    Well I think the main issue is that with the recursion I am using I am taking an array and trying to solve a puzzle. The way I have it set up is that I pass around an array that is a 3x3 grid which...
  12. Replies
    8
    Views
    2,066

    Creating New Dynamic Arrays

    I need to create a new array every time i run a method.


    I need to make a brand new array every time I run the method below.

    int Solve::whereAmI(GridSpot finalArray[]){

    //then in here I...
  13. Replies
    4
    Views
    1,584

    ah sorry, thank you for the help it worked great!

    ah sorry, thank you for the help it worked great!
  14. Replies
    4
    Views
    1,584

    So, do you have any suggestions on what I should...

    So, do you have any suggestions on what I should do then?
  15. Replies
    4
    Views
    1,584

    An Array of Classes in a different Class

    What I am trying to do below in make an array of GridSpot objects in my Solve class. I don't really know what the issue is here because I feel like I should be able to make an array of objects. The...
Results 1 to 15 of 15