Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Please answer the following questions: a)Refering to the file system diagram above , the three files in timeproj directory belong to the same multiple-file

image text in transcribed

1. Please answer the following questions:

a)Refering to the file system diagram above , the three files in timeproj directory belong to the same multiple-file program. Write down the command or the property sequenced comands that would compile and link the three files to generate an executable a.out file

b) C++ does not allow any header file.(e.g the time.h) to be "included" more than once during compilation. Such a requirement can be automatically enforced with the help of three preprocessing directives.Assuming the header of the file is named time.h , write down the three processing directives and show where they are placed in relation to the content/code of the time.h header file.

c) Show the unix command or commands needed to compile an individual source file with .cpp extension into intermediate object files with o.extension

d) Show all the processing directives that must be included in the two.cpp files in the timeproj directoryin order for the three files in the directory to be compiled successfully as separate files.

e) In the context of Unix file system , what does "path" means?

f) Write down the absolute path for the main.cpp in the timeproj directory

g)Write down the relative path from inside timeproj directory to the prgm1.cpp file

h)Write down the Unix commands and key strokes needed to create a new sourcefile named time.cpp and then save it to disk using the pico editor.

i) In Unix each file has three access modes, namely r,w, and x.

1) Write down the unix command that displays the file access mode for all files in your current folder

2) If the access mode for a file is shown as rw-rw-r, describe the meaning of each of the nine characters

Thanks for your help. I would vote like when answered..

I (root) home bin romeo juliet programs programs documents prgm 1.cpp timeproj doc1 time.h time.cpp main.cpp

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Name and describe the steps in the software development cycle

Answered: 1 week ago