Advertisement
Rapptz

Untitled

Oct 13th, 2012
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 14.16 KB | None | 0 0
  1.  
  2. <!DOCTYPE html><html><head><meta charset="utf-8"><style>body {
  3.   font-family: Helvetica, arial, sans-serif;
  4.   font-size: 14px;
  5.   line-height: 1.6;
  6.   padding-top: 10px;
  7.   padding-bottom: 10px;
  8.   background-color: white;
  9.   padding: 30px; }
  10.  
  11. body > *:first-child {
  12.   margin-top: 0 !important; }
  13. body > *:last-child {
  14.   margin-bottom: 0 !important; }
  15.  
  16. a {
  17.   color: #4183C4; }
  18. a.absent {
  19.   color: #cc0000; }
  20. a.anchor {
  21.   display: block;
  22.   padding-left: 30px;
  23.   margin-left: -30px;
  24.   cursor: pointer;
  25.   position: absolute;
  26.   top: 0;
  27.   left: 0;
  28.   bottom: 0; }
  29.  
  30. h1, h2, h3, h4, h5, h6 {
  31.   margin: 20px 0 10px;
  32.   padding: 0;
  33.   font-weight: bold;
  34.   -webkit-font-smoothing: antialiased;
  35.   cursor: text;
  36.   position: relative; }
  37.  
  38. h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor {
  39.   background: url("../../images/modules/styleguide/para.png") no-repeat 10px center;
  40.   text-decoration: none; }
  41.  
  42. h1 tt, h1 code {
  43.   font-size: inherit; }
  44.  
  45. h2 tt, h2 code {
  46.   font-size: inherit; }
  47.  
  48. h3 tt, h3 code {
  49.   font-size: inherit; }
  50.  
  51. h4 tt, h4 code {
  52.   font-size: inherit; }
  53.  
  54. h5 tt, h5 code {
  55.   font-size: inherit; }
  56.  
  57. h6 tt, h6 code {
  58.   font-size: inherit; }
  59.  
  60. h1 {
  61.   font-size: 28px;
  62.   color: black; }
  63.  
  64. h2 {
  65.   font-size: 24px;
  66.   border-bottom: 1px solid #cccccc;
  67.   color: black; }
  68.  
  69. h3 {
  70.   font-size: 18px; }
  71.  
  72. h4 {
  73.   font-size: 16px; }
  74.  
  75. h5 {
  76.   font-size: 14px; }
  77.  
  78. h6 {
  79.   color: #777777;
  80.   font-size: 14px; }
  81.  
  82. p, blockquote, ul, ol, dl, li, table, pre {
  83.   margin: 15px 0; }
  84.  
  85. hr {
  86.   background: transparent url("../../images/modules/pulls/dirty-shade.png") repeat-x 0 0;
  87.   border: 0 none;
  88.   color: #cccccc;
  89.   height: 4px;
  90.   padding: 0; }
  91.  
  92. body > h2:first-child {
  93.   margin-top: 0;
  94.   padding-top: 0; }
  95. body > h1:first-child {
  96.   margin-top: 0;
  97.   padding-top: 0; }
  98.   body > h1:first-child + h2 {
  99.     margin-top: 0;
  100.     padding-top: 0; }
  101. body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child {
  102.   margin-top: 0;
  103.   padding-top: 0; }
  104.  
  105. a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  106.   margin-top: 0;
  107.   padding-top: 0; }
  108.  
  109. h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
  110.   margin-top: 0; }
  111.  
  112. li p.first {
  113.   display: inline-block; }
  114. ol {
  115.     border-radius: 3px;
  116.     border-color: #9f9976 #9f9976 #a4a085 #a4a085;
  117.     border-style: solid;
  118.     border-width: 1px;
  119.     background-color: #f0f0f0;
  120.     padding-top: 8px;
  121.     padding-left: 30px;
  122.     padding-right: 15px;
  123.     padding-bottom: 8px;
  124.     margin: 0;
  125.     list-style-type: decimal;
  126.     }
  127.  
  128. kbd {
  129.   padding: 0.1em 0.6em;
  130.   border: 1px solid #CCC;
  131.   font-size: 11px;
  132.   font-family: Arial,Helvetica,sans-serif;
  133.   background-color: #F7F7F7;
  134.   color: #333;
  135.   -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px #ffffff inset;
  136.   -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px white inset;
  137.   box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2),0 0 0 2px white inset;
  138.   -moz-border-radius: 3px;
  139.   -webkit-border-radius: 3px;
  140.   border-radius: 3px;
  141.   display: inline-block;
  142.   margin: 0 0.1em;
  143.   text-shadow: 0 1px 0 white;
  144.   line-height: 1.4;
  145.   white-space: nowrap;
  146. }
  147.  
  148. ul, ol {
  149.   padding-left: 30px; }
  150.  
  151. ul :first-child, ol :first-child {
  152.   margin-top: 0; }
  153.  
  154. ul :last-child, ol :last-child {
  155.   margin-bottom: 0; }
  156.  
  157. dl {
  158.   padding: 0; }
  159.   dl dt {
  160.     font-size: 14px;
  161.     font-weight: bold;
  162.     font-style: italic;
  163.     padding: 0;
  164.     margin: 15px 0 5px; }
  165.     dl dt:first-child {
  166.       padding: 0; }
  167.     dl dt > :first-child {
  168.       margin-top: 0; }
  169.     dl dt > :last-child {
  170.       margin-bottom: 0; }
  171.   dl dd {
  172.     margin: 0 0 15px;
  173.     padding: 0 15px; }
  174.     dl dd > :first-child {
  175.       margin-top: 0; }
  176.     dl dd > :last-child {
  177.       margin-bottom: 0; }
  178.  
  179. blockquote {
  180.   border-left: 4px solid #dddddd;
  181.   padding: 0 15px;
  182.   color: #777777; }
  183.   blockquote > :first-child {
  184.     margin-top: 0; }
  185.   blockquote > :last-child {
  186.     margin-bottom: 0; }
  187.  
  188. table {
  189.   padding: 0; }
  190.   table tr {
  191.     border-top: 1px solid #cccccc;
  192.     background-color: white;
  193.     margin: 0;
  194.     padding: 0; }
  195.     table tr:nth-child(2n) {
  196.       background-color: #f8f8f8; }
  197.     table tr th {
  198.       font-weight: bold;
  199.       border: 1px solid #cccccc;
  200.       text-align: left;
  201.       margin: 0;
  202.       padding: 6px 13px; }
  203.     table tr td {
  204.       border: 1px solid #cccccc;
  205.       text-align: left;
  206.       margin: 0;
  207.       padding: 6px 13px; }
  208.     table tr th :first-child, table tr td :first-child {
  209.       margin-top: 0; }
  210.     table tr th :last-child, table tr td :last-child {
  211.       margin-bottom: 0; }
  212.  
  213. img {
  214.   max-width: 100%; }
  215.  
  216. span.frame {
  217.   display: block;
  218.   overflow: hidden; }
  219.   span.frame > span {
  220.     border: 1px solid #dddddd;
  221.     display: block;
  222.     float: left;
  223.     overflow: hidden;
  224.     margin: 13px 0 0;
  225.     padding: 7px;
  226.     width: auto; }
  227.   span.frame span img {
  228.     display: block;
  229.     float: left; }
  230.   span.frame span span {
  231.     clear: both;
  232.     color: #333333;
  233.     display: block;
  234.     padding: 5px 0 0; }
  235. span.align-center {
  236.   display: block;
  237.   overflow: hidden;
  238.   clear: both; }
  239.   span.align-center > span {
  240.     display: block;
  241.     overflow: hidden;
  242.     margin: 13px auto 0;
  243.     text-align: center; }
  244.   span.align-center span img {
  245.     margin: 0 auto;
  246.     text-align: center; }
  247. span.align-right {
  248.   display: block;
  249.   overflow: hidden;
  250.   clear: both; }
  251.   span.align-right > span {
  252.     display: block;
  253.     overflow: hidden;
  254.     margin: 13px 0 0;
  255.     text-align: right; }
  256.   span.align-right span img {
  257.     margin: 0;
  258.     text-align: right; }
  259. span.float-left {
  260.   display: block;
  261.   margin-right: 13px;
  262.   overflow: hidden;
  263.   float: left; }
  264.   span.float-left span {
  265.     margin: 13px 0 0; }
  266. span.float-right {
  267.   display: block;
  268.   margin-left: 13px;
  269.   overflow: hidden;
  270.   float: right; }
  271.   span.float-right > span {
  272.     display: block;
  273.     overflow: hidden;
  274.     margin: 13px auto 0;
  275.     text-align: right; }
  276.  
  277. code, tt {
  278.   margin: 0 2px;
  279.   padding: 0 5px;
  280.   white-space: nowrap;
  281.   border: 1px solid #eaeaea;
  282.   background-color: #f8f8f8;
  283.   border-radius: 3px; }
  284.  
  285. pre code {
  286.   margin: 0;
  287.   padding: 0;
  288.   white-space: pre;
  289.   border: none;
  290.   background: transparent; }
  291.  
  292. .highlight pre {
  293.   background-color: #f8f8f8;
  294.   border: 1px solid #cccccc;
  295.   font-size: 13px;
  296.   line-height: 19px;
  297.   overflow: auto;
  298.   padding: 6px 10px;
  299.   border-radius: 3px; }
  300.  
  301. pre {
  302.   background-color: #f8f8f8;
  303.   border: 1px solid #cccccc;
  304.   font-size: 13px;
  305.   line-height: 19px;
  306.   overflow: auto;
  307.   padding: 6px 10px;
  308.   border-radius: 3px; }
  309.   pre code, pre tt {
  310.     background-color: transparent;
  311.     border: none; }
  312.  
  313.  
  314. .markdown-body code,.markdown-body tt{margin:0 2px;padding:0px 5px;white-space:nowrap;border:1px solid #eaeaea;background-color:#f8f8f8;border-radius:3px}
  315. .markdown-body pre>code{margin:0;padding:0;white-space:pre;border:none;background:transparent}
  316. .markdown-body .highlight pre,.markdown-body pre{background-color:#f8f8f8;border:1px solid #ccc;font-size:13px;line-height:19px;overflow:auto;padding:6px 10px;border-radius:3px}
  317. .markdown-body pre code,.markdown-body pre tt{background-color:transparent;border:none}
  318. .highlight{background:#ffffff}
  319. .highlight .c{color:#999988;font-style:italic}
  320. .highlight .err{color:#a61717;background-color:#e3d2d2}
  321. .highlight .k{color: #0000ff;}
  322. /*.highlight .o{font-weight:bold}*/
  323. .highlight .cm{color:#008000;font-style:italic}
  324. .highlight .cp{color:#d14;}
  325. .highlight .c1{color:#008000;font-style:italic}
  326. .highlight .cs{color:#999999;font-weight:bold;font-style:italic}
  327. .highlight .gd{color:#000000;background-color:#ffdddd}
  328. .highlight .gd .x{color:#000000;background-color:#ffaaaa}
  329. .highlight .ge{font-style:italic}
  330. .highlight .gr{color:#aa0000}
  331. .highlight .gh{color:#999999}
  332. .highlight .gi{color:#000000;background-color:#ddffdd}
  333. .highlight .gi .x{color:#000000;background-color:#aaffaa}
  334. .highlight .go{color:#888888}
  335. .highlight .gp{color:#555555}
  336. .highlight .gs{font-weight:bold}
  337. .highlight .gu{color:#800080;font-weight:bold}
  338. .highlight .gt{color:#aa0000}
  339. .highlight .kc{font-weight:bold}
  340. .highlight .kd{font-weight:bold}
  341. .highlight .kn{font-weight:bold}
  342. .highlight .kp{font-weight:bold}
  343. .highlight .kr{font-weight:bold}
  344. .highlight .kt{color:#0000ff;}
  345. .highlight .m{color:#009999}
  346. .highlight .s{color:#d14}
  347. .highlight .na{color:#008080}
  348. .highlight .nb{color:#0086B3}
  349. .highlight .nc{color:#445588;font-weight:bold}
  350. .highlight .no{color:#008080}
  351. .highlight .ni{color:#800080}
  352. .highlight .ne{color:#990000;font-weight:bold}
  353. .highlight .nf{color:#990000;font-weight:bold}
  354. .highlight .nn{color:#555555}
  355. .highlight .nt{color:#000080}
  356. .highlight .nv{color:#008080}
  357. .highlight .ow{font-weight:bold}
  358. .highlight .w{color:#bbbbbb}
  359. .highlight .mf{color:#009999}
  360. .highlight .mh{color:#009999}
  361. .highlight .mi{color:#009999}
  362. .highlight .mo{color:#009999}
  363. .highlight .sb{color:#d14}
  364. .highlight .sc{color:#d14}
  365. .highlight .sd{color:#d14}
  366. .highlight .s2{color:#d14}
  367. .highlight .se{color:#d14}
  368. .highlight .sh{color:#d14}
  369. .highlight .si{color:#d14}
  370. .highlight .sx{color:#d14}
  371. .highlight .sr{color:#009926}
  372. .highlight .s1{color:#d14}
  373. .highlight .ss{color:#990073}
  374. .highlight .bp{color:#999999}
  375. .highlight .vc{color:#008080}
  376. .highlight .vg{color:#008080}
  377. .highlight .vi{color:#008080}
  378. .highlight .il{color:#009999}
  379. .highlight .gc{color:#999;background-color:#EAF2F5}
  380. .type-csharp .highlight .k{color:#0000FF}
  381. .type-csharp .highlight .kt{color:#0000FF}
  382. .type-csharp .highlight .nf{color:#000000;font-weight:normal}
  383. .type-csharp .highlight .nc{color:#2B91AF}
  384. .type-csharp .highlight .nn{color:#000000}
  385. .type-csharp .highlight .s{color:#A31515}
  386. .type-csharp .highlight .sc{color:#A31515}
  387.  
  388.  
  389. </style><script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script></head><body><h1>Preface</h1>
  390.  
  391. <h3>Topics Discussed:</h3>
  392.  
  393. <ol>
  394. <li>Introduction</li>
  395. <li>How to use this book</li>
  396. <li>Contacting me and asking questions</li>
  397. </ol><h2>Introduction</h2>
  398.  
  399. <p>Hello!</p>
  400.  
  401. <p>First thing I would like to mention is that I am glad you are reading this book. Second, I would like to state openly that I am not a "professional" developer and this might bother many people. While it's unfortunate that people may judge the content of this book based on my merit as a developer, I want to reassure the readers that this book is to the best of my knowledge completely accurate. A lot of extensive research has been integrated to make this book the way it is and due to the constant fear that I, as an author, have that my readers will not trust the content of this book I have provided relevant quotes from the standard when necessary.</p>
  402.  
  403. <p>Despite not being a professional developer, I have been programming in C++ for about seven years. My programming experience started around 2002 when I started programming in TI-BASIC. TI-BASIC is the programming language that comes built in on many TI-based based calculators such as TI-83, TI-84, and more recently the TI-Nspire. After moving on with the TI-BASIC type of programming that was loaded with <code>goto</code> statements and other awful programming practices I started programming bots for games that I used to play. The bots I made were made with C++ and Assembly language. While the bots I made were short-lived and almost never used, the experience I received while making them lasted me a lifetime. Thus, my ultimate goal in this book is to share all the knowledge that I have in an easy to understand way.</p>
  404.  
  405. <h2>How To Use This Book</h2>
  406.  
  407. <p>When I started thinking about how this book would be made, my main priority was to make this book as easily accessible as I could possibly make it. That is why this book was made with <a href="http://daringfireball.net/projects/markdown/">Markdown</a> and CSS using <a href="http://www.sublimetext.com/">Sublime Text 2</a> then converted into HTML, and finally into a PDF. As a result, most of the formatting in this book will be consistent throughout its entirety. </p>
  408.  
  409. <p>Throughout the book, text stylised like <code>this</code> would indicate a variable, function, or anything that could be considered "inline code". Likewise, keys that are for the user to input would be indicated in this fashion, <kbd>Alt</kbd>, and words in <strong>bold</strong> indicate new terminology.</p>
  410.  
  411. <p><br></p>
  412.  
  413. <blockquote>
  414. <p>Anything that is inside this block of text would be a direct quote to the C++ Standard. These quotes come from the working draft <a href="https://github.com/cplusplus/draft/blob/master/papers/N3376.pdf">N3376</a> published in 2012-02-28.</p>
  415. </blockquote>
  416.  
  417. <h6>Code block title.</h6>
  418.  
  419. <div class="highlight"><pre><span class="cp">#include &lt;iostream&gt;</span>
  420. <span class="kt">int</span> <span class="n">main</span><span class="p">()</span> <span class="p">{</span>
  421.     <span class="n">std</span><span class="o">::</span><span class="n">cout</span> <span class="o">&lt;&lt;</span> <span class="s">"Hello World</span><span class="se">\n</span><span class="s">"</span><span class="p">;</span> <span class="c1">//Comments</span>
  422. <span class="p">}</span>
  423. </pre></div>
  424.  
  425. <p>Code blocks are syntax highlighted and will be referred to by its colour depending on the context. The title of the program or its file name will always be above the code snippet unless it's specified as an example. </p>
  426.  
  427. <p>In the beginning of the chapter, you will see a list of sections that the book will cover. This will give you a precognition of what will be discussed if you want to skip a section due to prior knowledge, although not recommended.</p>
  428.  
  429. <h2>Contacting Me</h2>
  430.  
  431. <p>I have set up an email for this book for questions, comments, typos, errors or anything that your mind ponders. This email can be found at <a href="mailto:[email protected]">[email protected]</a></p>
  432.  
  433. <p>If you do have any questions, I recommend visiting <a href="http://www.stackoverflow.com">StackOverflow</a>, as it is a site with millions of dedicated programmers willing to take your questions as long as it shows research effort. Many of the answers in <a href="http://www.stackoverflow.com">StackOverflow</a> tend to be professional and accurate.</p></body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement