⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node111.htm

📁 Tutorila for CPP, very good tutorial for CPP
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//FR">
<!--Converted with LaTeX2HTML 97.1 (release) (July 13th, 1997)
 by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippman, Marek Rouchal, Martin Wilck and others -->
<HTML><BLOCKQUOTE><img src="logo.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/logo.gif" ALIGN=right></A> 
<HEAD>
<TITLE>Classes de m閙oire</TITLE>
<META NAME="description" CONTENT="Classes de m閙oire">
<META NAME="keywords" CONTENT="Introduction_ANSI_C">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso_8859_1">
<LINK REL="STYLESHEET" HREF="Introduction_ANSI_C.css" tppabs="http://www.linux-kheops.com/doc/ansi-c/Introduction_ANSI_C.css">
<LINK REL="next" HREF="node112.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node112.htm">
<LINK REL="previous" HREF="node110.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node110.htm">
<LINK REL="up" HREF="node105.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node105.htm">
<LINK REL="next" HREF="node112.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node112.htm">
</HEAD>
<BODY BACKGROUND="marge.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/marge.gif" TEXT=#000000 LINK=#FF0000 VLINK=#1809BB >
<!--Navigation Panel-->
<A NAME="tex2html2950"
 HREF="node112.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node112.htm">
<IMG WIDTH="77" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
 SRC="next_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/next_motif.gif"></A> 
<A NAME="tex2html2946"
 HREF="node105.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node105.htm">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
 SRC="up_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/up_motif.gif"></A> 
<A NAME="tex2html2940"
 HREF="node110.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node110.htm">
<IMG WIDTH="96" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
 SRC="previous_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/previous_motif.gif"></A> 
<A NAME="tex2html2948"
 HREF="node1.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node1.htm">
<IMG WIDTH="96" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
 SRC="contents_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/contents_motif.gif"></A> 
<A NAME="tex2html2949"
 HREF="node174.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node174.htm">
<IMG WIDTH="59" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index"
 SRC="index_motif.gif" tppabs="http://www.linux-kheops.com/doc/ansi-c/icons.gif/index_motif.gif"></A> 
<BR>
<B> Suivant:</B> <A NAME="tex2html2951"
 HREF="node112.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node112.htm">La compilation s閜ar閑</A>
<B> D閎ut:</B> <A NAME="tex2html2947"
 HREF="node105.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node105.htm">Les d閏larations</A>
<B> Pr閏閐ent:</B> <A NAME="tex2html2941"
 HREF="node110.htm" tppabs="http://www.linux-kheops.com/doc/ansi-c/node110.htm">Dur閑 de vie</A><HR>
<BR>
<BR>
<!--End of Navigation Panel-->
<!--Table of Child-Links-->
<A NAME="CHILD_LINKS"><strong>Paragraphes</strong></A>
<UL>
<LI><A NAME="tex2html2952"
 HREF="node111.htm#SECTION001161000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node111.htm#SECTION001161000000000000000">
Position du probl鑝e</A>
<LI><A NAME="tex2html2953"
 HREF="node111.htm#SECTION001162000000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node111.htm#SECTION001162000000000000000">
Les sp閏ificateurs de classe de m閙oire</A>
<UL>
<LI><A NAME="tex2html2954"
 HREF="node111.htm#SECTION001162100000000000000" tppabs="http://www.linux-kheops.com/doc/ansi-c/node111.htm#SECTION001162100000000000000">
Discussion</A>
</UL></UL>
<!--End of Table of Child-Links-->
<HR>
<H1><font COLOR=#1809BB><A NAME="SECTION001160000000000000000">
Classes de m閙oire</A>
</font></H1>
<A NAME="8827">&#160;</A>
<P><H2><font COLOR=#1809BB><A NAME="SECTION001161000000000000000">
Position du probl鑝e</A>
</font></H2>
<A NAME="8828">&#160;</A>
Lors de l'ex閏ution d'un programme C il y a trois zones de m閙oire
diff閞entes, correspondant aux trois dur閑s de vies possibles&nbsp;:
<DL COMPACT>
<DT><SMALL>-</SMALL>
<DD>la zone contenant les variables statiques&nbsp;;
<DT><SMALL>-</SMALL>
<DD>la zone contenant les variables automatiques
(cette zone est g閞閑 en pile puisqu'en C, toute fonction peut 阾re
r閏ursive)&nbsp;;
<DT><SMALL>-</SMALL>
<DD>la zone contenant les variables dynamiques
(cette zone est g閚閞alement appel閑 <I>le tas</I>).
</DL>
<P>
Un tel d閏oupage se rencontre couramment dans les langages de programmation.
G閚閞alement cependant, il n'est pas n閏essaire au programmeur de 
d閏larer la classe dans laquelle il d閟ire mettre une variable, cette
classe 閠ant choisie de mani鑢e autoritaire par le langage.
<P>
Les concepteurs du langage C ont voulu offrir plus de souplesse aux
programmeurs.
En effet, nous venons de voir que l'on pouvait mettre dans la classe des
variables statiques une variable qui 閠ait locale 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -