Thanks for the tip. I'm not too concerned about memory management. I'm going to limit the size of the two stacks. Also, I'm using generative brushes, so point management would be very cumbersome.
Type: Posts; User: drshmoo
Thanks for the tip. I'm not too concerned about memory management. I'm going to limit the size of the two stacks. Also, I'm using generative brushes, so point management would be very cumbersome.
I'm creating a drawing program of sorts, and I'm trying to implement undo and redo. Rather than go through the pain of saving everything ever drawn as a trackable object, I'd like to figure out how...
EDIT: I've determined one issue, and that's that the list insertions return the list. I had not been accounting for that. I am now encountering a seg fault and will work on diagnosing that.
It...
Also I'm using gcc. We are using the latest c standards I believe so the "pukable" lines are "okay."
I will work on creating a small main that will just print the contents of the list one by one. The issue is that I am working with (as assigned) someone else's list adt, so I don't have access to the...
Hello all. I'm working on a project that utilizes some existing code, but I only have the .h and .o files. One function, list_find, is declared as:
void *list_find(tList, void*,...
Hello C++ board!
I see the book thread, but I figured it may just be quicker to ask then the trudge through all 11 pages.
I am a Java programmer with a good amount of experience in C. Currently...
I'm trying to allow the following
Assume program is running and it's time for input:
hello word
The program then needs to take this input and for each word perform a search, breaking up that...
Does this need equal length lists to work?
got the get_words stuff working :). Intersection is the issue now!
Sorting would indeed be nlogn, but the intersection isnt quite.
list 1: zubra, zzbra
list 2: Aztec, Carl, zebra
each word in list1 would need to be checked at list2. Given that they are...
Hey folks,
I'm trying to create a function that reads a word one at a time. I have that function all ready to go, and I have a loop in my main that should terminate when there aren't any more...
EDIT: IGNORE THIS. MODS PLEASE LOCK. PROBLEM SOLVED. READING IS POWER
Hello! Getting an undefined reference error. I've got two .c files at the moment.
pair is a struct with these contents:
...
I'm hoping to extend this binary string stuff to a particular situation.
If I have an identifier like "abcd" I need to produce every possible split for that such that a split consists of a...
Hey folks,
I'm in need of some help finding/creating an algorithm to produce all binary strings given some length "n"
It doesn't have to be in C, but you all tend to give good answers so i...
If I use regex and my program is compiled into some executable that regex should still work if the executable is run in another environment? Eventually I'm going to have to have a Java gui...
Hello folks,
I need to use some regular expression searching of the dictionary. I can do a system call to grep, but I'm looking for portability with this program, and since grep is part of linux,...
Ah. Is there anyway to avoid that? Any other function that avoids the return on the buff?
I have a short main that interacts with the user, grabbing commands to call on files passed as arguments to the program. The program queries the user for a command, gets the command, and then...
Having some troubles. The idea is that if the file size is greater than 100 bytes, then the file is sought to the 100th to last byte. Then the file is printed to the screen. I'm getting a segfault at...
char* val
char *val
are both char pointers, i.e., they point to some char in the heap. The beginning char of a string for instance.
Thank you!
I think the only function I need to do that I'm still a bit iffy on is tail. I'm sure I can do it in a round-about way with regular old C io, but is there any form of tail like chmod...
Before you suggest it! I've read the short tutorial on calling library/system functions from within a c program.
I'm tasked with creating a program that allows advanced file i/o. Its call will...
So you're suggesting I replace it with "struct bstnode" instead of BSTNode?
Edit!
Yep! Worked. Thank you! Looking back at old projects I did exactly what you suggested. Looks like I just...
Hey folks. This one is really stumping me. Part of the project requirements for assignments in my C class is "No memory leaks." So I finished my project, and then went in and included memwatch.h in...