自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 C语言合并两个有序数组,时间复杂度为O(n),空间复杂度O(1)

#include #include /* func: 合并两个有序数组 arrSrc:将另一有序数组arrDest合并至该数组 arrDest:将该数组合并至另一有序数组arrSrc captionSrc:arrSrc的容量大小,保证能保存arrSrc + arrDest lenSrc:arrSrc数组的现有有效元素

2017-12-26 15:54:11 3156 1

原创 6

saleQuery.jsvar xmlHttp function showSaler(str){  xmlHttp=GetXmlHttpObject()  if (xmlHttp == null) {   alter("Browser does not support HTTP Request.")   return  }    var url="salerQuery.php"

2016-09-01 18:03:10 218

原创 5

saleQuery.html           营业员营业信息查询           请选择营业员:        01    02    03                     显示营业员所有销售信息

2016-09-01 18:02:44 223

原创 4

memberQuery.php <?php $memberPhone = $_GET["memberPhone"]; //连接数据库 $con = mysql_connect("localhost","root","root123"); if (!$con) { die("Could't not connect: " . mysql_erro

2016-09-01 18:01:51 271

原创 3

memberQuery.html 会员消费信息查询 请输入会员手机号: 显示会员消费信息   memberQuery.jsvar xmlHttp function showMember(str){ xmlHttp=GetXmlHttpObject() if (xml

2016-09-01 18:00:02 350

原创 2

saleLogging.css#webhead{ /* background-color:gray; */ text-align:center; } span { color:red; width:100px; }  saleLogging.php <?php //设置时区 date_default_timezone_set

2016-09-01 17:59:20 200

原创 1

index.php 已售商品信息录入 营业员营业信息查询 会员购物信息查询  saleLogging.html: 已售商品信息录入 货号: 数量: 售价: 优惠金额: 成交金额: 售货员:

2016-09-01 17:58:22 280

原创 strcpy原型函数

#include #include char*Strcpy(char*strDest, const char*strSrc) { assert((strDest!=NULL) && (strSrc !=NULL)); char* address = strDest; while( (*strDest++ = *strSrc++) !='\0') NULL; return ad

2016-09-01 17:36:07 301

原创 一组数据,copy一份至list,一份至vector,list中erase奇数,vector中erase偶数(折磨两小时搞定)

#include "stdafx.h" #include #include #include #include #include int main() { int ia[] = { 0, 1, 1, 2, 3, 5, 8, 13, 21, 55, 89 }; int lengthArray = sizeof(ia)/sizeof(int);

2013-10-26 09:42:03 518

原创 输入一组数字,并对其升序排序,删除指定范围内的元素

#include #include #include #include using namespace std; int main() { string inputString; vector sVec; cout while(cin>>inputString){       sVec.push_back(inputString); } cout for

2013-10-25 18:14:11 564

原创 C++输入一组数据,降序排列后,删除三个连续元素的中间值

// sortanddelete.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include #include #include using namespace std; //typedef vector vecInt; //获取输入的数据 int getInputData(vector &ivec,str

2013-10-21 16:14:25 670

原创 输入字符串,删除重复次数最多的字符

#include #include #include #include #include #include using namespace std; typedef map fMap; //从原始数据中,获取包含字母出现次数的map int getMap(vector cVec,fMap &mapList) {  vector::const_iterator cI

2013-10-21 13:33:33 508

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除