See you again sam, a friend of the blog from the phewe ..
baeng will now learn to practice using programming language using c + +
From here we are at an early stage will study a recognition of the language c + + is what and will try to mebuat simple program of what we learned today all ok friend blog.
What language pemgraman c + + that Maw know to my friends all ... same time I also aspires to know ... EMH EMH .. ni from reading that I get programming language c + + is a language pemogaman derived from the language of c dn this language is more relative dai language c. c + + language was created by Bjarne Stroustroup around the year 1982.
Know where c + + anyway? Let's see what should we know before we learn meogram c + +.
# include / / menyrtakan header iostream.h
int main () / / type exit code
{/ / beginning of a program
cout <<"... ... .."<< endl; / / prnyataan to display strings
return 0; / / pernyhataan for member program exit code
} / / end of a program
File header (berktensi.h) is a file that Guang Yu Book Store propotipe function, fungs definition, and definitions vaiabel.
# include is a perinah that is used to set the compiler to read the file header at the back I included the word include the course of this compilation.
Main () is a function that will be run the first time ketikla program in execution. And word on the next play int states that the program has a return value of type int. int type adala stating type integer.
The value behind the program is determined by the return statement. On the program front, stating Ahwa return 0 return value is 0 the program.
Once we know bgian part of what is in C + +.
Okay we are now going to try to try menbuat a program as early dai sederhna learn c + + this.
We will create a form letter R with an asterisk (*).
Ok now please you typed under this program in c + + project you
#include
int main()
{
cout<<”*****”<
cout<<”* *”<
cout<<”* *”<
cout<<”******” <
cout<<”* *”<
cout<<”* *”<
cout<<”* *”<
return 0;
}
1 comments:
Posting Komentar