Uploaded by Clanguage on Jan 1, 2007
Some small programs you can test if would like to program with the C computer programming language.
Here is a program called welcome.c that will display some text on the screen. You can modify it to display any text you want. Note, comments for your personal programming use are placed between: /* and */. They often are used to describe a portion of code as a reference if you need it later. The text between the comment symbols/syntax will be skipped over by the compiler/computer.
/* welcome.c Jan 1, 2007
This program will display some text on the screen.
*/
#include "stdio.h"
void main(void)
{
printf("Welcome");
return;
}
Here is a program that will sound a beep, that can perhaps be used to signal an event, etc.
/* beep.c
Jan 2, 2007
This program will sound a beep alert sound.
Use more \a characters to lengthen the sound.
*/
#include "stdio.h" /* automatically include the code of stdio.h that contains the code of the functions that are used to display text */
void main(void)
{
printf("\a");
return;
}
To compile the c source program to an .EXE file/program, you would type in something like
the following on the command line:
tcc welcome.c or:
tcc Cprograms\welcome.c
The output should be a file called: welcome.exe
Windows will automatically create an icon for you, so that you can click on it and execute/run the program in a graphical manner, rather than a text/console/command-line manner.
---------------------------------------------
TCC can also be used to create some Windows. TCC included an example that creates a window
and displays some text:
tcc examples\hello_win.c
Windows programming will not be covered in any detail here, but will give some links where you can start. Some will be batch files, some will be command line commands (essentially DOS), and some will be for Windows.
http://en.wikipedia.org/wiki/Kernel32.dll
http://en.wikibooks.org/wiki/Basic_Computing_Using_Windows
http://en.wikipedia.org/wiki/Batch_file
http://en.wikibooks.org/wiki/Programming:C
http://en.wikibooks.org/wiki/C%2B%2B_Programming
http://en.wikipedia.org/wiki/Cmd.exe
http://en.wikipedia.org/wiki/Command_line_interface
http://en.wikipedia.org/wiki/Comparison_of_computer_shells
http://msdn2.microsoft.com/en-us/library/ms682087.aspx
http://johnbokma.com/windows/command-prompt-shortcut.html
http://en.wikipedia.org/wiki/DOSBox
http://en.wikipedia.org/wiki/Kernel_%28computer_science%29
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-u...
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-u...
http://www.mingw.org/
http://www.mingw.org/download.shtml
http://en.wikipedia.org/wiki/MS-DOS
http://www.adsciengineering.com/tools/nowindow/
http://en.wikipedia.org/wiki/Shell_%28computing%29
http://www.ecma-international.org/publications/standards/Ecma-234.htm
http://en.wikipedia.org/wiki/System_console
http://www.gdargaud.net/Humor/C_Prog_Debug.html
http://blogs.msdn.com/oldnewthing/
http://blogs.msdn.com/
http://en.wikibooks.org/wiki/Wikibooks:Computer_science_bookshelf
http://en.wikipedia.org/wiki/Win32_console
http://en.wikipedia.org/wiki/Windows_api
http://msdn2.microsoft.com/en-us/library/aa383750.aspx
http://en.wikibooks.org/wiki/Programming:Windows_Programming
Category:
Tags:
License:
Standard YouTube License
0:44
11 year old math geniusby wofladopt321,908 views
8:32
Create a Basic Graphics Program in C++by UpmanyuDas5,118 views
0:06
C Programming #3 - Functionsby Clanguage16,612 views
8:52
C Programming Primerby Yestoi13,332 views
9:58
Learning BASIC Programming: Lesson 1by jaywalker512167,794 views
4:34
Beginning C++ Programming: Lesson 1by tracycoder525,355 views
6:56
Cprogramming for beginners: Part 1by jahangir5059011,052 views
2:25
How To Install a C Language Compiler/Linkerby ShaneJuGi24,133 views
0:28
turbo C - hello worldby Godexploit5,496 views
5:46
Programming in C : Lesson 2by hhemanth17,805 views
6:27
How to write an addition program in Cby xcodeprogrammer14,931 views
3:56
Programming in C : Lesson 1by hhemanth30,941 views
7:52
C++ Example 3 Adding Numbers (Class H)by infokunn4,197 views
1:45
Turbo C Tutorial Part 2 (gotoxy & scanf)by nortej8,644 views
7:52
Programming in C : Lesson 3by hhemanth10,471 views
5:14
C Language Tutorialby turbozood58,067 views
2:51
C Programming Tutorial 2: The Basicsby PactatTutorials1,694 views
9:56
The Little Book of C Programming: User Toolsby GamerPlusPlus17,347 views
7:29
C++ Tutorial 1 ("Hello World")by 2000ContourSVT176,617 views
0:47
MasterPlax Tutorial - Actual Code of Turbo Cby masterplaxlordmight1,820 views
- Loading more suggestions...
All Comments