Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: chucker

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Confusion on constructors/classes for expression tree program.

    This is kind of a doozy, but previously I made a infix postfix calculator with integers only using structures, which had only three files 1.main.cpp, 2.arithmetic_expression.cpp 3.arithmetic...
  2. Replies
    3
    Views
    439

    Re: Constructor for expression string

    actually, so my op was already constructed basically, i think at least. i feel like something along the lines of this is all i need to get the expression tree going

    [code]

    ...
  3. Replies
    3
    Views
    439

    Constructor for expression string

    im trying to make a constructor to intialize an object and create my expression tree using another function. Im just confused on constructors, I have been sifting around for information, but am still...
  4. Creating expression tree with class instead of struct. differences?

    I have a struct version, but dont know what needs to be changed in the createexpressiontree function of the class version. i was told it was very similar to the struct version, so I was thinking i...
  5. Replies
    1
    Views
    1,107

    Converting from Infix to Postfix

    I am trying to work on the function that takes in a parsed string, puts it into vector form storing it in the variable "expression" and then uses stacks and queues to turn predifined math expressions...
  6. Replies
    8
    Views
    572

    Re: error: no match for ' ' problem

    okay here is the real code actually, and i did try and test if the conversion to RPN would print out okay. but for example one of the inputs is "31+25*2"; and all that my code could spit out is "31"...
  7. Replies
    8
    Views
    572

    Re: error: no match for ' ' problem

    I didnt get any compile errors but Im not sure how to test it without putting it into a tree expression tree yet. Did I implement it the way you meant?




    int...
  8. Replies
    8
    Views
    572

    Re: error: no match for ' ' problem

    like at the line where it says:


    if(expression[n] == '('){

    should it be expression[n].parse_string()?
  9. Replies
    8
    Views
    572

    Re: error: no match for ' ' problem

    that sounds reasonable. But generally how do I go about formatting my expression[n] variable to be recognized as a string? Like when it is not empty
  10. Replies
    8
    Views
    572

    Re: error: no match for ' ' problem

    how would I go about formatting the isdigit and isalpha line to make it a string instead?
  11. Replies
    8
    Views
    572

    error: no match for ' ' problem

    so there is something wrong with the compatibility of my expression variable with everything im trying to use it for. Do I need to create an alias for it to use it the way im am attempting to use it?...
  12. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    my nodes arent saving when i read in my text file :(. Thats why my strcmp isnt working. I am not sure what to do to make them save, thought for sure I set it up corretly, and then created a print...
  13. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    setting the break point didnt do anything it would just lock up anyway and say segmented fault. uhhggggggggggg
  14. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    yup finally got it read in. Now I am learning how messed up things are :/ apparently my debbugger gets a segmentation fault at my strcmp line in my find function. Not sure whats up



    struct...
  15. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    Also I remember needing a free( somewhere, can that cause infiniteness if i dont have it?
  16. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    Well everything i need is already there to input the data file. And no, in the box i just type in HW4Data.txt and that is it. so far everything else like ./hw4.exe HW4Data.txt has resulted in an...
  17. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    so just type in HW4Data.txt in the arguement box? I did it and instead of say error opening input my program just stopped responding. infinte loop somewhere? Or do i need to type something before...
  18. Replies
    2
    Views
    572

    input txt file using Cmd line arguements

    Im trying to use the command line to put a txt file in this code. I do Project->set project arguements in code blocks and nothing happens. How does one set up the arguements and where do i do it in...
  19. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    the code is already there for the file reading stuff, but how do i do the command line arguement in code blocks?
  20. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    took the artistNodePtr *sPtr out of findOrInsertArtist() and instead put it in the body and got rid of the *. The i realized i forgot to put startPtr in the find(name) function, there was supposed to...
  21. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    weird tho, when i run absolutely nothing happens :/ wait thats probably because i havent let it access the file yet? **** i know nothing about reading in txt files.
  22. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    compiled! Just had to follow more closely to what paul was doing. Im just worried about straying from the original code.
  23. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>

    #define LINEBUFFERSIZE 256

    /* Definitions for data structure nodes (artist, disc, track) */

    struct song
    {
  24. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    the sPtr = find(name); is causing the warning: passing arguement 1 of 'find' from incompatible pointer type.is there a work around? :D.

    Also there is too few arguements in my find function....
  25. Replies
    51
    Views
    4,414

    Re: Structure Linked Lists: Searching for Words.

    yeah i figured initialize the node and then return that pointer to the insert function which I was going to have called elsewhere. the current title "findorinsert" is kind of misleading buttttt im...
Results 1 to 25 of 68
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center