tag:blogger.com,1999:blog-52659002295466482692024-03-13T14:39:04.946-07:00Simple Tutorial 2010All About Programming TutorialSimple Tutorial 2010http://www.blogger.com/profile/16225155483714829003noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5265900229546648269.post-66031066281642988002010-08-08T20:32:00.000-07:002010-08-08T20:34:09.413-07:00Introduce Of C/C++<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_PvslfXWiCow/TF928ESmTrI/AAAAAAAAABk/IPJY7I0d-70/s1600/c%2B%2B+logo.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_PvslfXWiCow/TF928ESmTrI/AAAAAAAAABk/IPJY7I0d-70/s320/c%2B%2B+logo.jpg" /></a></div><b><span class="Apple-style-span" style="color: lime;">History Of C and C++</span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">When Talking about C + +, we must start from C as the language of its predecessor, C including languages pemrograma n is the secondary level. Creator of C is Brian W. Kernighan and Dennis M. Ritchie in 1972. C is a programming language structure that divides the program into a number of blocks (Sub program). The goal is to simplify the making and program development. Programs written with C very easily moved from one type of machine to another. This because the standardization of C is ANSI (American National Standards Institute) is the reference compiler makers C.<br />
<a name='more'></a>C + + was created a decade after C. C + + was created by Bjarne Stroustroup from Bell Laboratories, AT & T in 1983. In the beginning C + + given name "A better C". Name of C + + itself named by Rick Mascitti. The signs + + derived from the increment operator on the language C.</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">Features of C + + is that this language supports OOP (Object Oriented Programming). The main purpose of C + + is to improve productivity of programmers in creating applications. Most experts agree that OOP and C + + is able to reduce the complexity, especially programs comprises more than 10,000 rows, it can even increase productivity 2X from C, Pascal and Basic.</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span class="Apple-style-span" style="color: lime;">C + + program</span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">C + + program can be created using any text editor or editor compilernya well. Main program with extension (. CPP). At the time of compilation The main program together with the header files (. h) will be translated by</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">compiler into an object file (. obj). Furthermore, this object file together with other object files and library files (. LIB) linked together by a linker. The result is a file (. EXE) executable.</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="color: lime;"><b>C + + compiler</b></span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;">C + + compiler that has been circulating in the market such as Microsoft C / C + + and Visual C + +. Both are from Microsoft. While Borland International also issued a Turbo C + + and Borland C + +,Netbeans can also be made in c + + compiler, but in needing cygwin as extra plug-in.</div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><span class="Apple-style-span" style="color: lime;">Example C++ Code</span></b></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="color: blue;">#include</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="color: blue;">void main(){</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="color: blue;">cout <<“Hello world”;</span></div><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="color: blue;">}</span></div>Simple Tutorial 2010http://www.blogger.com/profile/16225155483714829003noreply@blogger.com1tag:blogger.com,1999:blog-5265900229546648269.post-68771983523552154882010-08-08T20:21:00.000-07:002010-08-08T20:22:05.632-07:00Introduce Of JAVA<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_PvslfXWiCow/TF9zfKoPQRI/AAAAAAAAABU/ddB7Ntk6mQQ/s1600/java_starting.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/_PvslfXWiCow/TF9zfKoPQRI/AAAAAAAAABU/ddB7Ntk6mQQ/s320/java_starting.jpg" /></a></div><br />
<span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: lime;"><b>History JAVA</b></span><br />
The first Java programming language born of The Green Project, which runs for 18 months, from early 1991 until summer 1992. The project is not using the version that is called Oak. This project was initiated by Patrick Naughton, Mike Sheridan, James Gosling and Bill Joy, along with nine other programmers from Sun Microsystems.</span><br />
<a name='more'></a><span class="Apple-style-span" style="background-color: white;">One result of this project is the Duke mascot created by Joe Palrang. Project meeting took place in an office building on Sand Hill Road Menlo Park. Around the summer of 1992 the project was closed by generating a Java program's first Oak, the Internet is still a stub, which is used only in academic circles and the military. They make the browser (browser) Mosaic as the basis for beginning to create the first Java browser called Web Runner, inspired from the 1980s film, Blade Runner. In the development of the first releases, Web Runner renamed Hot Java. In about March 1995, for the first time 1.0a2 version of Java source code is opened. Their success was followed with a proclamation for the first time in the newspaper the San Jose Mercury News on May 23, 1995. Unfortunately there are divisions among them one day at 4:00 pm in a hotel room Sheraton Palace. Three of the main leaders of the project, Eric Schmidt and George Paolini of Sun Microsystems along with Marc Andreessen, Netscape formed. </span><br />
<div><span class="Apple-style-span" style="background-color: white;">Oak name, taken from an oak tree that grows in front of the windows work space "father of Java" James Gosling. Oak name is not used for release versions of Java as a software has been registered with the trademarks, so that his successor be taken name "Java". The name is taken from the ground pure coffee beans directly from (instant coffee) Gosling's favorite, currently many vendors who use java example Nokia, Sony Ericsson, Motorola, and Samsung.<br />
<br />
<span class="Apple-style-span" style="color: lime;"><b>JAVA Program</b></span><br />
JAVA program can be created using any text editor or editor compilernya well. Main program with extension (. JAVA).JAVA compiler is a compiler for the Java programming language beginning the first time when we compile, its output is similar to a command prompt,java compiler typically takes many libraries of C ++.</span></div><div><span class="Apple-style-span" style="background-color: white;"><br />
</span><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: lime;"><b>JAVA Editor</b></span></span><span class="Apple-style-span" style="background-color: white;"><br />
</span><span class="Apple-style-span" style="background-color: white;">Lots of java editor that has been circulating on the internet, for example, NetBeans, Eclipse, J-Creator, J-Turle. and that I can recommend for a beginner you can try netbeans, why netbens? other than a very informative display, netbeans jg has features that are not in the possession of other editors.</span><br />
<div><span class="Apple-style-span" style="background-color: white;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: lime;"><b>JAVA Varians</b></span><br />
JAVA has a lot of variance that is Java SE, Java ME, Java EE and JRE, but for this issue we discuss in the next post.</span></div></div><div><span class="Apple-style-span" style="background-color: white;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: white;"><b><span class="Apple-style-span" style="color: lime;">Example JAVA Code</span></b></span></div><div><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;">import java.io;</span></span></div><div><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;">public class Test {</span></span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;"> </span></span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;"><br />
</span></span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;"> </span></span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;"> public static void main(String[] args){</span></span></span></div><div><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;">System.out.println("Hello World!");</span></span></span></div><div><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;"> }</span></span></span></div><div><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: monospace; font-size: 12px; line-height: 16px;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="color: blue;">}</span></span></span></div>Simple Tutorial 2010http://www.blogger.com/profile/16225155483714829003noreply@blogger.com0