HN-Community
Simple Database By me..... - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Aplication Programing (https://hacker-newbie.org/forum-39.html)
+---- Thread: Simple Database By me..... (/thread-7628.html)



Simple Database By me..... - syn_attack - 03-10-2011

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; }



RE: Simple Database By me..... - N4is3N - 03-10-2011

Bisa di jelasin bro? itu cara pake nya gimana, trus fungsi nya buat apa?
Biar semua tau, Bigsmile


RE: Simple Database By me..... - Sidom - 03-10-2011

bro ntar abes di compile cara kerjanya gmn ??? Bingung


RE: Simple Database By me..... - valefor - 09-08-2011

wah gaje ni..
di jelasin donk om,udah di compile,jadi nya kaya apa?
samakah dengan database yang lainnya?
TS nya mana?


RE: Simple Database By me..... - NewWorld - 10-09-2011

waduh GJ ni TS nya, btw ane mau tanya, ntu buat create DB ato buat koneksi db.
kalau koneksi db, DB nya pakek apa ?


RE: Simple Database By me..... - 72Dark - 10-10-2011

kok ane ga ngerti ya ..
TS ane minta tutor yg jelas donk ..