Search:

Type: Posts; User: Chucker

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Evaluating expression tree using std::map

    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...
  2. Replies
    1
    Views
    1,302

    Storing Math expression as vector

    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...
  3. Replies
    12
    Views
    5,203

    Yea i mentioned i fixed that problem. everything...

    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( ?
  4. Replies
    12
    Views
    5,203

    do i need to free(malloc or what have you,...

    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>...
  5. Replies
    12
    Views
    5,203

    turns out because i did not have my C file within...

    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...
  6. Replies
    12
    Views
    5,203

    nothing was applicable. i go to project->set...

    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...
  7. Replies
    12
    Views
    5,203

    yea, maybe i just like talking to somebody about...

    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...
  8. Replies
    12
    Views
    5,203

    Command line arguements (codeblocks)

    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 :)?
  9. Replies
    6
    Views
    3,995

    does this look viable? not sure where the strcmp...

    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 ==...
  10. Replies
    6
    Views
    3,995

    thankyou, could you do a little snippet of pseudo...

    thankyou, could you do a little snippet of pseudo code or code to demonstrate?
  11. Replies
    6
    Views
    3,995

    Searching for word in Linked list. example?

    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...
  12. Is this on the right track for returning the...

    Is this on the right track for returning the pointer if its found?




    artistNodePtr findOrInsertArtist( artistNodePtr *sPtr, char *artistID )
    {

    artistNodePtr newNodePtr;
  13. Structure Linked Lists: Searching for Words.

    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...
  14. Thread: *Ptr vs * Ptr

    by Chucker
    Replies
    3
    Views
    1,057

    ಠ_ಠ they are just trying to trick me then....

    ಠ_ಠ

    they are just trying to trick me then. This information will do nicely on the exam
  15. Thread: *Ptr vs * Ptr

    by Chucker
    Replies
    3
    Views
    1,057

    *Ptr vs * Ptr

    I am not sure how the space effects it. My textbook does not explain explicitly what it means.
  16. I made three structures because the project came...

    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...
  17. Music database using Linked Data Structures. halp!

    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...
  18. Replies
    9
    Views
    2,848

    I see what you did there:redface:!! ty soooo much...

    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.
  19. Replies
    9
    Views
    2,848

    rando1 and rando2 are the plausibles. There are...

    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...
  20. Replies
    9
    Views
    2,848

    its a math game and you chose either addition or...

    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...
  21. Replies
    9
    Views
    2,848

    i need to keep the switch(order) as is so that...

    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...
  22. Replies
    9
    Views
    2,848

    Help using a character as parameter

    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...
  23. Replies
    3
    Views
    901

    Help using a character as parameter

    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...
  24. Replies
    5
    Views
    1,836

    okay I figured out how to do multichoice 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);
    ...
  25. Replies
    5
    Views
    1,836

    u can jump down to the add and subtraction...

    u can jump down to the add and subtraction functions. i figured thats where the random multi choice should be implemented
Results 1 to 25 of 27
Page 1 of 2 1 2