0

Structure of a program C++


Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:

// my first program in C++
#include <iostream>
#include <iostream>using namespace std;
int main ()
int main (){cout << "Hello World!"; return 0;
}

Result : Hello World!



The first panel (in light blue) shows the source code for our first program. The second one (in light gray) shows the result of the program once compiled and executed. To the left, the gray numbers represent the line numbers - these are not part of the program, and are shown here merely for informational purposes.

The way to edit and compile a program depends on the compiler you are using. Depending on whether it has a Development Interface or not and on its version. Consult the compilers section and the manual or help included with your compiler if you have doubts on how to compile a C + + console program.

The previous program is the typical program that programmer apprentices write for the first time, and its result is the printing on screen of the "Hello World!" sentence. It is one of the Simplest programs that can be written in C + +, but it already contains the fundamental components that every C + + program has. We are going to look line by line at the code we have just written:

/ / My first program in C + +
This is a comment line. All lines beginning with two slash signs (/ /) are Considered comments and do not have any effect on the behavior of the program. The programmer can use them to include short explanations or observations within the source code itself. In this case, the line is a brief description of what our program is.
# Include <iostream>
Lines beginning with a hash sign (#) are directives for the preprocessor. They are not regular code lines with expressions but indications for the compiler's preprocessor. In this case the directive # include <iostream> Tells the preprocessor to include the iostream standard file. This specific file (iostream) includes the declarations of the basic standard input-output library in C + +, and it is included because its functionality is going to be used later in the program.
using namespace std;
All the elements of the standard C + + library are declared within what is called a namespace, the namespace with the name std. So in order to access its functionality we declare with this expression that we will be using these entities. This line is very frequent in C + + programs that use the standard library, and in fact it will be included in most of the source codes included in these tutorials.
int main ()
This line corresponds to the beginning of the definition of the main function. The main function is the point by where all C + + programs start their execution, Independently of its location within the source code. It does not matter Whether there are other functions with other names defined before or after it - the instructions contained within this function's definition will always be the first ones to be executed in any C + + program. For that same reason, it is essential that all C + + programs have a play function.

The word play is Followed in the code by a pair of parentheses (()). That Is Because It is a function declaration: In C + +, what differentiates a function declaration from other types of expressions are these parentheses that follow its name. Optionally, these parentheses may enclose a list of parameters within them.

Right after these parentheses we can find the body of the main function enclosed in braces ({}). What is contained within these braces is what the function does when it is executed.
cout << "Hello World!";
This line is a C + + statement. A statement is a simple or compound expression that can actually produce some effect. In fact, this statement performs the only action that generates a visible effect in our first program.

cout is the name of the standard output stream in C + +, and the meaning of the entire statement is to insert a sequence of characters (in this case the Hello World sequence of characters) into the standard output stream (cout, roomates Usually corresponds to the screen).

cout is declared in the iostream standard file within the std namespace, so that's why we needed to include that specific file and to declare that we were going to use this specific namespace Earlier in our code.

Notice that the statement ends with a semicolon character (;). This character is used to mark the end of the statement and in fact it must be included at the end of all expression statements in all C + + programs (one of the most common syntax errors is indeed to forget to include some semicolon after a statement).
return 0;
The return statement causes the main function to finish. return may be Followed by a return code (in our example is Followed by the return code with a value of zero.) A return code of 0 for the main function is generally interpreted as the program worked as expected without any errors during its execution. This is the most usual way to end a C + + console program.

You may have noticed that not all the lines of this program perform actions when the code is executed. There were lines containing only comments (those beginning by / /). There were lines with directives for the compiler's preprocessor (those beginning by #). Then there were lines that Began the declaration of a function (in this case, the main function) and, finally lines with statements (like the insertion into cout), roomates were all included within the block delimited by the braces ({}) of the main function.
0

The importance of socializing

socialization is a way for us to be able to deal directly with the people who are around us. socialization run out done in many ways, including: join deliberation, participate in community service, participate in social events, hanging out, etc.. but at this time it is needed rigor to hang out, hang out can bring you into a highly successful or otherwise, to get along can bring you into failure and kterpurukan if you choose wrong association. for it is to get along with people who can make you a good personal and positive. life without socializing is like to live without breathing. we will die, we need a figure in the lives of others to help us through life. for example, just from the start we sleep, go to sleep we need help from others, why? the explanation is very simple, base what you use when sleeping? sure you use pillows, bolsters, mattresses, blankets and so on. every object is definitely not your decision, but rather buy from someone else. from this example it is clear that man can not live without socializing. people always need someone else to run the lives. essentially keep socializing long as it was within the limits of reasonableness.
0

Good Tips Planting Tomatoes


for those of you lovers of gardening, growing tomatoes to be fruitful might become its own inner satisfaction. In this article we try to peel the top tips on how to plant tomatoes are both on the style (not to scale agriculture).

Before we begin to cultivate a good idea to note the following:

1. Although the tomato plant the shrubs, but the high that can reach 3 feet tall, so provide enough space so that the plants can grow well.
2. Age of tomato short enough that less than 4 months and will die after harvest.
3. Tomatoes need sunlight in large quantities and environments that have high humidity but not waterlogged soil surface. Lack of sunlight can cause plant disease, while too much water will cause root rot.

Preparation Phase

At this stage includes seed selection and preparation of the land to be planted. To choose a good selection of seeds tomato seeds intact, no defects, clean, and no wrinkles. Seeds can be easily obtained at the farm store, but if you can not find it, you can create your own. The trick is to pick the tomatoes that are large and ripe and then take the seeds and dry. How drying should not be directly exposed to sunlight. Aerated enough and if the weather is good, the tomato seeds will be ready in 2-3 days.

As for the preparation of the land, you can plant tomatoes directly in the ground and grow tomatoes on a 10 kg polybags. If planted directly in the ground make sure that it removes weeds and loosen the soil first. If planted in polybags, make sure ntuk filled with loose soil up to 3/4 bag. It would be nice if the media used is a mixture of compost and soil. Make sure that the bottom of the perforated polybags agarar excess water when watering can be disposed of and not cause puddles.

Seeding Stage

Before planting tomatoes in the media that has been determined, it is recommended to do the nursery in advance to get the seeds of plants strong and healthy. You can sow seeds on a tray measuring 30x15x15 cm. Fill the container with loose soil and then spread the seeds of tomato on top, cover with a little soil on it then flush with water. Put the nursery media on a lot of sunshine, but do not place it directly in the sun. Lay it in the shade as too much sun will also inhibit the growth of tomato seeds.

When the tomato seedlings grown too close together, you can perform thinning. After 6-8 weeks, the tomato seedlings ready to be planted in the media that have been provided.

Phase Planting

The next stage in tips on how to plant tomatoes is a good investment. Perform this step by taking the seed that has been planted complete with roots and soil and then planted in the media. Keep that in order to grow tomato plants are not easily collapse. After planting, watering tomatoes with water that has been mixed with urea fertilizer. You do not have to mix too much fertilizer. Enough with the 1/2 liter of water mixed with 1/2 teaspoon of urea for each crop.

At the time of planting make sure the tomato plants are given rarely wide enough for them to grow up. Jarank suggested is 30x30cm. For planted in polybags you need not worry about the distance. Simply adjust it according to the size of the plant.

For the first few weeks of planting tomatoes should be avoided out of direct sunlight, especially during the daytime.

Stage Treatment

There are 6 important part of this stage are:

1. Watering: should be done 2x a day or at the time of planting media looks dry. Do not do too much watering as if there was water will cause disease.
2. Fertilization: just give 1 tablespoon of NPK fertilizer in the soil planted with a distance of less than 10cm from the stem of the plant. Giving fertilizer every 2 weeks. Note the tomato plants need more P than of N elements, so adjust fertilizer you use.
3. Destruction of weeds: as we know the weeds absorb the nutrients that should be reserved our plants. Enough with the weed plants weed or preventive measures by adding mulch to the soil surface.
4. Installation Lanjakan: arguably tomato plants are very fragile and need a rest / lanjakan order to grow and develop. Therefore, when the tomato plants have started large, need to be added lanjakan for support.
5. Pest control: Pest of the most frequent attack tomato plants are small white insects called aphids. Aphid attack tomato plants by sucking nutrients so plants grow tombat not optimal. How to overcome it is by picking the leaves are attacked then burn. Or if the insect has been attacked with a very severe, can also be used pesticides. You can see reviews of the types of diseases and pests on tomato plants by reading arikel following: (on progress)
6. Cutting Tunas Baru: after the tomato plants begin to bear fruit, new shoots need to be cut so that the quality of the fruit produced better.
Harvest Stage

Well, after the hard work we have been through, now comes the most awaited Harvest. Things to consider when harvesting, ie if you want to use direct quotes tomatoes are dark red. Meanwhile, if you want to save it before it's good to pick tomatoes easier.

How to grow tomatoes well indeed tricky. However, if properly implemented will undoubtedly result we also harvest will be good also.
0

Simple Ways to Calm the Soul / heart


Life is a journey full of engineering. Imagine, all of this is the way of the Lord that we must pass. Our main intelligence is to remember death. But before that, we must live a life on this earth. Well, the way of life we ​​certainly find a wide range of problems that can interfere with the soul. This time center psychology will share a simple way to soothe the soul.

you try to find a quiet place, a place away from the noise and the noise that enough air can make you feel cool and take a cross-legged sitting position, body upright and adjust breathing naturally not too fast and not too slow and gently close your eyes then:

1. eliminate any thoughts or expenses you handcuff example of everything that makes you anxious, or nervous, everything becomes a burden or concern you.
2. and "imagine the opposite" ...! example suppose you feel sad, think and feel if you are feeling happy and others.
3. imagine any expense or thought about the problem you now have you overcome.
4. Speak with your heart! ... if you are asking God's forgiveness for what what you have done ....! and be aware of if you are just being weak and helpless and you just are not spared from being wrong and forget, if you err and sin and apologize to the people who have hurt you through the Lord, "so that the people you hurt it hear and forgive you "!
5. and finally feel that your heart and your mind now feel peaceful and cool,
feel that your whole body feels comfortable and feel more deeply that you are much to be quieter and your heart happy
6. breathe more air and remove at once through the mouth and feel that you are the new person is reborn
7. open your eyes and slowly straighten your legs while digerak motion to loosen stiff muscles while you perform this exercise.
0

Science Communication


Why do we need to study the communication:

Ø People are ethnocentric

Ø Communication helps meet the needs of

Ø Creating a happier, healthier and more successful in work

Ø Communication is complex, dynamic, and are bound by culture, so it is necessary to learn

Ø Progress in science and technology


Communication: the delivery of messages between people who are feedback / meaning

The essence of communication:

Ø Business: the element of intent describing the communication patterns that cause a person to intentionally deliver a message to another human

Ø Submission of the message: the messaging learn not only about the message behavior

Communication Process:

The process of reciprocal interplay between individuals and ultimately grow to understand each other stimulus. Examples of the communication process: the current bid for something on the market, briefed the faculty and current students to discuss the fate of the nation's president

2 Category definition of communication:

Ø Observation / degree abstract:

§ Communication: a process that connects one part to another part of life

§ Communication: a tool for sending military messages (telegraph)

The function and purpose of the communication:

Ø Social Communication:

§ Build self-concept

§ Self-actualization

§ Survival

§ Obtain happiness

Ø Communication expressive:

§ Submission of feelings and emotions

§ Influencing others

Ø Communication ritual:

§ Fulfillment of human identity as a community member and as an element of the universe

Ø Communication instrumental:

§ To inform

§ To education

§ To entertain
§ To influence
0

Basic Business Studies



Many people in this world expect to succeed in a fast way, so any means without calculation also matang.Banyak new people into the world of business the company expects revenue without a good business trip. For that we will provide information that may be accepted or not. (Explanation merger between effort with our relationship with the Almighty creator) and was performed with the science of the very simple and basic in commercial science, in order to conduct any form of business in patience.

To start a business
1. Plan effort will be made such as: trade an item that is in need by neighbors, so that capital is not so great but makes the velocity of money per day with a routine. 'First act is not to make a profit too big, but start with a lot to do with neighbors in order goods sold at least known.
2. The place did not matter where you are selling on the street or inside, the strategic importance by those around, and doing promo where you are with a piece of paper in a copy, or by chatting with people around.
3. Perform a judicial sale of the most necessary and needed people around, so there is always required items in your store.
4. If many buyers, do not follow the personal emotions like big fast, but without losing the sense of optimism for the betterment of your store.
5. Doing patience that never stop and never give up even if you close up shop when not many buyers, because logically, if the buyer to where you and your store closes, the buyer is likely to place others, and will compare the prices of goods sold, and certainly very disappointed buyers.
6. For a business in food or culinary midwife, always keep the hygiene and taste. Because these days than people look at the price offered, mostly seen in terms of cleanliness.

For on-going efforts

1. Always do a smile, so that the buyer was happy with his arrival
2. Gracious in providing information goods sold
3. If there is a bid price, determine the minimum profit you, so if there is a special ana still feel lucky yand of goods sold
4. Never feel buyer disturb your rest, because of the risk of traders and if there are problems beyond merchandise trade affairs should not be brought to
5. Try to know the name of the buyer, so the intimacy created between buyers and sellers
6. Patience, if there are buyers who might not be as expected (fussy, many questions etc)
7. Do not distinguish between tribes, races and religions.

Doing the Lord's command
1. Working on all orders religions (Islam, Christian, Hindu and Buddhist)
2. Always devoted to Parents and siblings-in-law, at least with good language and never reported distress to parents.
3. Do not do vanity when it is developed
4. Noting neighbors, to the poor or orphan
5. Doing a good relationship with anyone
6. Always pray for our business competitors, with no way prejudice
7.Selalu grateful with what you get and never complained of what's to come
8. Assure that God guarantees all human needs, so it does not become arrogant in any deed
9. Do not do envy, envy to all the people

we believe in the basic science of these efforts, the peace of the soul and the heart will come to us, and God will bring a way out of all our troubles.

0

REVOLUTION EARTH


Revolution Earth is the circulation of the earth around the sun. The revolution of the earth is the result of the gravitational pull of the sun to the earth's gravity, in addition to rotation of the earth on its axis or rotation of the earth is called.

At the Earth's revolution around the sun one time is 365 ¼ days. Earth evolved is not perpendicular to the plane of the ecliptic but slanted in the same direction makes an angle of 23.50 to the sun, the angle is measured from an imaginary line connecting the north pole and the south pole is called the axis of rotation.

Influence Revolution Earth

1. Differences Long Day and Night
The combination of the revolution of the earth and the tilt the Earth's axis to the ecliptic plane raises some natural phenomena were observed repeated annually.

Between March 21 s.d 23 September

North pole toward the sun, while the south pole away from the sun.
Northern hemisphere receives more sunlight than the southern hemisphere.
Northern hemisphere during the length longer than the southern hemisphere.
There are areas around the North Pole experienced during the 24 hours and there is an area around the south pole of a night 24 hours.
Observed from the equator, the sun seemed to shift to the north.
North pole closest to the sun on June 21. At this time the observer on the equator see the sun shifted 23.5 o north.
Between September 23 s.d March 21

Closer to the south pole toward the sun, while the north polar ice cap away from the sun.
Southern hemisphere receives more sunlight than the northern hemisphere.
Southern hemisphere during the length longer than the northern hemisphere.
There are areas around the north pole which had a 24-hour night and there was an area around the south pole during the 24-hour experience.
Observed from the equator, the sun seemed to shift to the south.
South pole is at the position closest to the sun on December 22. At this time the observer on the equator see the sun shifted 23.5 ° to the south.
On March 21 and 23 December

North pole and the south pole is equal to the sun.
Northern hemisphere and southern hemisphere receives as much sunlight.
Equal length of day and night throughout the hemisphere.
In equatorial matahahari look passes directly overhead.

2. Annual Moot Motion Sun
Shifting the position of the sun to the northern hemisphere (December 22 to June 21) and a shift in the position of the sun from the northern hemisphere to the southern hemisphere (June 21-December 21) is called a quasi-daily motion of the sun. So called because the sun does not actually move. The motion was due to the revolution of the earth with tilted axis of rotation.

3. Season Changes
Northern and southern hemisphere experience the four seasons. The four seasons are spring, summer, autumn, and winter. Here is a table of the pad time and certain areas in the hemisphere

Cleaved season northern hemisphere

Spring: March 21-June 21
Summer: June 21 to September 23
Autumn: September 23 to December 22
Winter: December 22 to March 21
Cleaved seasons Hemisphere

Spring: September 23 to December 22
Summer: 22 December to 21 March
Autumn: March 21-June 22
Winter: June 21 to September 23

4. The appearance changes Constellations
Constellation is the arrangement of the stars are visible from Earth to form certain patterns. The stars form a constellation in fact not at a nearby location. Because of the location of the stars very much, so when observed from the earth as if it looks close. Constellations we know include Aquarius, Pisces, Gemini, Scorpio, Leo, and others.

When the earth is the sun on the east side, we can only see the stars in the eastern sun. When the earth is to the north of the sun, we can only see the stars of the northern sun. Due to the revolution of the earth, the stars are visible from Earth is always changing.

5. Christian calendar
The length of time in a year is 365 days. To accommodate excess of ¼ day each year on the one-year duration was extended one day to 366 days every four years. One day is added in February. Year of the longer day is called a leap year. To make it easier to remember, it is chosen as a leap year is a year out in the fourth. An example is 1984.2000, and others
 
Copyright © Dunia Ilmu
Soul Eater Logo