angel world


  replayadd new topicnew poll

 Learn C with angel
angel
Posted: Feb 28 2006, 07:30 AM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



This is my First topic in the newiest Forum , anyway this not importing the importing it what is Langouge c or c++ .

Langouge C and C++ : they are from highest langouge of mashine to programe couple programes .

What we need to work with it , You need a compiler and you can finds one at Dowload.com . and I prefer to use Borland but any other software they will do fine .

Do this step and we going later to
talke more farther a bout it .


Regareds
Animated_Flutter_Emoticon_by_colormist.gif
angel



--------------------
user posted image
Regareds
angel
Top
angel
Posted: Mar 1 2006, 08:29 AM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



wave.gif helloo every body , so now you download i guess an programe to you used it . all right , I installition in my pc a borland compiler for c . So I will going to talke a bout libary of C++ in C system .

ok now in begine should choosing libarry we want to use which is know the funcations and statments that we used in our compiler to be valid the programe .
buddybean_12.gif

I will choose libarry #include<iostream.h>
any libarry type that is got in C compiler should end of it .h
but if you using C++ compiler should not end by .h




--------------------
user posted image
Regareds
angel
Top
angel
Posted: Mar 1 2006, 02:47 PM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



coffee1.gif ok at end of day we got nothing to do , except relax espically in week end you know what i mean isn't it .
any way , buddybean_22.gif we going to complete what we start , learning how to programming in C++ laungouge using C langouge .


Review last thing we take :
1. programe we should have to programe at .
2. the libary that contain the definition of cods .
3. which we now will taking how to build an box .


what I mean a bout build a box , aren't we build window in begain to see the matria at it ? yeah and how we can we build it .

to we build it we say >>>


<type of main > main ()
{
.....
...
...
...
where we type our code at it angel.gif .
.......................
.................
.........
.....
the ending of code main
}



if we got an main return value we type at the main type the type it does return
weather intger number ( using symbol int) and should we but in that case the ending code to the main as return 0;


and if and only if we don't want to return at end of day any thing from main , we will type an valid so we can ignore the type of main return value . or type on it valid .



This is the stander way to type the code :) .



CODE
[COLOR=blue]#include<iostream.h>
int main ()
{
return 0;
}[/COLOR]


buddybean_22.gif have nice day , to other lecture in C & C++ .


--------------------
user posted image
Regareds
angel
Top
angel
Posted: Mar 3 2006, 03:58 PM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



wave.gif hi every body , will today we going to learn how to type or see an writing over the screen .

so we will use the next code .

cout<<


now we will type Learn C & C++ with angel to we can view it over screen .

CODE
[COLOR=gray]#include<iostream.h>
int main ()
{
cout<<"Learn C & C++ with angel";
// don't forget to end the state by symecolone (;)
return 0;
}


wave.gif bye for now .


--------------------
user posted image
Regareds
angel
Top
angel
Posted: Mar 5 2006, 08:31 AM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



character0304.gif Hi againe , today i am going to teach you a bout variable and how to used it .

Do you remeber doing varaiable for mathamthic for unknown number and doing equation to figure what is it or we supose it some time is equal a value then graysmile.gif we figure all thing along .

it is same thing here in programming , we have known value but we have to descrip the type of it while it is character or integer or other type .


The type we got in C langouge are :
Char : mean characters .
int : is intger
float : number where are rational
double : is intger number but with more digit you can put at .

those are basic once that you need it a lot in programming

how to we decleartion it ???

< type of varaiable > < name of variable > ;
or
< type of varaiable > <name of variable > = < value which is equal it that value >;

note : if you not give the variable from begain value you can do it after by do the next step [/COLOR[COLOR=purple]]<variable name >= <the value of variable >
note 2 : when value is character you should put the value between ' ' qutatione for declearing it , while numbers don't need to put them between quatione except that you use them as characters .



--------------------
user posted image
Regareds
angel
Top
Guest
  Posted: Mar 8 2006, 10:34 PM


Unregistered









cool u made it little easier
Top
angel
Posted: Mar 13 2006, 07:53 AM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



coffee1.gif today is monday but they feeling is saturday that is just feeling back to work after holiday and weekend .

we learn how to declearition varaiables.
now how to give it an value .


ex:
int x =12;
-------------------------
int x;
x=12




thos two way how to give the variables values . ok now i want give this variable values from keyboard how can i do that ???

we have structure call cin<< which allowed you entering a value from key board 1.gif .

ex: get from keyboard 2 integer values


CODE
#include<iostream.h>
int main ()
{
int x;
cout<<" please enter an integer value :)"
cin>>x;
return 0;
}


--------------------
user posted image
Regareds
angel
Top
angel
Posted: Mar 14 2006, 07:35 AM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



old.gif will , now we going to learn more steps and be more proffisional a bout how to write or get an out put .

1. having new line
2. having space 8 bits .
3. little alarm


to we have new line in out out put we can use one of two ways

a. cout<<"/n";
b. cout<< endl;



to we have 8 bit space we used
cout<<"/t";


to we have an alarm
cout<<"/a";


--------------------
user posted image
Regareds
angel
Top
angel
Posted: Mar 18 2006, 06:18 PM


Administrator


Group: Admin
Posts: 646
Member No.: 1
Joined: 15-February 06



studing_hard%5B1%5D.gif EXcircies time :

EX(1): Creat next shapes : a)
CODE
*
**
***
*****
******

b)

ANgeL WoRld
  is      the
Best ........


C)      
*******
*******
**      **
**      **
*******
*******
**      **
**      **
**      **


D)

!!!!!!!!!!!!        !!!!!!!!!!!
|          |        |         |
|O   O  |         | OO   |
|    ^    |        |   ^    |
|  ----  |          | ----- |
---------           --------
    ||                   ||




studing_hard%5B1%5D.gif Ex(2) Creat a programe that acept to take a later and integer from keyboard . then represent it at screan .

example of the out put

Please insert a later.
a
please insert an integer
34
the later you insert is
a
the integer you have been insert is
34


--------------------
user posted image
Regareds
angel
Top
« Next Oldest | .:: Learn C/C++ ::. | Next Newest »


topic options replayadd new topicnew poll



Hosted for free by InvisionFree (Terms of Use: Updated 7/7/05) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.2659 seconds | Archive