Linux C 编程课件

  • n4_810792
    了解作者
  • 177.4KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-04 04:30
    上传日期
总结Linux下C语言编程重点,内容详见,对于初学者很有益处。
linux编程.rar
  • linux编程
  • Linux基础知识.doc
    121KB
  • Linux信号处理.doc
    120KB
  • Linux多进程.doc
    163.5KB
  • Linux下编译与调试.doc
    179.5KB
  • ~$nux多线程.doc
    162B
  • Linux多线程.doc
    116.5KB
  • Linux输入输出与文件.doc
    115.5KB
  • 多线程与同步对象.doc
    132.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/63801c2b9f0e6d0d65357b1f/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/63801c2b9f0e6d0d65357b1f/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">C/C++<span class="ff2">&#25945;&#31243;</span> <span class="ff2">&#20316;&#32773;&#65306;&#26177;&#20891;&#20113;</span></div><div class="t m0 x2 h4 y3 ff3 fs1 fc0 sc0 ls0 ws0">LINUX<span class="_ _0"> </span><span class="ff2 sc1">&#19979;&#32534;&#35793;&#19982;&#35843;&#35797;</span></div><div class="t m0 x1 h5 y4 ff1 fs2 fc0 sc0 ls0 ws0"> LINUX<span class="_ _1"> </span><span class="ff2">&#19979;&#32534;&#35793;&#19982;&#35843;&#35797;</span>........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>......<span class="_ _2"></span>1</div><div class="t m0 x1 h5 y5 ff1 fs2 fc0 sc0 ls0 ws0">1. gcc/g++<span class="ff2">&#32534;&#35793;&#22120;</span>..........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>............1</div><div class="t m0 x1 h5 y6 ff1 fs2 fc0 sc0 ls0 ws0">2. makefile<span class="_ _1"> </span><span class="ff2">&#20351;&#29992;</span>...........<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>................<span class="_ _3"></span>....<span class="_ _3"></span>....<span class="_ _3"></span>.<span class="_ _2"></span>2</div><div class="t m0 x3 h5 y7 ff1 fs2 fc0 sc0 ls0 ws0">2.1. <span class="ff2">&#22522;&#26412;&#36807;&#31243;&#22788;&#29702;</span>........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>................<span class="_ _3"></span>.<span class="_ _2"></span>2</div><div class="t m0 x3 h5 y8 ff1 fs2 fc0 sc0 ls0 ws0">2.2. <span class="ff2">&#29305;&#27530;&#22788;&#29702;&#19982;&#20266;&#30446;&#26631;</span>........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>........<span class="_ _3"></span>.<span class="_ _2"></span>3</div><div class="t m0 x3 h5 y9 ff1 fs2 fc0 sc0 ls0 ws0">2.3. <span class="ff2">&#21464;&#37327;&#12289;&#20989;&#25968;&#19982;&#35268;&#21017;</span>........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>........<span class="_ _3"></span>.<span class="_ _2"></span>5</div><div class="t m0 x1 h5 ya ff1 fs2 fc0 sc0 ls0 ws0">3. <span class="ff2">&#31243;&#24207;&#35843;&#35797;</span>...........<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>..............<span class="_ _3"></span>....<span class="_ _3"></span>.<span class="_ _2"></span>8</div><div class="t m0 x3 h5 yb ff1 fs2 fc0 sc0 ls0 ws0">3.1. gdb<span class="_ _1"> </span><span class="ff2">&#24120;&#29992;&#21629;&#20196;</span>.........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>..........<span class="_ _3"></span>....<span class="_ _3"></span>...8</div><div class="t m0 x3 h5 yc ff1 fs2 fc0 sc0 ls0 ws0">3.2. gdb <span class="ff2">&#24212;&#29992;&#20030;&#20363;</span>.........<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>...............<span class="_ _3"></span>.<span class="_ _2"></span>9</div><div class="t m0 x3 h5 yd ff1 fs2 fc0 sc0 ls0 ws0">3.3. assert<span class="_ _1"> </span><span class="ff2">&#26029;&#35328;&#23439;</span>.......<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>..............<span class="_ _3"></span>...13</div><div class="t m0 x3 h5 ye ff1 fs2 fc0 sc0 ls0 ws0">3.4. <span class="ff2">&#38169;&#35823;&#22788;&#29702;&#20989;&#25968;&#21644;&#36827;&#31243;&#36864;&#20986;&#20989;&#25968;</span>........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>...................<span class="_ _3"></span>....<span class="_ _3"></span>....<span class="_ _3"></span>....<span class="_ _3"></span>....<span class="_ _3"></span>..13</div><div class="t m0 x3 h5 yf ff1 fs2 fc0 sc0 ls0 ws0">3.5. <span class="ff2">&#31995;&#32479;&#26085;&#24535;</span>........<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>.............<span class="_ _2"></span>............<span class="_ _2"></span>.............<span class="_ _2"></span>......<span class="_ _3"></span>....16</div><div class="t m0 x1 h6 y10 ff4 fs3 fc0 sc0 ls0 ws0">&#58881;</div><div class="t m0 x1 h7 y11 ff3 fs4 fc0 sc0 ls0 ws0">1. <span class="fs5">gcc/g++<span class="ff2 sc1">&#32534;&#35793;&#22120;</span></span></div><div class="t m0 x3 h5 y12 ff2 fs2 fc0 sc0 ls0 ws0">&#23545;&#20110;<span class="ff1">.c<span class="_ _1"> </span></span>&#26684;&#24335;&#30340;<span class="_ _1"> </span><span class="ff1">C<span class="_ _1"> </span></span>&#25991;&#20214;&#65292;&#21487;&#20197;&#37319;&#29992;<span class="_ _1"> </span><span class="ff1">gcc<span class="_ _1"> </span></span>&#25110;<span class="_ _1"> </span><span class="ff1">g++</span>&#32534;&#35793;</div><div class="t m0 x3 h5 y13 ff2 fs2 fc0 sc0 ls0 ws0">&#23545;&#20110;<span class="ff1"> .cc</span>&#12289;<span class="ff1">.cpp<span class="_ _1"> </span></span>&#26684;&#24335;&#30340;<span class="_ _1"> </span><span class="ff1">C++</span>&#25991;&#20214;&#65292;&#24212;&#35813;&#37319;&#29992;<span class="_ _1"> </span><span class="ff1">g++</span>&#36827;&#34892;&#32534;&#35793;</div><div class="t m0 x3 h5 y14 ff2 fs2 fc0 sc0 ls0 ws0">&#24120;&#29992;&#30340;&#36873;&#39033;&#20004;&#31181;</div><div class="t m0 x4 h5 y15 ff1 fs2 fc0 sc0 ls0 ws0">-c <span class="ff2">&#34920;&#31034;&#32534;&#35793;&#28304;&#25991;&#20214;</span></div><div class="t m0 x4 h5 y16 ff1 fs2 fc0 sc0 ls0 ws0">-o <span class="ff2">&#34920;&#31034;&#36755;&#20986;&#30446;&#26631;&#25991;&#20214;</span></div><div class="t m0 x4 h5 y17 ff1 fs2 fc0 sc0 ls0 ws0">-g <span class="ff2">&#22312;&#30446;&#26631;&#25991;&#20214;&#20013;&#20135;&#29983;&#35843;&#35797;&#20449;&#24687;&#65292;&#29992;&#20110;<span class="_ _1"> </span></span>gdb<span class="_ _1"> </span><span class="ff2">&#35843;&#35797;</span></div><div class="t m0 x4 h5 y18 ff1 fs2 fc0 sc0 ls0 ws0">-D &lt;<span class="ff2">&#23439;&#23450;&#20041;</span>&gt; <span class="ff2">&#32534;&#35793;&#26102;&#23558;&#23439;&#23450;&#20041;&#20256;&#20837;&#36827;&#21435;</span></div><div class="t m0 x4 h5 y19 ff4 fs2 fc0 sc0 ls0 ws0">&#58882;&#58883;&#58884;&#58885;&#58885;&#58881;<span class="ff2">&#36873;&#39033;&#21487;&#20197;&#25171;&#24320;&#25152;&#26377;&#31867;&#22411;&#30340;&#35821;&#27861;&#35686;&#21578;&#65292;&#20197;&#20415;&#24110;&#21161;&#25105;&#20204;&#30830;&#23450;&#20195;&#30721;&#26159;&#27491;&#30830;&#30340;&#65292;&#24182;&#19988;&#23613;&#21487;&#33021;&#23454;&#29616;</span></div><div class="t m0 x3 h5 y1a ff2 fs2 fc0 sc0 ls0 ws0">&#21487;&#31227;&#26893;&#24615;&#12290;</div><div class="t m0 x3 h5 y1b ff2 fs2 fc0 sc0 ls0 ws0">&#20363;&#22914;&#26377;&#20004;&#20010;&#25991;&#20214;<span class="_ _1"> </span><span class="ff1">main.cpp,func.cpp</span></div><div class="t m0 x3 h5 y1c ff2 fs2 fc0 sc0 ls0 ws0">&#20854;&#20013;</div><div class="t m0 x5 h3 y1d ff4 fs0 fc0 sc0 ls0 ws0">&#58886;&#58884;&#58887;&#58888;&#58889;&#58890;&#58891;&#58891;<span class="_ _4"> </span><span class="ff2">&#20869;&#23481;&#20026;&#65306;</span></div><div class="t m0 x5 h8 y1e ff4 fs0 fc0 sc0 ls0 ws0">&#58892;&#58887;&#58888;&#58890;&#58885;&#58893;&#58894;&#58895;&#58881;&#58896;&#58897;&#58898;&#58894;&#58887;&#58899;&#58889;&#58900;&#58901;</div><div class="t m0 x5 h8 y1f ff4 fs0 fc0 sc0 ls0 ws0">&#58887;&#58888;&#58898;&#58881;&#58902;&#58903;&#58904;&#58893;&#58888;&#58890;&#58905;&#58906;&#58907;</div><div class="t m0 x5 h8 y20 ff4 fs0 fc0 sc0 ls0 ws0">&#58887;&#58888;&#58898;&#58881;&#58886;&#58884;&#58887;&#58888;&#58905;&#58906;</div><div class="t m0 x5 h8 y21 ff4 fs0 fc0 sc0 ls0 ws0">&#58908;</div><div class="t m0 x6 h8 y22 ff4 fs0 fc0 sc0 ls0 ws0">&#58892;&#58887;&#58909;&#58894;&#58895;&#58909;&#58881;&#58910;&#58911; !"#</div><div class="t m0 x6 h8 y23 ff4 fs0 fc0 sc0 ls0 ws0">&#58881;&#58881;&#58881;&#58881;&#58891;$&#58887;&#58888;&#58898;&#58909;&#58905;%&#58911;&#58895;&amp;&#58893;'&#58881;&#58902;&#58903;&#58904;&#58893;&#58888;&#58890;&#58881;&#58887;&#58897;()&#58894;*&#58888;%+&#58902;&#58903;&#58904;&#58893;&#58888;&#58890;&#58905;&#58906;&#58906;&#58907;</div><div class="t m0 x6 h8 y24 ff4 fs0 fc0 sc0 ls0 ws0">&#58892;&#58895;&#58885;&#58897;&#58895;</div><div class="t m0 x6 h8 y25 ff4 fs0 fc0 sc0 ls0 ws0">&#58881;&#58881;&#58881;&#58881;&#58891;$&#58887;&#58888;&#58898;&#58909;&#58905;%,&#58911; !"#&#58881;&#58902;&#58903;&#58904;&#58893;&#58888;&#58890;&#58881;&#58887;&#58897;()&#58894;*&#58888;%+&#58902;&#58903;&#58904;&#58893;&#58888;&#58890;&#58905;&#58906;&#58906;&#58907;</div><div class="t m0 x6 h8 y26 ff4 fs0 fc0 sc0 ls0 ws0">&#58892;&#58895;&#58888;&#58894;&#58887;&#58909;</div></div><div class="t m0 x7 h9 y27 ff1 fs3 fc0 sc0 ls0 ws0">1</div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐