回答我 [英] answer me plzzzzzzzzzz

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

问题描述

此指针与操作者重载之间的区别是什么?

What is the diffrence between this pointer and oprator overloading?

推荐答案

在回答这个不合理的问题时,我看不出任何意义.如果您看不到它是不合理和不正确的,那么我怎么希望您能够使用该帮助,无论它是什么.

问题"{0}和{1}之间的区别是什么"通常是不正确的,但是这个问题特别提及了无关的东西.

这是您需要了解的第一件事.请查看我过去的回答:
类与封装之间的区别是什么编程 [ ^ ].

无论如何,您是否遵循以下参考说明?

代码项目常见问题解答 [如何使用Google和其他查找编程的技巧帮助 [ ^ ]
在论坛中发布问题的一些准则 [ ^ ].

另请参阅以下讨论:
如何问一个好问题? [ ^ ].

-SA
I cannot see any sense in answering this unreasonable question. If you fail to see that it is unreasonable and incorrect, how can I hope that you would be able to use the help, whatever it is.

The questions "what is the difference between {0} and {1}" are generally incorrect, but this one mentions especially unrelated things.

This is first thing you need to understand. Please see my past answer:
what is the difference between the class and encapsulation in programming[^].

Anyway, did you follow the directions referenced below?

Code Project Questions and Answers FAQ[^]
How to Use Google and Other Tips for Finding Programming Help[^]
Some guidelines for posting questions in the forums[^].

Please also see this discussion:
How to ask a good question?[^].

—SA


this不是指针-它是一个实例引用.除了在unsafe块中之外,C#不使用指针,并且存在区别.

运算符重载是指同一运算符根据提供的争论类型使用不同的方法时.例如,加法运算符被重载,因为它同时具有整数版本和字符串版本,它们在代码中看起来相同,但是处理方式却非常不同.

this isn''t a pointer - it''s an instance reference. C# does not use pointers except in unsafe blocks, and there is a difference.

Operator overloading is when the same operator has different methods depending on the arguement types supplied. For example the addition operator is overloaded because it has both an integer version and a string version, which look identical in your code, but are processed very differently.

int i = 5;
int j = 6;
int k = i + j;





string i = "five ";
string j = "six ";
string k = i + j;



this和运算符重载"这两个概念是不可比较的,因为它们没有共同之处.



The two concepts: this and "operator overloading" are not comparable because they have nothing in common.


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

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