NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9577|回复: 15
打印 上一主题 下一主题

[心得体会] scope 觀念 + void setup and void draw

[复制链接]
跳转到指定楼层
1m
发表于 2010-10-15 16:16:58 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

评分

参与人数 1强度 +3 照度 +30 收起 理由
skywoolf + 3 + 30 感谢分享

查看全部评分

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享
2m
 楼主| 发表于 2010-10-15 16:17:46 | 显示全部楼层
一些基本的概念...老實說看手冊就懂了,我也不知道為什麼還要發這個帖..
3m
 楼主| 发表于 2010-10-15 16:25:31 | 显示全部楼层
補充一下:可以重複命名的好處 Variable scope makes it possible to have more than one variable in a program with the same name. It’s common to use the same variable name for iterating over multiple for structures in one program, but in general, having more than one variable with the same name is not recommended.
4m
 楼主| 发表于 2010-10-15 16:39:15 | 显示全部楼层
恩 ! 晚點再發個function 的概念 一個好用的方法!!

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-5-18 18:17 , Processed in 0.064020 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表