Search:
Type: Posts; User: chucker
Search:
Search took 0.01 seconds.
-
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...
-
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]
...
-
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...
-
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...
-
April 24th, 2012, 08:08 AM
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...
-
April 24th, 2012, 12:39 AM
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"...
-
April 24th, 2012, 12:03 AM
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...
-
April 23rd, 2012, 10:16 PM
like at the line where it says:
if(expression[n] == '('){
should it be expression[n].parse_string()?
-
April 23rd, 2012, 09:22 PM
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
-
April 23rd, 2012, 07:30 PM
how would I go about formatting the isdigit and isalpha line to make it a string instead?
-
April 23rd, 2012, 06:56 PM
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?...
-
April 11th, 2012, 04:46 PM
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...
-
April 9th, 2012, 10:26 PM
setting the break point didnt do anything it would just lock up anyway and say segmented fault. uhhggggggggggg
-
April 9th, 2012, 08:18 PM
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...
-
April 9th, 2012, 06:53 PM
Also I remember needing a free( somewhere, can that cause infiniteness if i dont have it?
-
April 9th, 2012, 06:44 PM
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...
-
April 9th, 2012, 06:09 PM
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...
-
April 9th, 2012, 05:26 PM
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...
-
April 9th, 2012, 04:20 PM
the code is already there for the file reading stuff, but how do i do the command line arguement in code blocks?
-
April 9th, 2012, 03:56 PM
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...
-
April 9th, 2012, 03:46 PM
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.
-
April 9th, 2012, 03:45 PM
compiled! Just had to follow more closely to what paul was doing. Im just worried about straying from the original code.
-
April 9th, 2012, 03:08 PM
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LINEBUFFERSIZE 256
/* Definitions for data structure nodes (artist, disc, track) */
struct song
{
-
April 9th, 2012, 02:55 PM
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....
-
April 9th, 2012, 02:38 PM
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...
|
Click Here to Expand Forum to Full Width
|