![]() |
|
#1
|
|||
|
|||
Programming in MinixHello. I want make this but i dont know how. Please give me a hand of help :-)
"Create a new command for Minix, that will be called UNITE. UNITE command will make and show on screen,in a file the contests of two files, joining together. The syntax must be like this : unite filename1 filename2 filename3 Filename1 and filename2 will be the names of the two joining files, and filename3 the file that will be produced. The command should work like this : File filename3 will contain data of the filename1+filename2 joining (with that order) and will show it on screen. The file that you create must be in /usr/src/commands/simple catalog with the name UNITE.C. Also you must modify the corresponding makefile." sorry for my english |
|
#2
|
|||
|
|||
Re: Programming in MinixQuote:
Program steps: Code:
The assignment seems to require echoing each char on the screen as they are copied to the target, so just use putchar() or some such thing in the loops where you are reading and writing the files. If you don't know how to use a Makefile, then look for examples in your book or on-line. Test the program in your development directory. When the program has been thoroughly tested, install it in the required directory (using "make install" in your Makefile to copy it to the designated place). If you have any questions on your code or your Makefile, then you can ask. 1. Show the code (and/or Makefile). This shouldn't be a huge amount of code, so post the entire program, not just a few lines that you think are problematic. 2. Tell us what you did (what command line or however else you invoked the program). 3. Tell us what happened.If you got compiler messages that you don't understand, then post the exact message (copy it directly into your post). If the program compiled OK but gave unexpected behavior, describe it. 4. Tell us what you expected to happen. 5. Tell us what you don't understand about the difference between 3 and 4. Regards, Dave |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| printer / font color / windows programming | nicolas_qc | MS Visual C++ / MFC Forum | 0 | 04-Jan-2006 00:13 |
| Read/ Write EXCEL files using C/C++ programming | confused_pig | C++ Forum | 4 | 25-Nov-2005 01:27 |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Network programming | pointer | C++ Forum | 2 | 20-May-2005 15:36 |
| GUI programming | crystalattice | C++ Forum | 5 | 14-Sep-2004 13:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The