• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Saturday, September 8, 2012

LIBRARY PROGRAM USING C ++


Hi.. welcome to my blog at “We Are Knowledge”… In here you will getting many It knowledge. Likely this page discuss aboit program language.

Now.. I want giving you IT knowledge about program language “C++” and tutorial about “example of a simple library program using the programming language C + +”.

For this program I do not use a special syntax, but using the operator multiplication operator.. You will know ?? let’s do read my article and try at your home… have fun for read it…
You can copy this coding and paste to your software like  as : borland or Turbo C. You can using it for making this program.


Example 1 :

#include <iostream.h>
#include <conio.h>

main()
{
clrscr;
char a[20], b[20], c[20];
int d, e;
cout << "Your Name        : ";
cin >> a;
cout << "Title of Book    : ";
cin >> b;
cout << "Your Address     : ";
cin >> c;
cout << "Borrowed Times   : ";
cin >> d;

e = 500;

clrscr;
cout << endl << endl;
cout << "Your Name Is     : " << a << endl;
cout << "Title Of Book    : " << b << endl;
cout << "Your Address is  : " << c << endl;
cout << endl << endl;
cout << "Old Lending Is   : " << d << " Day";
cout << endl;
cout << "=============================" << endl;
cout << "And You Must Pay : Rp. " << d * e;

getch();
}


Note ::

If you using copy and paste, please change all quotes (“ “) or (‘ ‘)
Press alt  + F9 for compile the program
Press ctrl + F9 for running the program


Logic ::

Cout
>> for print sentence to output window

Endl
>> for move new line

Cin
>> for input value (char or integer) in output window


Ok.. just it..
I hope you like…
See you later boy..

No comments:

Post a Comment