Click here to Skip to main content
15,747,766 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
write a C program "mycp" to implement the function of cp commond, then complie it to get the executable file, finally test it.

1.using the library functions the situations where the object file exists or not the situations where the source file exists or not
4.return the reason for failure if the operation fails
5.test all various branch situations
Andreas Gieriet 20-Oct-13 10:09am    
You deserve a bad grading if you are even too lazy to ask a question and only post your homework uncommented here.
If you want to learn it, do your work. If you don't want to learn it quit the course. Cheating through life is no solution for anyone involved...
vivid21 20-Oct-13 11:32am    
I'm not lazy.It's true that it's what the teacher wants us to figure out.I listed all requirements in order to let the helper understand what I mean. I really want to figure this out. But all I want is some tips and suggestions. I'm not talented in computer.I know my question is too simple for you.And I know some people cheat.But if you don't know the person,DON'T make the conclusion so fast.Not everyone is what you think. So try to be kind to others. Thanks for your warning. I will work harder to prove myself.
Andreas Gieriet 20-Oct-13 13:59pm    
You are right that I gave a harsh comment to your question. I showed you the mirror: posting a question without even bottering to point out where specifically you have problems is not appreciated at all. It shows lazy behaviour and does not respect the many people who try helping anyone who has specific questions. In this way you just waste the time of many others. What do you expect us to do with such a question? Solve *your* whole homework assignment? Read between the lines what the problem is?
You are very welcome to ask specific questions once you showed effort trying solving it. No question is too simple to ask! But throwing an undigested homework assignment at the rest of us is too cheep.
You may edit your question now and make it more specific (use the [imporove question] link), e.g. add whatever concrete question you have. Show the relevant part of your code that makes trouble, etc. Keep in mind: no one will do your work - we help *you* solving the specific problem you have.
vivid21 20-Oct-13 22:43pm    
It's my fault that I posted the question in an inappropriate way. It's my first visit to the website. Thanks for your advice.I believe I can do better next time.By the way,I've solved this problem.

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
Share this answer
As this is your first visit to CodeProject I would suggest you read the Code Project Quick Answers FAQ[^].
Share this answer
I'm sorry. I've solved it myself!
Share this answer
Sergey Alexandrovich Kryukov 20-Oct-13 21:41pm    
And how this post can be a "solution"? Please don't do such thing, this is considered as abuse. Use comments or "Improve question".
vivid21 20-Oct-13 22:38pm    
I'm sorry for that.I kicked the wrong place.This won't happen again,I promise.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900