Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 17 of 17
Search took 0.01 seconds.
Search: Posts Made By: dayrinni
Forum: C Sep 14th, 2007, 3:16 AM
Replies: 0
Views: 203
Posted By dayrinni
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
Posted By dayrinni
Thanks for your help. It was useful.

Thanks for your help. It was useful.
Forum: C Sep 10th, 2007, 2:36 PM
Replies: 1
Views: 335
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
Thanks for your reply. For the malloc part - I'd...

Thanks for your reply.

For the malloc part - I'd allocate memory based on the size of what I'd like to put in the index?
ie: If my command input was:
cp testfile.txt mynewtestfile.txt

and my...
Forum: C Sep 7th, 2007, 7:08 PM
Replies: 14
Views: 1,198
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
DOH!!!! Thank you to the both of you. I removed...

DOH!!!!

Thank you to the both of you. I removed the one I wrote and it works now LOL. I can go and finish up the rest of the program now.

I am thankful that it was something stupid that was...
Forum: C++ Nov 23rd, 2005, 10:02 PM
Replies: 5
Views: 180
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
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
Posted By dayrinni
Fixed. I was an idiot and coded the random number...

Fixed. I was an idiot and coded the random number generator incorrectly. It works now. At least I was right and it was something simple :P
Forum: C++ Sep 24th, 2005, 7:41 PM
Replies: 5
Views: 237
Posted By dayrinni
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...
Showing results 1 to 17 of 17

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC