13-01-2012, 02:24
|
المشاركة رقم: 1 |
| المعلومات | | الكاتب: | | | اللقب: | ::عضو جديد :: | | البيانات | | التسجيل: | Jan 2012 | | العضوية: | 370434718 | | المشاركات: | 1 [+] | | بمعدل : | 0.01 يوميا | | اخر زياره : | [+] | | الإتصالات | | الحالة: | | | وسائل الإتصال: | | | المنتدى :
منتدى لغة السي c/c++ create a database with C++ and MFC!!!pls heeeelp me i have to create a database using C++ and MFC
we have at the first time classes :
1)CreateField which has the name of the field and the type
2)CreateTable which has the name of the field and a table (dynamic
it can add ,delete,modify a field and also save an object table in a binary file and load it.
3)CreateDatabase which has a the name of the database and a table (dynamic) of Tables.
it can also add, delete,modify a table.and save and load it in binary file(the same of tables). f
4)CreateTuple which represents a line of a table.it has a table(dynamic) of string .
5)RecordSet which heritate from class "CreateTable" and contains also a table (dynamic) of Tuple.
this class contains:
1-1)a constructor having as parameters an objects of database and the name of the Table.
2-2)the function NewTuple which allow to create a new tuple of table which has the same size of table of fields but full of empty strings and add it in the end of the table of tuples.
3-3)the function SetValueField which has 2 parameters : the name of the field , and the value of the field as a string .this function put the value in the tuple in the position of the index corresponding to the name of the name of the field in the table of fields .the function has to verify before between the value and the type of the field
Pleaaaaaaaaaaase Help me!!!!! i don't know how to implement this!!
أرجوكم ساعدوني!!!!جزاكم الله خيراً!! إني أنتظر ردكم بفارغ الصبر(excuse my bad English !!)
|
| |