Arsip untuk kategori Source Code C++

Sandi Viginer
Kategori Source Code C++ pada 4 May 2008

#include<iostream.h>
#include<string.h>
#include<iomanip.h>
 
void main()
{
char choice, again;
char input1[50],lock1[50];
int p1,q1,jum_k1,jum_m1,hrf1_k=0,hrf1_m=0,
ubh_k1[50],ubh_m1[50],ubh_h1[50];
char input2[50],lock2[50];
int p2,q2,jum_k2,jum_m2,hrf2_k=0,hrf2_m=0,
ubh_k2[50],ubh_m2[50],ubh_h2[50];
 
 
cout << endl;
cout << "|===============================================================|" << endl ;
cout << "|===============================================================|" << endl ;
cout << "|======================VIGENER CODE PROGRAM=====================|" << endl ;
cout << "|===============================================================|" << endl ;
cout << "|===============================================================|" << endl ;
cout << "\t\t\t\tBy :" << endl ;
cout << "\t\t1. Ahmad Nasrullah Jamaludin" << endl ;
cout << "\t\t2. Laily Aminatus [...]

Program dengan encapsulation.
Kategori Source Code C++ pada 4 May 2008

#include<iostream.h>
#include<math.h>
class vector2dimensi{
float x, y;
double r;
public :
void set_vector2dimensi(float xx, float yy){
x= xx;
y= yy;
}
double panj_vector2D(){
r= sqrt(x*x+y*y);
return r;
[...]

Program dengan prinsip inheritance (turunan)
Kategori Source Code C++ pada 4 May 2008

#include<iostream.h>
#include<math.h>
class vector3dimensi{
protected:
float x, y, z;
double s;
public :
void set_vector3dimensi(float xx, float yy, float zz){
x= xx;
y= yy;
z= zz;
}
double panj_vector3D(){
[...]