I am not sure how to use the map function to evaluate my tree expression. the function goes like this
int Tree::evaluate(std::map< std::string, int > ipMap){
and my teacher gave me a hint...
Type: Posts; User: Chucker
I am not sure how to use the map function to evaluate my tree expression. the function goes like this
int Tree::evaluate(std::map< std::string, int > ipMap){
and my teacher gave me a hint...
okay so I have set up the following input which is a reverse polish notation expression that I need to turn to vector format to be used with an expression tree. Can anyone give advice? I am also...
Yea i mentioned i fixed that problem. everything is def there.. im pretty sure. to input the data file. Anyone know where to put the free( ?
do i need to free(malloc or what have you, because i did not do that
and i just threw comment tags on the incomplete functions
#include <stdio.h>
#include <stdlib.h>
#include <string.h>...
turns out because i did not have my C file within a project I could not do the arguements, so i fixed that and now I can enter arguements, but Im not sure if i successfully did it or not. All I typed...
nothing was applicable. i go to project->set arguements. it doesnt even give me a box to type in, nothing happens. go to cmdpromt they say. type jibberish that doesnt even apply to txt files they...
yea, maybe i just like talking to somebody about instead! haha. eh but srsly im lookin at yahoo answers and the like and i keep getting ambiguous answers. ive never done it before. if you know like a...
im trying to read in a txt file to populate a list in CodeBlocks by entering an arguement before hand. Can anyone describe how to do this :)?
does this look viable? not sure where the strcmp would come into play tho
artistNodePtr FindArtist( artistNodePtr *sPtr, char *artistID); {
while (sPtr != NULL){
if (sPtr ->data ==...
thankyou, could you do a little snippet of pseudo code or code to demonstrate?
can anyone point to and example showing how to search for words in linked lists? Like somebody inputs a name and then a function will go thru and return it if its there and doing something else if...
Is this on the right track for returning the pointer if its found?
artistNodePtr findOrInsertArtist( artistNodePtr *sPtr, char *artistID )
{
artistNodePtr newNodePtr;
Okay so I am trying to make a program that uses structures and linked lists to search through a text data file of music artists. You know, if the the artist is found, return the pointer to the...
ಠ_ಠ
they are just trying to trick me then. This information will do nicely on the exam
I am not sure how the space effects it. My textbook does not explain explicitly what it means.
I made three structures because the project came with a visual representation which used different color connecting boxes to base your code design off of (flow chart?). There are three red bubbles...
So im trying to get a program to read from a text file that contains artists, albums and songs and organize them alphabetically. also im trying to get it to allow to add new artists albums and songs...
I see what you did there:redface:!! ty soooo much c++ witch! lol i have no idea why i was cramming so much into cases.
rando1 and rando2 are the plausibles. There are three cases so that a, b and c all get a chance to be the right answer. and they are randomly accessed by the order variable. i am just trying to make...
its a math game and you chose either addition or subtration then it gives u a random problem and keeps ur score. I m still trying to work on the multiple choice interface.
#include...
i need to keep the switch(order) as is so that the resst of the cases below are randomized. its supposed to be a random multiple choice switch. and the choices i really want to be letter select...
I have a multiple choice function below that is part of a larger program but I am having trouble having it operate with characters as inputs and arguments. It has to be a character input, but I kinda...
I have a multiple choice function below that is part of a larger program but I am having trouble having it operate with characters as inputs and arguments. It has to be a character input, but I kinda...
okay I figured out how to do multichoice kinda. below are my two new addition and subtraction functions. but my problem is when trying to input the character here:
scanf("%c", &userselect);
...
u can jump down to the add and subtraction functions. i figured thats where the random multi choice should be implemented