English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Programming & Design - September 2006

[Selected]: All categories Computers & Internet Programming & Design

Im making a unix shell. I ask the user for input and then I have to parse that input and exectute the commands using fork and execvp, etc...

How would I parse an input such as:
ls -l | grep lib | less

so that I can correctly implement the commands in a pipe, etc...

I want to recognize commands like ";" to exectute commands right in a row and ">" and "<" to support file redirection.

Can someone please help me?

Right now, I have a strtok function collecting all of the tokens between spaces. What do I do next?

Thanks!

2006-09-27 16:14:06 · 4 answers · asked by tom_a_hawk12 4

what are it properties??
why are they needed??

2006-09-27 16:11:31 · 3 answers · asked by Sakar 1

/*The life cycle of an object*/
#include
#include
class Test
{
public:
Test()
{
cout<<"Constructor invoked"< }
~Test()
{
cout<<"Destructor invoked"< }
};
Test obj1;
int main()
{
cout<<"main() begins"< Test obj2;
{
cout<<"Inner block begins"< Test obj3;
cout<<"Inner block ends"< }
cout<<"main() ends"< getch();
return 0;
}

the output i get is

Constructor invoked
main() begins
Constructor invoked
Inner block begins
Constructor invoked
Inner block ends
Destructor invoked
main() ends

it should have been

Constructor invoked
main() begins
Constructor invoked
Inner block begins
Constructor invoked
Inner block ends
Destructor invoked
main() ends
Destructor invoked
Destructor invoked

plz help(destructor should automatically be initialized isn't it?)
i am using borland c++ builder 5.2 is it a factor??

2006-09-27 16:07:22 · 3 answers · asked by Sakar 1

I have laptop with Windows XP. Newtie. BE specific!

2006-09-27 15:50:36 · 2 answers · asked by regwoman123 4

I got to the point that blue screen says:

Setup needs to copy windows XP files onto your hard disk. Select the folder in which the files should be copied.

\WINDOWS(command prompt)

To change the suggested location, press backspace key to delete characters and then type the name of the folder you want to install Windows XP

I've never gotten this message before and I've been trying to install this stupid thing for the past 3 days.

I think I'm close to opening the "genie"

Can any one help with this one?

2006-09-27 15:43:02 · 7 answers · asked by Anonymous

have HP dv5000 laptop, newbie. AT a loss!

2006-09-27 13:15:56 · 5 answers · asked by regwoman123 4

what do i add to this HTML code (myspace contact table) to make its opacity 90%

2006-09-27 13:13:42 · 3 answers · asked by Paco 4

to win a contract I need to learn how to do binary code in vb very quick learner has a libary of over 200 computer books plus access to itt tech online ebooks which is full of titles if anyone could give me most info or even book titles be helpful :) thanks

2006-09-27 11:57:49 · 2 answers · asked by groundbrandon 3

i want ways to get a chance on earning some real money with my crazy love and passion within the computer graphics area

2006-09-27 11:57:21 · 2 answers · asked by crazy bone 1

no not the soda. ..
for to make a computer game
any sites?free?im sure there is.
i didnt know what category to put it in.

2006-09-27 11:14:56 · 2 answers · asked by heyitspreeti 5

2006-09-27 10:59:17 · 3 answers · asked by Al 3

2006-09-27 10:37:06 · 9 answers · asked by sweet c 1

Yaa..u can contact me through mail..its urgent....I'm free to have a lesson with a teacher...plzzz help..

2006-09-27 09:53:41 · 9 answers · asked by cul attitude 1

how do peole get those little hearts on their username and their ?'s

2006-09-27 08:58:39 · 7 answers · asked by pink_luver 2

I want to learn how to design web sites, by putting it all together (CSS and graphics). Basically I want to learn the skills to create a visually pleasing website.
Any sites that focus on the design vs HTML coding is what I'm looking for.

2006-09-27 08:40:30 · 7 answers · asked by blzempire 1

I am designing a website using php. I want some part of the site to load only once. That is, lets say, after a member made his payment, he wil be redirected to the registration page. Without his payment effected, he wont be able to access this page. Now that he has paid, he will be able to access the registration page. But as soon as he performed registration and click on submit. I dont want him to be able to access the page again, either by using the link or the BACK button. How do i do this? Can anyone help me??

Serious answers only please. If its beyond your knowledge, move on, I want the answers to be well detailed.

Thanking you in advance.

Regards

2006-09-27 07:39:49 · 2 answers · asked by Nadeem 2

.Can anyone help.I have tried updating my add ons in Explorer but they all seem fine.

2006-09-27 07:33:14 · 1 answers · asked by Julie 5

I bought a 23-in-1 USB 2.0 Multi Card Memory Stick Duo Pro Reader, I downloaded the CD, ( little cd that comes with the usb), but when i try to open it ( start+programs+then mulitmedia card reader) this last action if i click on it, it gives me the "unistall". I don't want to unistalled but att the same time it doesn't open the usb. My computer is a little old, but i have windows 2000 and more..so I don't know what is wrong. Can someone help please. Do i need something else or to download another system or have some kind of different support system?? I don't undrestand i followed every step. Please help. Thank you all for your asnwers.
d.

2006-09-27 06:25:18 · 3 answers · asked by tica2442 1

I want to have a corner on my blog which show pictures that change everytime the reader clicks on refresh or on a link.

2006-09-27 06:11:21 · 1 answers · asked by blognewbieboy 1

2006-09-27 05:58:21 · 3 answers · asked by omar_m_1990 1

how can this be done,as the person only started in june 06,has 604 best answers,total points of 11,749 and is on level 6 ???

2006-09-27 05:34:12 · 12 answers · asked by Anonymous

Recently, an ex-employee of my company threaten me to sell the code of one of our apps if we didn't give him money.

We sued him and he got busted by the police. When they interrogated him, he told them that he used a VB6 decompiler in order to achieve the source code.

Now, since then, I've been searching at the net and found no real VB6 decompiler, all that do some apps are "grab" the forms but with no code.

So, does it exist really a VB6 decompiler?

2006-09-27 05:29:33 · 3 answers · asked by Ya no estoy en Y!R por Facebook! 6

If you are, would you know how to change the color of the background of the msn group?

2006-09-27 05:12:29 · 1 answers · asked by Anonymous

I only have word 97, notepad, wordpad, MS-DOS command prompt. I don't want to download anything, and if you could provide a link to a tutorial or something, that'd be nice. I'm looking to design some form of game.

2006-09-27 05:08:09 · 9 answers · asked by marc 4

Where can I find all the documented bugs in IE6 for CSS layout design and the solutions? I'm very new to CSS and what looks good in Firefox looks terrible in IE6.

2006-09-27 04:36:13 · 3 answers · asked by Joe-slim 3

I've got a Mac OS X 10.1.5. All of a sudden I am unable to use i-Tunes. The error message I get is that I need Mac OS X 10.7.1. How on earth can I get my computer updated to that point. I have gone back and found updates back til OS X 10.2.2 and can't seem to find anything earlier. Is there anything I can do to update my computer? I don't know anyone in my area that services Mac. Any suggestions?

2006-09-27 04:13:43 · 1 answers · asked by LJ 4

I have a pivot table and now I want to add a new field in, I know I need to add the data into the data source worksheet. But don't know detail. Thanks.

2006-09-27 04:07:26 · 1 answers · asked by Ben 1

HELP! I am using somebody's hacked version of Cygwin to cross-compile something. I installed something yesterday and I think it broke my environment (which was compiling OK). Uninstall appears to have not reset things.

gcc calls as, but cannot find it. I get an odd error. Suppose I "gcc foo.c". I will get an error from as about foo.o having "bfd assertion fail". When I saw this in the past, it was because of cross-compile issues. But this time, foo.o does not exist. I notice that the error message is prefixed with the name of the exe file, which looks kinda like this:
C:\one\two\three/../../suddenly/slashes/point/other/way
If you parse the \ and / correctly, the as.exe file is there, but can this be right?

What environment vars could possibly change that would cause gcc or as to suddenly not work? I check the usual suspects like include and lib...and find nothing unusual.

Any help is appreciated...can add details upon request. Compiling mips-elf code on a PC. Thx

2006-09-27 03:49:22 · 2 answers · asked by sideshot72 3

2006-09-27 03:18:15 · 8 answers · asked by Anonymous

fedest.com, questions and answers