School of Physics, Mathematics, and Computing 
Not logged in (login)

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!" followup message.

How do I ask a good question?

Final examination information
RSS cloud
Jump to:

Alias for default c program

1 of 951 articles shown, currently no other people reading this forum.
From: Amitava D.
Date: Wed 18th Aug 2021, 1:10pm

"Sohaib Ahmed" <22*7*9*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hi,
> Does anyone know how to set up an alias for a c file containing the default lines of 
> code for a c program? (i.e. with standard header files and the main function)?
> [Example]

create a file where you put all the header files (include statements) and include that file. Including the main() in that file is not advisable, as your code will look strange and chances of mistake are higher.

Related articles

Alias for default c program (all 5) RSS
├─ original   Wed 18th Aug 2021, 1:05pm, Sohaib A.
├─ reply 1   Wed 18th Aug 2021, 1:10pm, Christopher M.
├─ THIS   Wed 18th Aug 2021, 1:10pm, Amitava D.
├─ reply 3   Wed 18th Aug 2021, 2:33pm, Sohaib A.  O.P.
└─ reply 4   Wed 18th Aug 2021, 2:34pm, Sohaib A.  O.P.
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  4:54pm Oct 24 2021