thank you so much. i removed ref and it worked, kinda, it still crashed but but during run time. as for the other stuff... i copied over string from the other class the reason i dont use it is...
Type: Posts; User: t014y
thank you so much. i removed ref and it worked, kinda, it still crashed but but during run time. as for the other stuff... i copied over string from the other class the reason i dont use it is...
i dont understand b/c i didnt use "new" in my program. it says new is in "xmemory" idk what that does but it is an include and i dont think i sould change it. as for my profileNode class it doesnt...
why can't i do this?
(not sure which includes matter so i just put them all in)
#include <ws2tcpip.h>
#include <windows.h>
#include <iostream>
#include <fstream>
#include <stdio.h>
i changed it to be more C++ like and it seems to work now. still dont know why it didn't work before. the %[^\n] reads in a whole line where %s reads in a string that is the reason i was using that....
the reason is simply because I'm used to C-stile I/O. i didn't think it would make a difference.
in my code is it "!=" idk why it is wrong here. and this is C++ code.
the file is set up so that the ** indicates the start of the data in the file. if there is no ** then the data file is set...
idk why but i cannot figure out what is wrong with my program. i found it crashes on strcmp but as far as i can tell this is how i have always used it. i'll post what i think are the impotent parts....
i have 2 questions that i'm sure are easy to answer but i can't find the answer anywhere. I'm trying to write a program that will sent information though a UDP datagram from port 2006 on the source...
i know it will take "m" to find the highest sum in each of the new sets. so i guess i was right, O(n^3), b/c n^2*m = n^3 (m is about the same as n). thanks for confirming. :D
I just need some help finding the run time of my program in the general big-Oh notation. what my program does is takes a 2d array of numbers adds all the possibilities to make 1d sets and then finds...
the best i can think of is to have 4 if cases to find the max then inside of each if statement have 3 more to find the min. i don't know if that counts as 4 or 16 though. there are only 4 if...
i have posted this before. please see this
i am almost 100% positive that it is a memory problem in my program. the program is supposed to turn a sting of numbers in to a linked list. each node in...
maybe if i knew how to use the debugger (Dev-C++) that would help?
i was told that if the pointer was pointing to 'NULL' then free() did nothing... not make the program crash. but i don't know that much.
but if that is true then you could free the same thing any...
i wasn't trying to be passive aggressive. i needed to get off at that time and when i used the quick post thing it locked up... i clicked it twice total, i guess both worked.
I'm getting off line now. any input will be helpful. thank you
I'm getting off line now. any input will be helpful. thank you
oh i guess it does...
we did this same program with dynamically allocated arrays. and i didn't have this problem but that was an array not a linked list...
yes it printed "okay" twice before the program ended
there is no specifications about what base. i'll print the assignment here
it made me print it like this...sorry
Computer Science I
Program 3: BigIntegers
Assigned: 2/9/09 (Monday)
Due:...
when i ran that it worked... your program did not crash
yes it is an assignment and i have to use linked list /sigh
i don't get an error message at all (windos XP) but i think it is a memory problem. but i cant see how it is.
I'm trying to make a program that adds and subtracts very large integers. the integers are stored digit by digit in a linked list. i am having problems with the program crashing with out an error...
i guess it helps if i don't close my for loop =P
for (i = 0; i < diction->size; i++);
needs to be
for (i = 0; i < diction->size; i++)
...nm about that last one...
the code i have now is
struct dictionary* ReadDictionary(void)
{
struct dictionary* diction;
char word [MAX_SIZE];