{"id":4326,"date":"2013-09-18T05:09:35","date_gmt":"2013-09-17T19:09:35","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4326"},"modified":"2013-09-18T05:09:35","modified_gmt":"2013-09-17T19:09:35","slug":"c-xcode-oop-function-template-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/c-xcode-oop-function-template-primer-tutorial\/","title":{"rendered":"C++ Xcode OOP Function Template Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/FunctionTemplate\/CPlusPlus_Template_Primer.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"C++ Xcode OOP Function Template Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/FunctionTemplate\/CPlusPlus_Template_Primer.jpg\" title=\"C++ Xcode OOP Function Template Primer Tutorial\" \/><\/a><p class=\"wp-caption-text\">C++ Xcode OOP Function Template Primer Tutorial<\/p><\/div>\n<p>Our C++ Xcode OOP Function Template Tutorial presented here uses a great feature of C++ that can streamline code where the only differences between functions presented are the data types returned and the data types passed in.   The word template is often associated with the saving of time, as users of Microsoft Word would attest, if they make use of Microsoft Word templates &#8230; similarly for Adobe Dreamweaver &#8230; read more <a target=_blank title='File Template information from Wikipeda' href='http:\/\/en.wikipedia.org\/wiki\/Template_%28file_format%29'>here<\/a>.   Let&#8217;s see below some information about Function Templates in C++ from Wikipedia:<\/p>\n<blockquote><p>Templates are a feature of the C++ programming language that allow functions and classes to operate with generic types. This allows a function or class to work on many different data types without being rewritten for each one. This is effectively a Turing-complete language.<\/p>\n<p>Templates are of great utility to programmers in C++, especially when combined with multiple inheritance and operator overloading. The C++ Standard Library provides many useful functions within a framework of connected templates.<\/p>\n<p>Major inspirations for C++ templates were the parametrized modules provided by CLU and the generics provided by Ada.[1]<\/p><\/blockquote>\n<p>Click on picture to see some  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/FunctionTemplate\/CPlusPlus_Template_Primer.jpg'>C++ using XCode<\/a> programming showing a Function Template scenario for working out the modulus (or <a target=_blank title='gastropod' href='http:\/\/en.wikipedia.org\/wiki\/Modulus_%28gastropod%29'><strike>sea snail<\/strike><\/a> or remainder) of two numbers.<\/p>\n<p>Link to some downloadable programming C++ source code &#8230; rename to <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/CPlusPlus\/FunctionTemplate\/main.cpp_GETME' title='Download me'>main.cpp<\/a> for use.<\/p>\n<p>Link to Function Templates information &#8230; <a target=_blank title='Function Templates' href='http:\/\/en.wikipedia.org\/wiki\/Template_%28C%2B%2B%29'>from Wikipedia from which quote above comes<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4326' onclick='var dv=document.getElementById(\"d4326\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=C%2B%2B\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4326' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Our C++ Xcode OOP Function Template Tutorial presented here uses a great feature of C++ that can streamline code where the only differences between functions presented are the data types returned and the data types passed in. The word template &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/c-xcode-oop-function-template-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,28,37,40],"tags":[176,474,875,997,1319,1473],"class_list":["post-4326","post","type-post","status-publish","format-standard","hentry","category-elearning","category-oop","category-tutorials","category-xcode","tag-c","tag-function-template","tag-oop","tag-programming","tag-tutorial","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4326"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4326"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4326\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}