Forum: C
Sep 14th, 2007, 3:16 AM
|
|
Replies: 0
Views: 203
Job Control in a Shell
Hello again,
This assignment is really kicking my butt.
I have to be able to handle the ability to CTRL-Z (suspend) a process and CTRL-C (terminate) a process within the shell I am writing for...
|
Forum: C
Sep 14th, 2007, 2:24 AM
|
|
Replies: 14
Views: 1,198
|
Forum: C
Sep 10th, 2007, 2:36 PM
|
|
Replies: 1
Views: 335
Hello again,
After fiddling around with the...
Hello again,
After fiddling around with the above for a few more hours I decided to try a different approach:
Fork only once and execute the previous command with the parent and then have the child...
|
Forum: C
Sep 9th, 2007, 11:39 PM
|
|
Replies: 1
Views: 335
C pipes
Hi,
I'm writing a C (using C++ for a few things) Shell for one of my classes (as indicated in my previous thread!). We are to create pipe functionality for this.
I have worked on this (pipes) for...
|
Forum: C
Sep 8th, 2007, 2:35 AM
|
|
Replies: 14
Views: 1,198
I probably do...
char x[]:
x be the start...
I probably do...
char x[]:
x be the start address of the contents. (doesn't point anywhere)
char *y;
y will point to another location in memory that has whatever x holds.
char*z[];
z will point to...
|
Forum: C
Sep 7th, 2007, 10:34 PM
|
|
Replies: 14
Views: 1,198
|
Forum: C
Sep 7th, 2007, 7:08 PM
|
|
Replies: 14
Views: 1,198
Hi,
I'm looking to turn that function into a...
Hi,
I'm looking to turn that function into a more generic one, where it will return a ptr to an array of chars. I'm not entirely sure on what the return type should be because char*[] func();...
|
Forum: C
Sep 7th, 2007, 4:42 PM
|
|
Replies: 14
Views: 1,198
Hi guys,
Thanks a lot for your help, your...
Hi guys,
Thanks a lot for your help, your suggestions have solve the problem with putting the contents into the arglist and then exec is now functioning correctly.
I made a slew of silly mistakes,...
|
Forum: C
Sep 7th, 2007, 2:30 AM
|
|
Replies: 14
Views: 1,198
Alright, here is what I have right now. This is...
Alright, here is what I have right now. This is really horrible code, I've been trying things out and the flow of the program isn't very good atm. If I can get the contents into the arglist without...
|
Forum: C
Sep 7th, 2007, 2:15 AM
|
|
Replies: 14
Views: 1,198
I didn't want to post code so I would not give...
I didn't want to post code so I would not give the impression I am trying to not do any work.
I'll write up a test program and then you can help me with it. I'm having a large problem with copying...
|
Forum: C
Sep 7th, 2007, 12:05 AM
|
|
Replies: 14
Views: 1,198
exec functions
Hello,
I'm trying to write a Linux shell for one of my classes. I'm having some logic problems with getting exec to work.
I am looking to use exec in the following manner:
1.) Only provide the name...
|
Forum: C++
Nov 23rd, 2005, 10:51 PM
|
|
Replies: 5
Views: 180
|
Forum: C++
Nov 23rd, 2005, 10:02 PM
|
|
Replies: 5
Views: 180
I am not using classes though and I'm not...
I am not using classes though and I'm not entirely sure how to do it with structures, and then have the PQ recognize that they are overloaded, or in general.
I have tried to do as described above,...
|
Forum: C++
Nov 23rd, 2005, 9:18 PM
|
|
Replies: 5
Views: 180
STL priority queue structure question
I am trying to use a PQ with a structure, VERTEX.
Here is the code for VERTEX:
struct edge
{
int start; //contains the indexs to the vertices
int end;
int cost;
|
Forum: C++
Oct 28th, 2005, 2:19 PM
|
|
Replies: 1
Views: 147
Using a program in another program
Hi,
Really easy question. Lets say I have, for example these two programs:
quicksort.cpp
and
numbers.cpp
quicksort.cpp is obviously a quicksort program.
numbers.cpp will take an input of say, X...
|
Forum: C++
Sep 24th, 2005, 10:26 PM
|
|
Replies: 5
Views: 237
|
Forum: C++
Sep 24th, 2005, 7:41 PM
|
|
Replies: 5
Views: 237
Quick Sort
Hey,
I am trying to write a quick sort lab that uses a randomized Hoare partition function. It doesn't seem to be working correctly. On some data sets, it will sort them very quickly, on others it...
|