eHow launches Android app: Get the best of eHow on the go.

How to Write a Simple Program in C

Video Preview

Summary: Any text editor such as vi can be used to write a simple program in C. Write and compile a simple program in C4126 with tips from a software developer in this free video on computer training.

Views:
801
Presenter
By Dave Andrews
eHow Presenter

Dave Andrews is a software developer with a business and Web site selling programs and other computer services in Franklin, Tenn. Having worked in the IT industry for more than 8...read more

Post a Comment

Post a Comment

Video Transcript

"Hi, my name is Dave Andrews, today I'm going to show you how to write a simple program in C. Let's go to the computer, and you can use any text editor to write your simple program. I'm in Linux, so I'm going to use the Vim editor, but notepad would work, or if you have an ID program for C programming you can use that as well. This is my simple program, and all I've said is to include the input/output stream subsystem. Now this ent main function is the very first function that is run in any C program. The command that I've added here is to go to C alt which is an object that displays on the screen text, the phrase "Hello world" with a slash N at the end which adds a new line behind it. That's my very simple program. Let's save our test file as test dot CPP, and I'm going to use the G compiler to compile this program. You can use any compiler, many common ones are from Microsoft and another one from Borland. Let's run the results. As you can see, my phrase "hello world" has been displayed on the output. My name is Dave Andrews, and I've just showed you how to write a simple program in C."

eHow Article: How to Write a Simple Program in C

Related Ads

  • Have you done this? Click here to let us know.
Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics