主题:【求助】怎么让两个变量的值永远相等
pass74
[专家分:0] 发布于 2012-12-22 22:58:00
比如一个程序有变量A,B
怎么让啊A,B 的值永远相等?谢谢
回复列表 (共3个回复)
沙发
老大徒伤悲 [专家分:29120] 发布于 2012-12-24 19:06:00
在别的语言里,有一个叫做“别名”。
但不用别名也行,就是为啥不使用“一个”变量?而要用“两个”?
板凳
biansky [专家分:10] 发布于 2013-01-31 17:54:00
Major League Baseball "45" number. So then [url=http://www.cheapjordanforsale.us/air-jordan-4-retro-c-4.html]retro jordan 4[/url] shoes followed by No. 45 embroidered white line no.3, 5000 dollar fines dispute In the second game of the Eastern Conference [url=http://www.cheapjordanforsale.us/air-jordan-6-retro-c-6.html]retro jordan 6[/url] semifinals, the Father re-donned the jersey number "23", scored 38 points, but the foot wear or [url=http://www.cheapjordanforsale.us/air-jordan-7-retro-c-8.html]retro jordan 7[/url] embroidered with "45" was too black and white [url=http://www.cheapjordanforsale.us/air-jordan-9-retro-c-9.html]retro jordan 9[/url], then the Bulls away combat, black and white home color [url=http://www.cheapjordanforsale.us/air-jordan-10-retro-c-10.html]retro jordan 10[/url] and away the color does not match, so the Father was also fined $ 5,000 per game, the Father suddenly re-wear jersey No. 23, again by a [url=http://www.cheapjordanforsale.us/air-jordan-11-retro-c-11.html]retro jordan 11[/url] fine of $ 25,000 per game. concord directly translated into "Concord grapes", varieties of Americas grapes, [url=http://www.cheapjordanforsale.us/air-jordan-11-retro-c-11.html]jordan 11 Concord[/url] crystal outsole echoes the color with purple soles, while the color name from the soles of purple the no.5, hot on sale very terrible [url=http://www.cheapjordanforsale.us/air-jordan-12-retro-c-12.html]retro jordan 12[/url] finally listed, each Offer shops outside there are people waiting in line, some people even crushed glass [url=http://www.cheapjordanforsale.us/air-jordan-13-retro-c-13.html]retro jordan 13[/url] doors across the security downtown into the store to try to steal these shoes, in order to buy it at all costs, its all crazy!
3 楼
孙瑞 [专家分:590] 发布于 2013-01-31 22:34:00
可以建立一个类,这个类包含两个变量。对这两个变量的其中任何一个变量的赋值的修改,都会由类中的程序自动应用于另外一个变量。
我来回复