亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? the c programming language torn apart.html

?? 1000 HOWTOs for various needs [WINDOWS]
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>The C Programming Language Torn Apart</TITLE>
</HEAD>
<BODY LINK="#0000ff">

<FONT SIZE=2>
<B><P>The C Programming Language Torn Apart</P>
</B>
<P>Introduction: The evolution and Description of C</P>

<P>The C programming language is a general purpose language which was originally designed for use on the Unix Operating System by Dennis Ritchie. The Unix Operating System, Unix Applications and Tools have been coded in C. This language has evolved from Ken Thompson's B language, which was the language designed for the first Unix System. </P>

<P>C is not a machine specific language and a C program can easily be edited to make it work on various platforms. After the creation of the C programming language, over the years, C became the most preferred language amongst programmers around the world. Due to its immense popularity, many companies developed their own versions of the C compilers, added new features and commands etc This resulted in no specific standard followed by the various programs and led to utter confusion amongst programmers around the world. A need was felt to introduce a standard machine independent code which would be followed by all and make life a lot more easy for programmers.  So in 1983 the American National Standards Institute (ANSI) established a committee which aimed at doing just that. This series of manuals too is based on and follows ANSI standards.</P>

<P>C is a high level language. By that what I mean to say is that the C commands or code is written in code which is easily understandable by humans. Its commands are infact plain English words and symbols. As a result C is non machine specific. C is not an interpreted language and unlike Perl a C program has to be first converted into Binary code with the help of a compiler. A compiler does just what the name suggests, compilation i.e. conversion of human understandable code into Binary machine understandable code.</P>

<P>So, even before you can continue reading this manual, you need to get yourself a compiler. To compile C programs, even any C++ compiler would do. If you are a Windows user, then I suggest you get Visual C++, which is a part of Microsoft' s Visual Studio. Although it costs a lot, it is my favorite as it also gives you the benefit of using the MSDN Library. The other good compiler would be Borland C++ 5.5 (available for free download from: http://www.borland.com/bcppbuilder/freecompiler/ ) Then there is DJGPP which is available at:  </FONT><A HREF="http://www.delorie.com/djgpp/"><FONT SIZE=2>http://www.delorie.com/djgpp/</FONT></A><FONT SIZE=2>. </P>

<P>If you are running any kind of Unix, then you have a C compiler in your disk itself. You  see, the cc and gcc utilities are actually C compilers. For more details, read Carolyn's GTMHH on C, at happyhacker.org</P>

<P>The Standard C Header Library</P>

<P>The ANSI C standard library is an exhaustive collection of pre written routines or functions that are needed by programmers in various applications again and again. Without the functions and routines contained by the header files, a program cannot work properly. Now instead of including the entire code of a long header file in each program , we declare the header files used by the program and reuse the routines contained by them. To understand header files better, read on.</P>

<P>Let us take a practical example to see what actually happens when we try to display a string on the screen. Now to print something on the screen, without using any header file, we need to follow a very complex procedure. Firstly, we would need to extract the string to be printed from the program code, then look for the port in which the Standard Output device is installed, then send the string to that particular port, instructing the Standard Output Device what to do with the string. To write the entire set of above instructions in each C program we develop, would be really cumbersome and inefficient. That is why we use Header Files. With the use of Header Files, we can leave the coding of the entire above procedure to the Header File. With the use of Header Files, we no longer need to know how to communicate with certain Hardware, but instead simply need to know which routine or function to use. Header Files have a .h extension.</P>

<P>The following is a complete list of header files which are a part of the Standard ANSI library-:</P>

<P>&lt;stdio.h&gt;&#9;&#9;Standard Input \ Output</P>
<P>&lt;assert.h&gt;&#9;&#9;Diagnostics</P>
<P>&lt;ctype.h&gt;&#9;&#9;Character Handling</P>
<P>&lt;errno.h&gt;&#9;&#9;Errors</P>
<P>&lt;float.h&gt;&#9;&#9;Characteristics of Floating Types</P>
<P>&lt;limits.h&gt;&#9;&#9;Sizes of Integral Types</P>
<P>&lt;locale.h&gt;&#9;&#9;Localisation</P>
<P>&lt;math.h&gt;&#9;&#9;Mathematics</P>
<P>&lt;setjmp.h&gt;&#9;&#9;Non Local Jumps</P>
<P>&lt;signal.h&gt;&#9;&#9;Signal Handling</P>
<P>&lt;stdarg.h&gt;&#9;&#9;Variable Arguments</P>
<P>&lt;stddef.h&gt;&#9;&#9;Common Definitions</P>
<P>&lt;stdlib.h&gt;&#9;&#9;Commonly used General Utilities</P>
<P>&lt;string.h&gt;&#9;&#9;String Handling</P>
<P>&lt;time.h&gt;&#9;&#9;Date and Time</P>

<P>NOTE: For the Time being, we are only concerned with the Standard I\O header file: stdio.h</P>

<P>Like in the Perl Manual, we will start with the obligatory Hello World program which simply prints the text: Hello World on the screen. It is a big step in a novice's programming career and a person gets immense pleasure if his first program works without any problems. </P>

<P>The following is the source of the Hello World Command. Before I analyze and explain each line of the program, study the program and try to figure out what each line does, then move on to my explanation and see how much you got right.  Self Learning can go a very long way. </P>

<P>#include &lt;stdio.h&gt;</P>
<P>main() {</P>
<P>printf ("Hello World \n");</P>
<P>}</P>

<P>Output-:</P>

<P>Hello World</P>

<P>Now let us analyze the code snippet. The first line tells the computer to include information or commands and functions or routines from the header file: stdio.h which is needed to do anything regarding </P>
<P>Input \ Output. The second line defines the function called main. The main function is a special function as it is this function, which by default starts automatically whenever a program is run. [NOTE: Other normal functions can be named anything we want them to be called. We will learn more about functions in upcoming manuals.] The empty brackets, the ( ), after main specify that the function main does not receive any arguments. A function contains certain statements or commands which are executed each time the particular function is called. Now, these statements are enclosed within curly brackets or braces. The '{ }'.</P>
<P>In our first example, the function main has only one statement. </P>

<P>So how does Hello World actually get printed on the screen? Well as soon as the function encounters the function 'printf', it gets the arguments contained by it i.e. the text within the brackets ( ). Then the program calls the printf function in the header file: stdio.h and passes it the values to be printed.</P>
<P> </P>
<P>The '\n' is the newline character which causes the Output Cursor to move to the first column of the next row or line. Let us see an example to understand how the newline character works.  Say, you want to modify your first C program such that it prints Hello on one line and World on the next line. Then the code would become:</P>

<P>#include &lt;stdio.h&gt;</P>
<P>main () {</P>
<P>printf ("Hello");</P>
<P>printf ("\n");</P>
<P>printf ("World");</P>
<P>}</P>

<P>Output:</P>

<P>Hello</P>
<P>World</P>

<P>Well, actually the same could be achieved with a smaller piece of code:</P>

<P>#include &lt;stdio.h&gt;</P>
<P>main () {</P>
<P>printf ("Hello \n World");</P>
<P>}</P>

<P>Get it?  OK, now that you know what the basic structure of a C program is, let us learn some C routines in detail.</P>

<P>The printf Routine: Printing Stuff</P>

<P>The printf routine is a part of the Standard I\O Header file: stdio.h. It helps to display text, numbers and symbols in the specified format on the standard Output Device, which is normally your Monitor.</P>
<P>The general syntax of the printf routine is:</P>

<P>printf ("Characters", ARG1, ARG2匒RGn);</P>

<P>where CHARACTERS is the string to be displayed on the screen. It can have upto 3 distinct escape character sequences, [I have discussed them later in this section.] in any combination. The ARGn is normally a variable whose value is printed on the screen. Confused? Well the following example, ought to clear all your doubts.</P>
<P>Example:</P>

<P>#include &lt;stdio.h&gt;</P>
<P>main () {</P>
<P>printf ("PIE=" , PIE);</P>
<P>}</P>

<P>Assuming that the value of the Variable PIE is 3.14, the output of the above would be:</P>

<P>PIE= 3.14</P>

<P>The following is a complete list of possible escape sequence characters which are a part of ANSI C:</P>

<P>\a&#9;&#9;Alert Bell</P>
<P>\b&#9;&#9;Backspace</P>
<P>\f&#9;&#9;Form Feed</P>
<P>\n&#9;&#9;New Line&#9;</P>
<P>\r&#9;&#9;Carriage Return</P>
<P>\t&#9;&#9;Horizontal Tab</P>
<P>\v&#9;&#9;Vertical Tab</P>
<P>\\&#9;&#9;Backslash</P>
<P>\?&#9;&#9;Question Mark</P>
<P>\'&#9;&#9;Single Quote</P>
<P>\"&#9;&#9;Double Quotes</P>
<P>\ddd&#9;&#9;Where ddd is an octal number and represents the ASCII code for the number</P>
<P>\xdd&#9;&#9;Where ddd is a Hexa Decimal number and represents the ASCII code for the number</P>

<P>Examples:</P>

<P>printf  ("Is this a VIRUS ALERT \? \a");</P>

<P>will print Is this a VIRUS ALERT ? on the screen and will sound a bell from the CPU Speaker.</P>

<P>printf ("Ankit \t Fadia \n Fadia \t Ankit");</P>

<P>will print the following on the screen:</P>

<P>Ankit&#9;Fadia</P>
<P>Fadia&#9;Ankit</P>

<P>Formatting your Output using Printf Options</P>

<P>This part might seem a bit weird to grasp, but I assure you, if you read the entire section, you will find it quite easy. You just need to try not give at half stage before reading the entire section.</P>

<P>The general syntax of the printf formatting option is:</P>

<P>%width[.precision] type</P>

<P>where width is the minimum size of the field in which the characters (Output) has to be displayed. It is the number representing the minimum size of the field for displaying the output. The output is right justified unless the width is negative, in which case the output is right aligned. The width does not truncate the output, but accordingly increases its size, to accommodate the output.</P>

<P>The Type can be anything from the below options-:</P>

<P>&nbsp;</P>
<P>d, i &#9;Decimal Number</P>
<P>o&#9;unsigned Octal</P>
<P>x, X&#9;unsigned Hexadecimal</P>
<P>u&#9;unsigned Decimal Integer</P>
<P>c&#9;Single Character</P>
<P>s&#9;String</P>
<P>f&#9;Floating Point Decimal</P>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利精品第一导航| 99久精品国产| 99re热这里只有精品免费视频| 欧美影院午夜播放| 国产欧美日韩另类视频免费观看| 亚洲成精国产精品女| 成人手机电影网| 91精品国产乱码| 亚洲午夜久久久久中文字幕久| 国产乱人伦偷精品视频免下载| 欧美日韩成人激情| 亚洲免费av高清| 国产丶欧美丶日本不卡视频| 制服丝袜亚洲播放| 亚洲午夜激情av| 99精品视频在线观看| 欧美高清在线视频| 国产一区二区不卡| 91精品福利在线一区二区三区| 亚洲男人都懂的| 白白色 亚洲乱淫| 久久精品一区四区| 国产黄色91视频| 久久精品一二三| 国产精品一品视频| 久久久精品中文字幕麻豆发布| 麻豆传媒一区二区三区| 538在线一区二区精品国产| 亚洲第一搞黄网站| 欧美熟乱第一页| 天天综合天天综合色| 欧美日韩三级在线| 日韩中文字幕麻豆| 欧美色图免费看| 亚洲尤物在线视频观看| 欧美在线免费播放| 亚洲一区电影777| 欧美挠脚心视频网站| 日韩中文字幕麻豆| 久久综合五月天婷婷伊人| 伦理电影国产精品| 久久久久久一级片| 成人av网址在线观看| 一区二区三区在线视频免费| 91精品福利视频| 天使萌一区二区三区免费观看| 欧美精品在线一区二区| 蜜桃久久av一区| 久久综合色婷婷| 成人高清视频免费观看| 亚洲激情av在线| 欧美一区二区私人影院日本| 美女视频一区二区三区| 国产精品三级av| 色狠狠色噜噜噜综合网| 日韩av不卡一区二区| 久久久精品tv| 欧美体内she精高潮| 九九精品一区二区| 成人免费一区二区三区在线观看| 日本久久精品电影| 免费一级片91| 国产精品电影一区二区三区| 欧美体内she精高潮| 久久激五月天综合精品| 国产日韩一级二级三级| 欧洲国内综合视频| 精品制服美女久久| 又紧又大又爽精品一区二区| 日韩欧美成人激情| 色婷婷精品大在线视频| 久久精品噜噜噜成人av农村| 国产精品久久福利| 日韩午夜激情av| 91黄色免费看| 成熟亚洲日本毛茸茸凸凹| 午夜欧美大尺度福利影院在线看| 久久久久国产一区二区三区四区| 欧美午夜宅男影院| 丁香天五香天堂综合| 日本欧美一区二区| 亚洲免费观看高清完整| 久久久久久影视| 91麻豆精品国产91久久久久久久久 | 欧美疯狂性受xxxxx喷水图片| 精品日产卡一卡二卡麻豆| 亚洲综合激情小说| 99久久伊人精品| 亚洲精品日产精品乱码不卡| 韩国av一区二区三区在线观看| 日本国产一区二区| 亚洲韩国精品一区| 中文字幕电影一区| 欧美精品一区视频| 制服丝袜成人动漫| 欧美视频一区二区三区四区| 国产69精品久久久久777| 麻豆传媒一区二区三区| 视频一区二区国产| 亚洲成人你懂的| 亚洲一区二区三区三| 自拍av一区二区三区| 国产精品久久免费看| 久久九九影视网| 久久先锋影音av| 久久综合色一综合色88| www日韩大片| 精品国产精品一区二区夜夜嗨| 欧美日韩成人在线一区| 欧美三电影在线| 欧美性高清videossexo| 在线视频国内一区二区| 在线观看欧美日本| 欧美色区777第一页| 欧美视频在线播放| 欧美撒尿777hd撒尿| 欧美精品久久一区| 91精品久久久久久久99蜜桃| 欧美一级日韩免费不卡| 精品国产一区二区三区忘忧草| 欧美一级二级三级蜜桃| 精品国产免费一区二区三区四区| 欧美成人video| 久久精品在这里| 国产精品视频一二| 亚洲视频一区二区在线观看| 亚洲欧美aⅴ...| 性做久久久久久免费观看| 日本网站在线观看一区二区三区| 热久久免费视频| 精品在线视频一区| 国产91丝袜在线18| 99久精品国产| 欧美卡1卡2卡| 精品成人a区在线观看| 久久久久久久久久美女| 日韩理论片一区二区| 亚洲成人精品影院| 久久99精品国产.久久久久久 | 亚洲最色的网站| 国产精品不卡在线| 亚洲摸摸操操av| 日一区二区三区| 色吊一区二区三区| 91精品国产91久久综合桃花| 欧美亚洲综合一区| 日韩一级完整毛片| 欧美v日韩v国产v| 中文天堂在线一区| 亚洲va欧美va国产va天堂影院| 天堂va蜜桃一区二区三区漫画版| 亚洲一区中文在线| 一区二区三区四区在线| 韩国v欧美v亚洲v日本v| 国模冰冰炮一区二区| 色呦呦国产精品| 亚洲精品一区二区在线观看| 17c精品麻豆一区二区免费| 免费成人在线网站| 成人爽a毛片一区二区免费| 欧美精品九九99久久| 中文字幕欧美区| 午夜精品一区二区三区免费视频| 国产福利一区在线| 884aa四虎影成人精品一区| 欧美激情一区二区三区在线| 午夜精品久久久久久久99樱桃| 国产成人在线观看| 日韩欧美资源站| 一区二区三区产品免费精品久久75| 理论电影国产精品| 欧美日韩一区国产| √…a在线天堂一区| 国产精品一区二区久久精品爱涩 | 亚洲精品国产a| 国产一区二区三区四区在线观看| 欧美日韩在线播放| 亚洲色图欧洲色图| 成人国产视频在线观看| 久久综合色一综合色88| 日本中文在线一区| 在线观看亚洲a| 国产精品国产三级国产三级人妇| 久久激情五月婷婷| 欧美一区二区三区视频在线观看| 亚洲欧美日韩一区二区 | 欧美三级中文字| 亚洲三级在线免费观看| 成人国产精品免费网站| 久久久久久亚洲综合影院红桃 | 亚洲线精品一区二区三区| 91香蕉国产在线观看软件| 国产精品久久久久aaaa樱花| 粉嫩高潮美女一区二区三区| 久久亚洲精品国产精品紫薇| 精品一区二区综合| 精品国产污污免费网站入口| 美女被吸乳得到大胸91| 日韩手机在线导航| 久久精品99久久久|