对不起,我很抱歉 [英] I am sorry for this...

查看:83
本文介绍了对不起,我很抱歉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我是计算机程序员分析师。我正在学习这门课程

本周的任务需要我加入一些新闻组。

我很抱歉用这些无用的废话向你发垃圾邮件。


无论我是应该煽动某种回应,所以可以请某人b $ b请为我满足这个要求吗?


谢谢,


Nakor

解决方案

* Nakor:


我是计算机程序员分析师。我正在学习本课程
本周的任务要求我加入一些新闻组。
我很抱歉用这些无用的废话向你发垃圾邮件。

无论如何我应该煽动某种反应,所以有人可以请我满足这个要求吗?

谢谢,

Nakor




好​​的,这个函数出了什么问题


std :: string const& helloText()

{

return" A response" ;;

}





-

答:因为它弄乱了人们通常阅读文字的顺序。

问:为什么会这样是坏事吗?

A:热门发布。

问:usenet和电子邮件中最烦人的是什么?


感谢您的回复。我不确定这个

位代码的意图,但我愿意猜。


如果你只是希望功能传回一个欢迎字符串

那么这就足够了:


std :: string helloText()

{

返回A response;

}


除此之外我不确定意图是什么:)< Nakor写道:


除此之外我不知道会是什么意图:)




重点是,返回对本地对象的引用一般可以是
称为坏主意:)


-

问候,

Matthias


Hello,

I am a Computer Programmer Analyst student. I am taking this course
which for this week''s assignment requires me to join some newsgroups.
I am sorry to have to spam you with such useless crap.

Regardless I am supposed to instigate a response of some sort, so could
someone please fulfill that requirement for me?

Thanks,

Nakor

解决方案

* Nakor:


I am a Computer Programmer Analyst student. I am taking this course
which for this week''s assignment requires me to join some newsgroups.
I am sorry to have to spam you with such useless crap.

Regardless I am supposed to instigate a response of some sort, so could
someone please fulfill that requirement for me?

Thanks,

Nakor



Okay, what''s wrong with this function

std::string const& helloText()
{
return "A response";
}

?

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


Thanks for replying. I''m not certain what would be intended by this
bit of code, but I am willing to guess.

If you merely wished for the function to pass back a welcome string
then this would suffice:

std::string helloText()
{
return "A response";
}

Other than that I''m not sure what would be the intention :)


Nakor wrote:


Other than that I''m not sure what would be the intention :)



The point is, returning a reference to a local object can generally be
called a bad idea :)

--
Regards,
Matthias


这篇关于对不起,我很抱歉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆