由买买提看人间百态

topics

全部话题 - 话题: aperson
(共0页)
c*******9
发帖数: 6411
1
来自主题: Programming版 - question regarding const function
class Person
{
public:
string name() const;
...
};
Person aperson;
theName = aperson.name();
Question, since name is a const function, does that mean it can only be
called by a const object? the above code is ok, so does that mean that
the object aperson will be implicited converted to "const object" before
calling name()...? otherwise how come it is allowed to call name()...
Thanks.
d****p
发帖数: 685
2
来自主题: Programming版 - question regarding const function
name =
void name(const Person* person)
So when you call name() via aperson.name(), what happened is
name(&aperson) where &aperson is converted to const Person*
The conversion is OK since it is from less cv-qualified to more cv-qualified
. The other way around is not allowed unless you use const_cast
c*******9
发帖数: 6411
3
来自主题: Programming版 - question regarding const function
void name(const Person* person)
So when you call name() via aperson.name(), what happened is
name(&aperson)
could you explain where the following come from? it is not in the signature
, it the following generated by the compiler?
void name(const Person* person)
thanks...
l**********r
发帖数: 4612
4
【 以下文字转载自 Military 讨论区 】
发信人: leeqiu (放屁鱼《><.。o 0), 信区: Military
标 题: 【“不要开枪,我是中国人” -- 吕超然死了】(ZZ)
发信站: BBS 未名空间站 (Sun Mar 9 21:20:26 2014, 美东)
Maj. Kurt Chew-een Lee, Asian-AmericanMarines trailblazer dies at 88
吕超然:亚裔美国海军陆战队员的先驱,去世,享年88岁
(CNN) -- Maj. KurtChew-Een Lee, the first Asian-American U.S. Marine Corps
officer, rosethrough the ranks beginning his career from World War II to the
Vietnam War.
(CNN)——吕超然,首位亚裔美国海军陆战队军官,从二战开始就开始加入军队,直
到越南战争,在这个过程中职位一步步的得到提升。
During the Korean War, he beca... 阅读全帖
l****u
发帖数: 4594
5
Maj. Kurt Chew-een Lee, Asian-AmericanMarines trailblazer dies at 88
吕超然:亚裔美国海军陆战队员的先驱,去世,享年88岁
(CNN) -- Maj. KurtChew-Een Lee, the first Asian-American U.S. Marine Corps
officer, rosethrough the ranks beginning his career from World War II to the
Vietnam War.
(CNN)——吕超然,首位亚裔美国海军陆战队军官,从二战开始就开始加入军队,直
到越南战争,在这个过程中职位一步步的得到提升。
During the Korean War, he became commanderof a machine gun platoon, to the
shock of his men who had never before seen aperson of Chinese ancestry. Some
even questioned his loy... 阅读全帖
l**********r
发帖数: 4612
6
【 以下文字转载自 Military 讨论区 】
发信人: leeqiu (放屁鱼《><.。o 0), 信区: Military
标 题: 【“不要开枪,我是中国人” -- 吕超然死了】(ZZ)
发信站: BBS 未名空间站 (Sun Mar 9 21:20:26 2014, 美东)
Maj. Kurt Chew-een Lee, Asian-AmericanMarines trailblazer dies at 88
吕超然:亚裔美国海军陆战队员的先驱,去世,享年88岁
(CNN) -- Maj. KurtChew-Een Lee, the first Asian-American U.S. Marine Corps
officer, rosethrough the ranks beginning his career from World War II to the
Vietnam War.
(CNN)——吕超然,首位亚裔美国海军陆战队军官,从二战开始就开始加入军队,直
到越南战争,在这个过程中职位一步步的得到提升。
During the Korean War, he beca... 阅读全帖
D**0
发帖数: 2048
7
☆─────────────────────────────────────☆
linuxbeginer (linux) 于 (Sun Mar 9 22:39:51 2014, 美东) 提到:
发信人: leeqiu (放屁鱼《><.。o 0), 信区: Military
标 题: 【“不要开枪,我是中国人” -- 吕超然死了】(ZZ)
发信站: BBS 未名空间站 (Sun Mar 9 21:20:26 2014, 美东)
Maj. Kurt Chew-een Lee, Asian-AmericanMarines trailblazer dies at 88
吕超然:亚裔美国海军陆战队员的先驱,去世,享年88岁
(CNN) -- Maj. KurtChew-Een Lee, the first Asian-American U.S. Marine Corps
officer, rosethrough the ranks beginning his career from World War II to the
Vietnam War.
(CNN)——吕超然,首位亚裔美... 阅读全帖
s******g
发帖数: 5074
8
来自主题: TrustInJesus版 - 基督徒和非基督徒做朋友吧
public class trustInJesus {
/**
* Author@leonany
*/
static String Christian;
static String NormalPerson;
static String mitbbs;

private static boolean Abuse(String abuser, String victims){
return true;
}

private static boolean Sue(String victims, String abuser){
return true;
}

private static boolean Spam(String aPerson){
return true;
}

private static void FreeTalk(){

if(Abuse(Christian,No
(共0页)