Facts of C Programming Language
Facts of C Programming Language
CµÄÒ»Ð©ÕÆ¹Ê
(Ó¢ÎÄÔÎÄ:http://www.programmingfacts.com/2009/12/01/facts-of-c-programming-language/)
C programming language was developed in 1972 by Dennis Ritchie and Brian Kernighan at the Bell Telephone Laboratories (AT&T Bell Laboratories) for use with the Unix operating system for programming computer operating systems. C is a procedural oriented programming language.
CÓïÑÔÊÇÔÚ1972ÄêÓɱ´¶ûʵÑéÊÒµÄDennis RitchieºÍBrian KernighanΪ¿ª·¢²Ù×÷ϵͳ£¬ÎªUnixÌṩ±à³ÌÓïÑÔ¶øÊµÏֵġ£ËüÊÇÃæÏò¹ý³ÌµÄ±à³ÌÓïÑÔ¡£
C was designed as a minimalist language to be used in writing operating systems for minicomputers, which had very limited memories compared with the mainframe computers of the period
C×î³õÖ÷ÒªÊÇÓÃÀ´ÎªÎ¢»ú±àд²Ù×÷ϵͳ£¬Òò¶ø±»Éè¼ÆµÄ“СÇÉ”¶øÓÖ¸»ÓÚ³éÏóÁ¦£¬ÒòΪºÍµ±Ê±µÄ´óÐÍ»úÏà±È£¬Î¢»úµÄÄÚ´æ·Ç³£ÓÐÏÞ¡£
Also C was designed for implementing system software. Although C was designed for implementing system software,it is also widely used for developing portable application software.
µ±È»£¬CÒ²±»Éè¼Æ³ÉÊÊÓÚ±àдϵͳÈí¼þ¡£ËäÈ»CÊÇϵͳ¼¶±à³ÌÓïÑÔ£¬µ«ÔÚ¿ÉÒÆÖ²Ó¦ÓÃÈí¼þ¿ª·¢ÁìÓò£¬µ½´¦¶¼¿ÉÒÔ¿´µ½ËüµÄÉíÓ°¡£
The initial development of C was devised during 1969–73, alongside the early development of the UNIX operating system. It was based on CPL (Combined Programming Language), which had been first condensed into the B programming language and later on it was called as computer programming language by Ken Thompson, an American computer scientist and a colleague of Ritchie. Ritchie rewrote and restored features from BCPL to create C-Programming Language, rewrite the development of the Unix operating system in C language.
CµÄ×î³õ¿ª·¢ÓëʵÏÖÊǺÍUNIXϵͳһÆð½øÐеģ¬Ê±¼äÊÇ1969µ½1973Äê¡£CÓïÑÔ»ùÓÚCPL£¨»ìºÏ±à³ÌÓïÑÔ£¬Òë×¢£ºCombined Programming LanguageÊÇÔçÆÚµÄÒ»ÖÖ¼ÆËã»ú±à³ÌÓïÑÔ£¬Óɽ£ÇÅ´óѧÊýѧʵÑéÊÒºÍÂ×¶Ø´óѧ¼ÆËã»úÑо¿ÊÒÁªºÏ¿ª·¢µÄ£©,ÈËÃǽ«CPLÓïÑÔµÄÌØÐÔÈÚÈëµ½BÓïÑÔÖУ¨Òë×¢£º¼´ºóÀ´µÄBCLPÓïÑÔ£©£¬ÃÀ¹ú¼ÆËã»ú¿ÆÑ§¼ÒKen ThompsonºóÀ´³ÆBΪ¼ÆËã»ú±à³ÌÓïÑÔ£»KenÊ
Ïà¹ØÎĵµ£º
#include <stdio.h>
exec sql begin declare section;
char userid[11]="hr/oracle";
char std_name[10];
int std_number;
int dept_number;
exec sql end declare section;
char temp[3];
void sql_error();
#include <sqlca.h>
main()
{
std_number=060415;
exec sql whenever sqlerror do sql_ ......
ÔÚANSI CÖУ¬¶ÔÎļþµÄ²Ù×÷·ÖΪÁ½ÖÖ·½Ê½£¬¼´Á÷ʽÎļþ²Ù×÷ºÍI/OÎļþ²Ù×÷£¬ÏÂÃæ¾Í·Ö±ð½éÉÜÖ®¡£
Ò»¡¢Á÷ʽÎļþ²Ù×÷
¡¡¡¡ÕâÖÖ·½Ê½µÄÎļþ²Ù×÷ÓÐÒ»¸öÖØÒªµÄ½á¹¹FILE£¬FILEÔÚstdio.hÖж¨ÒåÈçÏ£º
typedef struct {
int level; /* fill/empty level of buffer */
unsigned flags; /* File status flags */
char fd; /* File des ......
[ÕªÒª]¿ÉÀ©Õ¹±êÖ¾ÓïÑÔ£¨¼ò³ÆXML£©ÔÚʵÏÖÐÅÏ¢±ê×¼»¯¡¢ÐÅÏ¢µÄ½»Á÷Óë¹²ÏíÉÏÓÐÆä¶ÀÌØµÄ¼¼ÊõÓÅÊÆ£¬Òò´ËËüÊܵ½Á˹㷺µÄÖØÊÓ¡£È«ÎÄÊ×ÏÈÌá³öÁË»ùÓÚXMLµÄÈý²ãClient/ServerÄ£ÐÍ£»È»ºó¶ÔÆä´ÓÊý¾Ý»ñÈ¡¡¢´«ÊäÖÁÏÔʾÒÔ¼°Íⲿ´¦ÀíµÄÓ¦ÓýøÐзÖÎö£»½Ó×ÅÒÔͼÊé×ÊÁϹÜÀíϵͳΪÀý£¬ËµÃ÷ÁËÆä¾ßÌåµÄʵÏÖ£»×îºó¶Ô»ùÓÚXMLµÄÈý²ãC/SÄ£ÐÍÔÚÐÅÏ¢±ê×¼» ......
±¾ÎÄÕª×ÔI18nGuy
Ö÷Ò³µÄһƪÄÚÈÝ£¬ÔÎĵØÖ·£ºhttp://www.i18nguy.com/unicode/c-unicode.zh-CN.html
Õâ·ÝÎĵµ¼òÒªµÄ˵Ã÷ÁËÈçºÎÐÞ¸ÄÄãµÄC/C++´úÂëʹ֧֮³ÖUnicode¡£ÔÚÕâÀï²¢²»×¼±¸
½âÊÍÌ«¶àÏà¹ØµÄ¼¼Êõϸ½Ú²¢ÇÒÎҵüٶ¨ÄãÒѾ»ù±¾ÊìϤMicrosoftÖ§³ÖUnicodeµÄ·½Ê½¡£
ËüµÄÖ÷ҪĿµÄÊÇ·½±ãÄã²éѯÏà¹ØµÄÊý¾ÝÀàÐͺͺ¯Êý£¬ÒÔ¼°ÐÞ ......
ÔÚ<TCHAR.h>Í·ÎļþÀÓÐÕâôһ×é²Ù×÷ÎļþµÄºê
#define _tfdopen _wfdopen
#define _tfsopen _wfsopen
#define _tfopen _wfope ......