c0de :
Code:
/* creating a simple database */
/* Programmer and Author : Paulus Gandung Prakosa */
/* Compiled and Linked in Microsoft Visual Studio 2010 Ultimate */
#pragma once
#include "stdafx.h"
#include <iostream>
#include <string>
#include <cstdlib>
#include <conio.h>
#define _CRT_SECURE_NO_WARNINGS
#define __cplusplus
typedef unsigned int _uint;
typedef unsigned char _uchar;
using namespace std;
struct simple_database {
char* name;
__int64 NIM;
char* department;
public :
void set_db (char* nm, __int64 _num, char* dep)
{
name = nm;
NIM = _num;
department = dep;
}
void get_db()
{
cout <<"your name is : "<< name << endl;
cout <<"your student number is : "<< NIM << endl;
cout <<"your department is : "<< department << endl;
cout <<'\n';
}
};
int main(void)
{
cout <<"Creating Simple Database"<< endl;
cout <<"Programmer and Author : Paulus Gandung Prakosa"<< endl;
cout <<"Bot Responding : opening db_query......."<< endl;
cout <<"Bot Responding : SUCCESS"<< endl;
cout << endl;
simple_database _db;
_db.set_db("Paulus Gandung Prakosa", 10410200103, "D4 Teknik Informatika");
_db.get_db();
return 0;
}

![[Image: f8-infinity-banner-boundaries.png]](http://fedora.nicubunu.ro/banners/images/f8-infinity-banner-boundaries.png)
![[Image: Alzeanet.1.gif]](http://feeds.feedburner.com/Alzeanet.1.gif)

[/code][/php]


