:72.863KB : :1 :2022-08-31 19:59:54
c++ 猜拳小游戏如果开发者对于本文件有需要的可以参考。
int main(int argc,char *argv[]){
//登录界面
logo_page();
//创建数据库
sqlite3 * sql;
char * errmsg;
if(sqlite3_open(database,&sql) != SQLITE_OK)
{
printf("%s\n",sqlite3_errmsg(sql));
return -1;
}
if(sqlite3_exec(sql,"create table user(ID text primary key,password text);",NULL,NULL,&errmsg) != SQLITE_OK)
{
printf("%s\n",errmsg);
}
if(sqlite3_exec(sql,"create table history(ID text primary key,count text);",NULL,NULL,&errmsg) != SQLITE_OK)
{
printf("%s\n",errmsg);
}
01-01猜拳小游戏python代码