我是编码的新手,我很难解决这个问题。我不确定为什么它不会删除额外的空格。
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
$bucket = 'report160316';
$keyname = 'xxxxxxxxxxxxxxx';
$secret = 'xxxxxxxxxxxxxxxxxxxx';
// Instantiate the client.
$s3 = S3Client::factory([
'key' =>$keyname,
'secret' =>$secret,
]);
答案 0 :(得分:0)
void nospace(char *line)
{
int count = 0;
for (int i = 0; line[i]; i++)
if (line[i] != ' ')
line[count++] = line[i];
line[count] = '\0';
}
使用指针将有助于解决问题有关更多信息,请参阅
并尝试http://www.geeksforgeeks.org/remove-spaces-from-a-given-string/