Search:

Type: Posts; User: drshmoo

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,304

    Thanks for the tip. I'm not too concerned about...

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

    Capturing a form's contents

    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...
  3. Replies
    7
    Views
    1,769

    EDIT: I've determined one issue, and that's that...

    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...
  4. Replies
    7
    Views
    1,769

    Also I'm using gcc. We are using the latest c...

    Also I'm using gcc. We are using the latest c standards I believe so the "pukable" lines are "okay."
  5. Replies
    7
    Views
    1,769

    I will work on creating a small main that will...

    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...
  6. Replies
    7
    Views
    1,769

    function pointer issue

    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*,...
  7. Replies
    1
    Views
    1,161

    C++ for java/C programmer

    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...
  8. Replies
    3
    Views
    1,137

    grabbing a multi-word query from stdin

    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...
  9. Does this need equal length lists to work?

    Does this need equal length lists to work?
  10. got the get_words stuff working :). Intersection...

    got the get_words stuff working :). Intersection is the issue now!
  11. Sorting would indeed be nlogn, but the...

    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...
  12. Two Questions: Reading a word at a time, and list intersection

    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...
  13. Replies
    2
    Views
    5,288

    gcc error, undefined reference

    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:
    ...
  14. Replies
    3
    Views
    4,910

    I'm hoping to extend this binary string stuff to...

    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...
  15. Replies
    3
    Views
    4,910

    generating binary strings

    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...
  16. Replies
    4
    Views
    1,438

    If I use regex and my program is compiled into...

    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...
  17. Replies
    4
    Views
    1,438

    a grep c alternative?

    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,...
  18. Replies
    5
    Views
    9,707

    Ah. Is there anyway to avoid that? Any other...

    Ah. Is there anyway to avoid that? Any other function that avoids the return on the buff?
  19. Replies
    5
    Views
    9,707

    printf printing twice?

    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...
  20. Replies
    1
    Views
    3,040

    Tailing a file, fseek help

    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...
  21. Replies
    7
    Views
    1,577

    char* val char *val are both char pointers,...

    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.
  22. Replies
    3
    Views
    1,024

    Thank you! I think the only function I need...

    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...
  23. Replies
    3
    Views
    1,024

    Calling system functions help

    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...
  24. So you're suggesting I replace it with "struct...

    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...
  25. Hey folks. This one is really stumping me. Part...

    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...
Results 1 to 25 of 25