O.omg
2010-11-05 @ 16:50:17
Now when i looking at my last post i know it wasn't good idea to start it. So in return i will recommended a good book where is beter explained.
With that book "Od zera do gier kodera" i started my adventure with programing.
I left in my last post many improtant informations, but belive me it would took to many space, and it wouldnt't be really clear if i put it there. If u check how long is this book u will be know why my decison was pointless.
Beginning of C++
2010-11-05 @ 16:41:50
As i said i start this tutorial.
First i want to tell i dont have much knowledge about it. But its my blog so i will write here what ever i want :P.
To program i prefer a Dev-C++, its simply freeware program to compile our algoritms.

First we need to declare library what we will use.
#include<cstdlib>
#include<iostream>

Next we can use:
using namespace std;
Its not neccesary. Why we use it i will explain later.

Now we open a main function where we will create our program
int main()
{
int number,tab[10];
Now we declare a variable(zmienna) "number" and a board(tablica) "tab".
Int mean here that we will using a numbers.
WARNING: apostrophe(';') is really importat here. Its points where our function end.


cout<<"Jakiś tekst, np. wprowadź liczbe: ";

cout funstion mean every thing what u want to display in console. If it a Text u use "", if its a one mark u can put it in '', and a name of variable we write with nothing.

If we wont used a "using namespase std" at the beginnig we had to write it like that: "std::cout<<..." and it would took much more time and energy


cin>>number

Here we inscribing some number to our program.

tab[10] mean we have 100 variable called tab. We can use it writing tab[0], tab[1], tab[2],...,tab[9]. Important thing is that u start count all boards from 0.

Always at end put:
system("PAUSE");
return EXIT_SUCCESS;
to end main function
}

If u want write some comments in your program put it behind two slash //Your text.
Its helpfull to remind what u done.


Sample of some program:
Silnia(n!):

#include<cstdlib>
#include<iostream>

using namespace std;

int main()
{
int n,a;
cout<<"Silnia z: ";
cin>>n;
for(a=n-1;a>0;a--){
n*=a;
}
cout<<"Wynosi: "<<n<<'\n';
system("PAUSE");
return EXIT_SUCCESS;
}

I used here
loop for. Its mean: a=n-1; do instructions in {...} science a>0, if a<=0 end loop;subtract 1 from a.
'\n' mean: end line, go to secound line. U can use endl to to do that.
'*=a' mean x=x*a
Decision
2010-11-04 @ 21:48:19
I decided that i will put here something about to program in C++. Maybe here are some people who will intrested in this. The other reaseon i will be able to recall some basic stuff of this :]
Something about me...
2010-11-04 @ 21:33:12
The worst thing i think in my person is that, that its really hard for me to use my free times for a needed stuff like learning or meeting friends.
Im a lonly person, i have only some "friends" in school. I used "" becouse i don't have any close friend's with who i can share my problems.
This is a some reason why i start this blog.
I dont have a much problems, becouse i ignoreg most of them. I trying to live day by day and don't care too much about my future.
As i mention in link "about me", i lost my life in front of a computer. Now when i thinking about it, i cant say when its begin like that and why its still happend. Maybe its becouse i many times stay alone in home and watching tv becouse i cant go alone and play with others kids in playground. But i really dont belive at that, its only a bad excuse. I live in conviction almost all fault its besouse of my laziness.
Introduction
2010-11-04 @ 21:12:04
Hi I'm Paweł. I'm 20 year's old. In this blog i will try write viewpoint of life and something about myself. It's mean I will write a many long posts in someone opinion, but why i maybe will mantion in future.

Is the first time when I write something like that, I mean to anybody who would like to read it.
To this time i never used any chat's or stuff like that. My only expresion about it was a few forum's.
This is english blog. User writes in english. If you would like to have blog like this, you can register your own for free.
Register your own english blog
Język angielski matura z angielskiego Gramatyka angielska