GUI-Game-C-

所属分类:数据库系统
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2018-03-19 15:51:32
上 传 者sh-1993
说明:  使用GTK C++的GUI。它还使用网络套接字编程进行通信。
(GUI using GTK C++. It also uses network socket programming for communication.)

文件列表:
.idea/ (0, 2018-03-19)
.idea/codeStyles/ (0, 2018-03-19)
.idea/codeStyles/Project.xml (1775, 2018-03-19)
.idea/misc.xml (137, 2018-03-19)
.idea/modules.xml (268, 2018-03-19)
.idea/untitled.iml (97, 2018-03-19)
.idea/workspace.xml (36862, 2018-03-19)
database.sql (154, 2018-03-19)
database/ (0, 2018-03-19)
database/db.cpp (1408, 2018-03-19)
database/db.h (543, 2018-03-19)
main.cpp (462, 2018-03-19)
protocol/ (0, 2018-03-19)
protocol/gameprotocol.cpp (2539, 2018-03-19)
protocol/gameprotocol.h (1055, 2018-03-19)
protocol/packetprotocol.cpp (1381, 2018-03-19)
protocol/packetprotocol.h (424, 2018-03-19)
pubsub/ (0, 2018-03-19)
pubsub/observer.h (262, 2018-03-19)
pubsub/subject.cpp (690, 2018-03-19)
pubsub/subject.h (437, 2018-03-19)
sockets/ (0, 2018-03-19)
sockets/clientsocket.cpp (5796, 2018-03-19)
sockets/clientsocket.h (257, 2018-03-19)
sockets/serversocket.cpp (5309, 2018-03-19)
sockets/serversocket.h (256, 2018-03-19)
ui/ (0, 2018-03-19)
ui/gtkui.cpp (3878, 2018-03-19)
ui/gtkui.h (902, 2018-03-19)

## Rock paper scissors GUI App ## System Requirements Linux platform with installed g++ and MySQL for database testing. For Debian/Ubuntu, you can install mysql-server and mysql-client. $ sudo apt-get install mysql-server mysql-client You also need MySQL Development library, libmysqlcppconn-dev. $ sudo apt-get install libmysqlcppconn-dev For GTK+3.0 you have install the following $ sudo apt-get install libgtkmm-3.0-dev $ sudo apt-get install libgtkmm-3.0 ## Database For database testing, you can run database.sql script to execute database and table. Credentials used username : "root" password : "root"; File database/db.cpp. For network please enter your internal IP in sockets/clientsocket.cpp. "192.x.x.x". ## Compiling & Linking Before compiling, please change database configured based on your MySQL configuration and also the Network IP in clientsocket.cpp. $ g++ -Wall main.cpp sockets/serversocket.cpp sockets/clientsocket.cpp protocol/gameprotocol.cpp protocol/packetprotocol.cpp ui/gtkui.cpp pubsub/subject.cpp database/db.cpp `pkg-config --cflags --libs gtkmm-3.0` -std=c++11 -I/usr/include/cppconn -L/usr/lib/mysql -lmysqlcppconn $ ./a.out

近期下载者

相关文件


收藏者