2020”N10ŒŽ08“ú

—ߘaŒ³”N“x@‹ZpŽm‘æˆêŽŸŽŽŒ±–â‘è(Ä)@î•ñHŠw•”–å@‡V|‚W

‡V|‚W

ŽŸ‚Ì‚b++ƒvƒƒOƒ‰ƒ€‚ÌŽÀsŒ‹‰Ê‚Æ‚µ‚āAÅ‚à“KØ‚È‚à‚Ì‚Í‚Ç‚ê‚©B

#include <iostream>
using namespace std;

class Sample {
public:
@int val;
@Sample (int i) { val = i; }
@void operator= (int i) { val += i; }
@void operator= (Sample s) { val += 1; }
} ;

Sample add (Sample x) {
@x = 1;
@return x;
}

int main ()
{
@Sample s = 1;
@cout << add (s).val;
}

‡@@‚P@@‡A@2@@‡B@3@@‡C@4@@‡D@5




“š‚¦‚Í‚±‚¿‚ç
ƒ^ƒOF‚b++
posted by ƒtƒ@[ƒXƒgƒ}ƒNƒ at 20:02| Comment(0) | R01‹ZpŽmˆêŽŸŽŽŒ±[Ä](î•ñHŠw)