Yes. I looked into it more and I am not using ostream. Thanks for the help.
Type: Posts; User: mas0nite
Yes. I looked into it more and I am not using ostream. Thanks for the help.
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.
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...
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...
Ok, I see what you are saying. Thanks for all the help everyone, I am going to try to get this working now.
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;
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?
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.
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...
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...
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...
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...
ah sorry, thank you for the help it worked great!
So, do you have any suggestions on what I should do then?
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...