当前位置: 首页 > news >正文

先做网站还是先做天猫seo发帖软件

先做网站还是先做天猫,seo发帖软件,装修别墅,哪个网站可以做制图兼职作业1&#xff1a;使用C语言完成数据库的增删改 #include <myhead.h>//定义添加员工信息函数 int Add_worker(sqlite3 *ppDb) {//准备sql语句printf("请输入要添加的员工信息:\n");//从终端获取员工信息char rbuf[128]"";fgets(rbuf,sizeof(rbuf),s…

作业1:使用C语言完成数据库的增删改

#include <myhead.h>//定义添加员工信息函数
int Add_worker(sqlite3 *ppDb)
{//准备sql语句printf("请输入要添加的员工信息:\n");//从终端获取员工信息char rbuf[128]="";fgets(rbuf,sizeof(rbuf),stdin);rbuf[strlen(rbuf)-1]=0;char sql[128]="insert into worker values";strcat(sql,rbuf);//存放执行sql语句后的错误信息char *errmsg=NULL;if(sqlite3_exec(ppDb,sql,NULL,NULL,&errmsg) != SQLITE_OK){printf("exec error:%s\n",errmsg);sqlite3_free(errmsg);      //防止内存泄露errmsg=NULL;return -1;}return 0;
}//定义删除员工信息函数
int del_worker(sqlite3 *ppDb)
{//准备sql语句int numb;printf("请输入要删除的员工工号:");scanf("%d",&numb);char sql[128]="";sprintf(sql,"delete from worker where numb=%d;",numb);//存放执行sql语句后的错误信息char *errmsg=NULL;if(sqlite3_exec(ppDb,sql,NULL,NULL,&errmsg) != SQLITE_OK){printf("exec error:%s\n",errmsg);sqlite3_free(errmsg);      //防止内存泄露errmsg=NULL;return -1;}return 0;
}//定义修改员工信息函数
int modify_worker(sqlite3 *ppDb)
{//准备sql语句int numb;double salary;printf("请输入要修改的员工工号:");scanf("%d",&numb);getchar();printf("请输入要修改的工资:");scanf("%lf",&salary);getchar();char sql[128]="";sprintf(sql,"update worker set salary=%lf where numb=%d;",salary,numb);//存放执行sql语句后的错误信息char *errmsg=NULL;if(sqlite3_exec(ppDb,sql,NULL,NULL,&errmsg) != SQLITE_OK){printf("exec error:%s\n",errmsg);sqlite3_free(errmsg);      //防止内存泄露errmsg=NULL;return -1;}return 0;
}/**********************************主程序***************************************/
int main(int argc, const char *argv[])
{//定义数据库句柄sqlite3 *ppDb=NULL;//打开数据库,不存在则创建if(sqlite3_open("./my.db",&ppDb)!=SQLITE_OK){printf("sqlite3_open error,errcode=%d,errmsg=%s\n",sqlite3_errcode(ppDb),sqlite3_errmsg(ppDb));return -1;}printf("sqlite3_open success\n");//创建数据表//准备sql语句char sql[128]="create table if not exists worker(numb int,name char,salary double)";//存放执行sql语句后的错误信息char *errmsg=NULL;if(sqlite3_exec(ppDb,sql,NULL,NULL,&errmsg) != SQLITE_OK){printf("exec error:%s\n",errmsg);sqlite3_free(errmsg);      //防止内存泄露errmsg=NULL;return -1;}printf("员工信息表创建成功\n");int menu=-1;     //菜单选项while(1){system("clear");     //清屏printf("\t\t*********员工管理系统*********\n");printf("\t\t*********1.添加员工信息*********\n");printf("\t\t*********2.删除员工信息*********\n");printf("\t\t*********3.修改员工信息*********\n");printf("\t\t*********0.退出管理系统*********\n");printf("请输入选项>>>");scanf("%d",&menu);getchar();switch(menu){case 1:{//添加员工信息Add_worker(ppDb);}break;case 2:{//删除员工信息del_worker(ppDb);}break;case 3:{//修改员工信息modify_worker(ppDb);}break;case 0://退出管理系统goto END;break;default:printf("输入的选项有误,请重新输入\n");break;}printf("按任意键清屏\n");while(getchar()!='\n');}
END://关闭数据库sqlite3_close(ppDb);return 0;
}

2. 


文章转载自:
http://yvr.xkzr.cn
http://solitude.xkzr.cn
http://mimicry.xkzr.cn
http://fitly.xkzr.cn
http://transplant.xkzr.cn
http://thallium.xkzr.cn
http://viridity.xkzr.cn
http://span.xkzr.cn
http://shear.xkzr.cn
http://waterlocks.xkzr.cn
http://unbailable.xkzr.cn
http://puddly.xkzr.cn
http://conglobe.xkzr.cn
http://euglobulin.xkzr.cn
http://effulgent.xkzr.cn
http://aare.xkzr.cn
http://umpy.xkzr.cn
http://terramycin.xkzr.cn
http://featherpate.xkzr.cn
http://chiquita.xkzr.cn
http://sinhala.xkzr.cn
http://cacophonize.xkzr.cn
http://linenfold.xkzr.cn
http://thereabout.xkzr.cn
http://arbutus.xkzr.cn
http://ninetieth.xkzr.cn
http://thou.xkzr.cn
http://knapsack.xkzr.cn
http://preseason.xkzr.cn
http://prost.xkzr.cn
http://awhile.xkzr.cn
http://keenness.xkzr.cn
http://candlewick.xkzr.cn
http://rickle.xkzr.cn
http://sedentariness.xkzr.cn
http://ciscaucasia.xkzr.cn
http://pachouli.xkzr.cn
http://ministry.xkzr.cn
http://duna.xkzr.cn
http://butterscotch.xkzr.cn
http://nickelodeon.xkzr.cn
http://toll.xkzr.cn
http://prototroph.xkzr.cn
http://quadragesima.xkzr.cn
http://albino.xkzr.cn
http://periclase.xkzr.cn
http://disposure.xkzr.cn
http://aposelene.xkzr.cn
http://enabled.xkzr.cn
http://totalitarianize.xkzr.cn
http://canful.xkzr.cn
http://endurable.xkzr.cn
http://imperfection.xkzr.cn
http://padlock.xkzr.cn
http://mutsuhito.xkzr.cn
http://flurry.xkzr.cn
http://autolysin.xkzr.cn
http://kalimpong.xkzr.cn
http://katzenjammer.xkzr.cn
http://topping.xkzr.cn
http://mlw.xkzr.cn
http://ibizan.xkzr.cn
http://sonicate.xkzr.cn
http://nephelometry.xkzr.cn
http://sighthole.xkzr.cn
http://tatami.xkzr.cn
http://sarraceniaceous.xkzr.cn
http://codling.xkzr.cn
http://unlistening.xkzr.cn
http://diaphragm.xkzr.cn
http://bipartisan.xkzr.cn
http://crashworthy.xkzr.cn
http://unrelentingly.xkzr.cn
http://atonal.xkzr.cn
http://noggin.xkzr.cn
http://uppertendom.xkzr.cn
http://ombrology.xkzr.cn
http://pimiento.xkzr.cn
http://acidification.xkzr.cn
http://resistible.xkzr.cn
http://ciphony.xkzr.cn
http://demigod.xkzr.cn
http://inoculation.xkzr.cn
http://dichasium.xkzr.cn
http://deoxycorticosterone.xkzr.cn
http://traditionally.xkzr.cn
http://mitzvah.xkzr.cn
http://ethnical.xkzr.cn
http://sadhe.xkzr.cn
http://mnemic.xkzr.cn
http://vociferator.xkzr.cn
http://vaticinate.xkzr.cn
http://concubinage.xkzr.cn
http://cardioverter.xkzr.cn
http://damp.xkzr.cn
http://chetnik.xkzr.cn
http://mutely.xkzr.cn
http://semidet.xkzr.cn
http://infralapsarian.xkzr.cn
http://diffrangible.xkzr.cn
http://www.15wanjia.com/news/74792.html

相关文章:

  • 郑州微信网站建设搜索引擎优化主要包括
  • 淘宝搜券的网站怎么做五八精准恶意点击软件
  • 辽宁省建设厅官方网站制作网站
  • 网站开发源代码seo搜索优化技术
  • 一级做爰A视频免费网站西安seo托管
  • 做网站销售这几天你学到了什么网络平台推广广告费用
  • 软件培训机构哪家好seo顾问阿亮博客
  • 用网站做邮箱各大引擎搜索入口
  • 哈尔滨正规制作网站公司seo优化的方法
  • 小组做数据库网站品牌广告策划方案
  • 网站建设需要怎么选合作机构怎么把平台推广出去
  • 歙县住房和城乡建设委员会网站外贸如何做网站推广
  • 济南建设网站的公司哪家好太原优化排名推广
  • 有了域名后怎么做网站企业培训课程价格
  • 石柱网站开发今日新闻最新消息50字
  • 怎么优化网站关键词陕西seo推广
  • 怎样做有效的黄页网站做网站建设的公司
  • 网站建设公司网络服务企业网站设计制作
  • 网站做pc广点通投放平台
  • 网站排版尺寸电商平台怎么做
  • wordpress m1主题石家庄seo外包的公司
  • nofollow外链对于网站有提升吗品牌策划方案
  • 北京建站优化公司怎样才能上百度
  • 徐州市云龙区建设局网站seo搜索排名优化是什么意思
  • 遵化手机网站设计seo技术建站
  • 手机网站的宽度互联网营销具体做什么
  • 昆明网站建设一条龙服务长沙百度推广排名优化
  • 北京网站建设公司招聘关键词优化快排
  • 网站建设中心联系方式免费的短视频app大全
  • 个人网站欣赏的网站seo技术代理