Search:

Type: Posts; User: edk

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,654

    Any other takers?

    Any other takers?
  2. Replies
    7
    Views
    2,654

    Yeah, taylorguitarman got the spork thing correct...

    Yeah, taylorguitarman got the spork thing correct ... www.spork.org (if it's still up) is the most disturbing site I've ever seen ;)

    taylorguitarman -- the only reason I didn't use LISP was...
  3. Replies
    7
    Views
    2,654

    Natural Language Parsing

    I'm looking for an easy-to-understand implementation of the Earley parser, written in C++, that works in Solaris. The Earley parser I'm looking for is for natural language, not for programming...
  4. Thread: Semaphores

    by edk
    Replies
    1
    Views
    1,690

    Here's the code segment for what i am doing: ...

    Here's the code segment for what i am doing:




    for (int i(0); i < theOrder.size(); i++) {
    pid = fork();
    if (pid < 0) {
    cerr<<"ERROR: fork error\n";
    exit(0);
  5. Thread: Semaphores

    by edk
    Replies
    1
    Views
    1,690

    Semaphores

    OK, after my last thread on this subject failed miserably, I am trying again.

    How do I go about creating and unlocking a set of 5 System V semaphores? Once this is done, how do I wait for them,...
  6. Thread: Solaris IPC

    by edk
    Replies
    2
    Views
    2,609

    Oh come on, I'm sure someone knows what's going...

    Oh come on, I'm sure someone knows what's going on. You have answers to every other question except mine.

    All I need to do is fork 4 processes, have each one wait for a semaphore, and have them...
  7. Thread: Solaris IPC

    by edk
    Replies
    2
    Views
    2,609

    Solaris IPC

    I'm new to this system programming bit. I have no idea how to do this stuff, so keep this in mind. I have never forked/execed a process, used semaphores for synchronization, or used shared memory...
  8. Thread: Stack of istreams

    by edk
    Replies
    2
    Views
    983

    Stack of istreams

    GAH! this is giving me gray hairs. how the jeef do i write a class for a stack of type istream? i don't need a template, since this is only to be used for istream.

    here's the basic stuff i have...
  9. Replies
    2
    Views
    3,921

    Getting multiple inputs using cin

    OK, so here's the deal. I'm writing a text-based program that accepts either single-character inputs, or multiple inputs from its own prompt. So, the following inputs are valid:


    ...
  10. Replies
    5
    Views
    1,197

    you may be a stoned coder, but you still know...

    you may be a stoned coder, but you still know your ****. thanks :D

    <edit> dangit, vB censored swearing. the **** above should say $ |-| | +. i guess that's how you write it without actually...
  11. Replies
    5
    Views
    1,197

    slipped my mind ... cleaning up strings

    OK ... if i read in a string, how do i get rid of any leading/trailing whitespace? here's how i am reading in the string...



    const int maxStrLen(100);
    .
    .
    .
    char userInput[maxStrLen];...
  12. Replies
    8
    Views
    1,029

    be sure to write a copy constructor as well ......

    be sure to write a copy constructor as well ... if you don't write a copy constructor, i don't think the compiler will provide you with one. if you're passing by value to a function, you're...
  13. Thread: Use Code Tags!

    by edk
    Replies
    9
    Views
    2,695

    [ code ] type code here [ /code ] eliminate...

    [ code ]
    type code here
    [ /code ]

    eliminate the spaces between the brackets and the text within them, and you have a code tag.
  14. Replies
    2
    Views
    828

    if it's a vector like a resizeable array, here's...

    if it's a vector like a resizeable array, here's what you do.



    for (int i(0); i < yourVector.size(); i++){
    cout<<yourVector[i]<<"\n";
    }


    This will display each value in your vector...
  15. Thread: Deleting

    by edk
    Replies
    1
    Views
    850

    system("rm -rf folderName"); if system calls...

    system("rm -rf folderName");

    if system calls work in Win32 environments,

    system("deltree folderName");
  16. Thread: const??

    by edk
    Replies
    2
    Views
    881

    if it's just const float var; then it assigns...

    if it's just const float var; then it assigns whatever default value the compiler assigns to it to a constant float value. so, you can't change it.
  17. Replies
    3
    Views
    1,474

    I do this as well. int num = 10;

    I do this as well.

    int num = 10; <-- creates the variable, initializes with the default value, then assigns 10 to it.

    int num(10); <-- creates the variable and initializes it with whatever's...
  18. Thread: CS Theory Question

    by edk
    Replies
    4
    Views
    1,508

    nope, i'm actually trying to implement...

    nope, i'm actually trying to implement breadth-first search without a queue.

    if it's unsolved, then i'm S.O.L. :(
  19. Replies
    3
    Views
    9,740

    extern specifies that the variable is in another...

    extern specifies that the variable is in another file.
  20. Thread: CS Theory Question

    by edk
    Replies
    4
    Views
    1,508

    CS Theory Question

    Alrighty. First Post. whee.

    Anyway, how do I implement a breadth-first search algorithm without using a queue?
Results 1 to 20 of 20