美文网首页
48 - friend

48 - friend

作者: 社交帐号直接注册 | 来源:发表于2018-01-02 20:47 被阅读0次
#include <iostream>
using namespace std;

class StankFist
{
public:
    StankFist() 
    {
        stinkyVar = 0;
    };
private:
    int stinkyVar;

    friend void stinkysFriend(StankFist &sfo);
};

void stinkysFriend(StankFist &sfo)
{
    sfo.stinkyVar = 99;
    cout << sfo.stinkyVar << endl;
}
int main()
{
    StankFist bob;
    stinkysFriend(bob);
    system("pause");
}

相关文章

  • 48 - friend

  • (英)患难见真情

    A friend in need is a friend indeed

  • 128/200

    #A friend of.. Patience is a friend of Time; kindness and...

  • Suspicion

    Suspicion is the poison of friend. To preserve a friend t...

  • 谚语翻译

    急风知劲草 a friend in need is a friend in deed.

  • 真friend假friend?

    我本人是极力推崇自己的事情自己做的人,可我发现很多人,都热衷于“互帮互助”。扒光了说,就是我的事情你做一半...

  • Lesson 59

    My best friend My best friend is the most thoughtful pers...

  • Email Communications

    2019.9.30(Germany friend "M" to Chinese friend "L")Dear L...

  • 2021-01-02

    那friend,my friend is Bella,she has big eyes and long are ...

  • 2022-06-07 周二 英文记录

    Hi, friend, you are the one I said was my friend. Thanks ...

网友评论

      本文标题:48 - friend

      本文链接:https://www.haomeiwen.com/subject/xviqnxtx.html