求大神给个火车车票购票系统思路,用c++#include类型可用指针

求大神给个火车车票购票系统思路,用c++#include类型可用指针
z1907144034 发布于 2018-01-07 11:12 | 阅读 738 次 | 评论 0 条

三数之和

三数之和为所要的数,或三数之和为最接近所要的数。 vector<int> threeSumClosest(vector<int> &amp;num,int target) { int len=num.size(); int min=INT_MAX; vector<int> result; for(int i=0;i<len;i++) { int start=i+1,end=len-1; while(start<end) { if(num[st...
moox 发布于 2018-01-03 20:55 | 阅读 1165 次 | 评论 0 条

俩数之和

从集合中取俩数之和为所要的数。 vector<int> twoSum(const vector<int> &amp;num,int tearget) { int len=num.size()-1; int start=0,end=len; vector<int> result; //num已排序 while(start<end) { if(num[start]+num[end]==target) { result.push_back(num[start]);...
moox 发布于 2018-01-03 19:47 | 阅读 988 次 | 评论 0 条

IIS下让php支持path_info伪静态的办法

在网站根目录建一个文件web.config 输入一下内容: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" patte...
静夜思 发布于 2018-01-03 16:26 | 阅读 3888 次 | 评论 0 条

新人小白第一天

新人小白第一天,希望自己加油。
NPC121 发布于 2017-12-31 16:46 | 阅读 1120 次 | 评论 4 条

求大神看看后边的main()控制函数为啥非法的

#include<stdio.h> #include <stdlib.h> #include <string.h> #define HEADER1 "------------STUDENT------------\n" #define HEADER2 "|number|name|Comp|Math|Eng|sum|ave|mici\n" #define HEADER3 "|-----|----|----|----|---|---|---|---|" #define FORMAT "%-10s|%-15s|%4d|%4d|%4d|%4d|%.2f|%4d|\n" #defin...
子岸 发布于 2017-12-21 16:56 | 阅读 1971 次 | 评论 0 条

这里边有什么错误么?计算球的体积四舍五入取整数输出

#include<iostream> #define PI 3.1415926; using namespace std; int main() { int n; double v,r; cin>>n; for(int i=0;i<n;i++) { cin>>r; v=4.0*PI*r*r*r/3.0; int V=v+0.5; cout<<V<<endl; } return 0; }
乖么么哒 发布于 2017-12-19 21:03 | 阅读 1200 次 | 评论 0 条

新手第一天

今天是加入论坛的第一天,很好奇这个论坛是个什么水平,什么个性的论坛,一切只有加入才会有体会,一切就从现在开始
懒惰君 发布于 2017-12-18 20:00 | 阅读 1159 次 | 评论 0 条

第一天进论坛

记录下我的第一次
小小白菜 发布于 2017-12-14 19:52 | 阅读 2285 次 | 评论 0 条

在dev-c++下出现这个问题:ld returned 1 exit status

#include <iostream> #include<assert.h> #include<cstring> #include<stdio.h> #include<stdlib.h> using namespace std; const int stackIncreament=20; //栈溢出时扩展空间的增量 const int maxLength=100; //最大字符串长度 template<class T> class SeqStack { private: ...
乖么么哒 发布于 2017-12-10 16:47 | 阅读 3832 次 | 评论 0 条

钢结构

你ihoiohununu 恢复干黄ibibh不好
s912360101 发布于 2017-12-07 08:11 | 阅读 1167 次 | 评论 0 条

下决心学计算机知识

今天看了一些博友的语言还有互相的评论,我什么都没看懂资源分也好像对我来说很难赚,今年是一名大一新生,自己认为计算机方面的技术和知识对未来还是很有帮助的,我想能在自己的档案上多一门技术,虽然我什么都没看懂,但是不懂就去问度娘哈哈,还是希望能有人与我交流,带带我。毕竟我觉得一个人在漆黑的道路慢慢摸索效率太低,虽然实践会更熟练,既然这是国内最大的编程网站我还是想能找位师傅带带我。
南国之冥 发布于 2017-11-30 18:01 | 阅读 1443 次 | 评论 1 条

收藏大神的贪吃蛇代码,带给大家分享。

#include<stdio.h>//基本库 #include<stdlib.h>//系统库 #include<windows.h>//光标定位、字符颜色函数库 #include<time.h>//时间函数库 #include<conio.h>//键值读入函数库 #define width 60 #define height 25 struct ssnake { int f;//蛇身有效标志 int x; int y;//蛇身坐标 }; void color(int b) //颜色函数 { HANDLE...
qaz2wsx3edc 发布于 2017-11-29 11:12 | 阅读 2230 次 | 评论 2 条

mysql安装启动时出现的错误

mysql-5.7.10-winx64 MySQL服务无法启动,服务没有报告任何错误的解决办法 mysql下面是没有data文件夹的,此文件夹不需要自己建 D:\mysql\mysql-5.7.10-winx64\bin> mysqld --console D:\mysql\mysql-5.7.10-winx64\bin> mysqld --initialize
ccxk 发布于 2017-11-28 17:10 | 阅读 1148 次 | 评论 0 条

小白有话说

一如软件深似海,从此自由是路人。本人是刚接触编程的小白,还不敢说入行,毕竟刚刚大学三年级,希望各位大神指教,感激不尽。
程序_小白 发布于 2017-11-21 12:27 | 阅读 1727 次 | 评论 0 条

VFP正则表达式应用:文本内容换行

原文本格式如下: 05 14 15 16 18 + 02 0605 14 15 16 25 + 02 0605 14 15 16 26 + 02 0605 14 15 16 27 + 02 0605 14 15 18 25 + 02 0605 14 15 18 26 + 02 0605 14 15 18 27 + 02 0605 14 15 25 26 + 02 0605 14 15 25 27 + 02 0605 14 15 26 27 + 02 0605 14 16 18 25 + 02 0605 14 16 18 26 + 02 0605 14 16 18 27 ...
sdta 发布于 2017-11-19 20:16 | 阅读 2679 次 | 评论 0 条

VFP正则表达式应用:删除每一行行尾的指定字符

因为这几个字符在行中也是出现的,所以肯定不能用简单的替换实现 比如 12345 1265345 2345 需要删除每行末尾的“345”,最终文本为: 12345 1265 2 =================================== Re = Createobject("VBScript.RegExp") Re.Global = .T. Re.Ignorecase = .F. Re.Pattern ="345$" Re.MultiLine= .T. cStr="12345 1265345"+CHR(13)+CHR(10)+"2345...
sdta 发布于 2017-11-19 19:38 | 阅读 2184 次 | 评论 0 条

VFP正则表达式应用:替换指定内容到行尾

原始文本如下面两行 abc aaaaa 123 abc 444 希望每次遇到“abc”,则替换“abc”以及其后到行尾的内容为“abc efg” 即上面的文本最终替换为: abc efg 123 abc efg ===================================== CLEAR Re = Createobject("VBScript.RegExp") Re.Global = .T. Re.Ignorecase = .F. RE.Pattern ="abc.*" cStr="abc aaaaa"+CHR(13)+CHR(10)+"123...
sdta 发布于 2017-11-19 19:29 | 阅读 2035 次 | 评论 0 条

VFP正则表达式应用:数字替换

希望把 asdadas123asdasdas456asdasdasd789asdasd 替换为: asdadas[123]asdasdas[456]asdasdasd[789]asdasd 在VFP中也可以做到,但过程比较复杂 CLEAR Re = Createobject("VBScript.RegExp") Re.Global = .T. Re.Ignorecase = .F. RE.Pattern ="(\d{3})" cStr="asdadas123asdasdas456asdasdasd789asdasd" ?cStr ?Re.Replace(cS...
sdta 发布于 2017-11-19 19:19 | 阅读 1632 次 | 评论 0 条

python

写代码时,python对代码缩进一定遵循。
sailstar 发布于 2017-11-18 21:39 | 阅读 1070 次 | 评论 0 条