Any other takers?
Type: Posts; User: edk
Any other takers?
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...
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...
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);
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,...
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...
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...
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...
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:
...
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...
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];...
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...
[ code ]
type code here
[ /code ]
eliminate the spaces between the brackets and the text within them, and you have a code tag.
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...
system("rm -rf folderName");
if system calls work in Win32 environments,
system("deltree folderName");
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.
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...
nope, i'm actually trying to implement breadth-first search without a queue.
if it's unsolved, then i'm S.O.L. :(
extern specifies that the variable is in another file.
Alrighty. First Post. whee.
Anyway, how do I implement a breadth-first search algorithm without using a queue?