小编Ama*_*9MF的帖子

文件上传太大了

我使用cffile action ="Upload",它适用于较小的文件.但昨天,我尝试上传了一张42Meg的pdf,它只是整夜坐在那里.

问:关于上传大文件,我应该知道些什么吗?我把它定义为:整夜坐在那里的那个,永远不会超时而且从不上传.例如,是否有用于处理较大文件的cflib或Riaforge例程?

现在我在hosting.com上的版本8.

coldfusion

8
推荐指数
2
解决办法
4231
查看次数

使用case switch语句加载函数

我正在用C++编写一个程序,并且我已经能够编译并开始运行,当我选择一个选项时,不会调用应该由switch-case语句调用的相应函数.我在代码中遗漏了什么吗?

//The following program framework is given.
//Add the programming logic to complete the assignment.
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
//function prototypes should be placed here
//Main must be the first function in the program. Write other functions after it.
int main()
{
char cInput;
string strFileName;
vector<string> vecStudent;
cout<<"Please enter the data file name (with location): ";
cin >> strFileName;
//call a function to read the content of the input file into
//the …
Run Code Online (Sandbox Code Playgroud)

c++ switch-statement visual-studio

1
推荐指数
1
解决办法
1万
查看次数

使用strchr构建一个字符串

我有以下内容:

LPSTR email // Has data in it already
LPSTR index=strchr(email,'@');
Run Code Online (Sandbox Code Playgroud)

现在我想插入一个新的字符串:

LPSTR username
Run Code Online (Sandbox Code Playgroud)

从字符串开头到"索引"的"电子邮件"部分.

例如:email ="roel@emailI-ISP.com"so username ="roel".

是否有功能快速完成或我需要构建一个?

罗埃尔

c

0
推荐指数
1
解决办法
382
查看次数

标签 统计

c ×1

c++ ×1

coldfusion ×1

switch-statement ×1

visual-studio ×1