NTUE-CS102 板


LINE

来抢凤狼大的饭碗XD~ 今天的程设作业是函式 第一个作业改成猜到对才结束 相信大家这个都会做 问题就是第二个啦!! 比较常出现的问题就是 错 对 对 (意即第一次输入错的 第二次输入对的还不会结束) 看了一下错的程式码: while(f()!=3){ f(); } 还满多人用这种方式的... 错在哪咧?? f()写了两次 所以第一次的错会让while成立而继续往下执行 跑到第二个f()时 因为没有做任何动作 仅仅是f();在那 所以就被忽略啦~ 这时第一次就跑完了 再来回到while跑第二次while(f()!=3) 这时输入结果为3A的话 回传值就会是3了~就会变成while(0) so~懂了吧~^.^ 还有另一个是函式的使用 如果是 int f(){} 那f()就代表是一个整数值 会回传一个整数值 所以正确的写是 int f(){r eturn ; } 再来是不回传值 void f(){} 顾名思义就是没有return了...就是这样(解释好烂=0=... 最後呢~~是我的个人意见 写程式还是得靠自己多想 每个人的想法不同 写的过程就会不一样 但那就是自己的东西了!! 各位加油啦!! ps...不要嘘我呀...另外再宣传一下我的论坛XD~ http://307.now.to/ --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.36.145.220
1F:推 blue401:难得我首推 安邦C++好厉害 追女友也一把罩 12/09 21:51
※ 编辑: j2612280 来自: 114.36.145.220 (12/09 21:55)
2F:→ j2612280:什呀= =+ 12/09 21:55
3F:推 pk873:刺激的等下就开始了~~ 12/09 22:53
4F:推 CaptainWill:其实安邦呛老师的功力不输C++ 12/09 23:00
5F:推 CaptainWill:今天人气好低...如果这篇超过15推我就爆安邦今天的料 12/09 23:31
6F:推 Tuko:既然花花都已经说出口了,等我洗完澡就推到15!! 12/09 23:37
7F:推 Arashinoon:太冷清了 我看没得爆了 花花 12/09 23:37
8F:推 CaptainWill:遗憾唷 有料想爆没得爆 12/09 23:39
9F:推 Tuko:再推!一定是要劲爆的料喔! 12/09 23:41
10F:推 game0416:翔风,拜! (? 12/09 23:43
11F:→ j2612280:不用爆了= =.. 12/09 23:45
12F:→ CaptainWill:你要自爆? 12/09 23:46
13F:推 suan710:期待爆料!? 12/09 23:49
14F:推 Arashinoon:要自爆我也没意见就是了 安邦 12/09 23:50
15F:→ j2612280:喂= =... 12/09 23:51
16F:→ CaptainWill:建议安邦自己爆唷,我爆我就不知道会怎麽加油添醋了 12/09 23:52
17F:→ j2612280:请不要这样>"< 12/09 23:54
18F:推 Arashinoon:自爆!!自爆!!自爆!!自爆!!自爆!!自爆!!自爆!!自爆!! 12/09 23:55
19F:→ CaptainWill:真的建议你自爆啦...都快15推了... 12/09 23:56
20F:推 game0416:13 12/09 23:57
21F:→ j2612280:没什麽好爆的呀(冏... 12/09 23:57
22F:→ CaptainWill:那你就受死吧 12/09 23:58
23F:→ CaptainWill:今天的爆文就归我罗~ 12/09 23:58
24F:→ CaptainWill:倒数两推~快来~~~ 12/09 23:58
25F:推 game0416:14 12/09 23:59
26F:→ Arashinoon:凤郎版主 快给他15推 12/09 23:59
27F:→ CaptainWill:安邦不自爆齁?! 12/10 00:00
28F:→ j2612280:饶了我呀... 12/10 00:03
29F:→ CaptainWill:我已经都故意用箭头了唷 12/10 00:04
30F:推 dosomethnig:XD 12/10 00:04
31F:推 suan710:15 12/10 00:05
32F:→ suan710:MISS........ 12/10 00:05
33F:推 CaptainWill:掰了安邦,我来PO板 12/10 00:06
34F:推 dosomethnig:掰了安邦 12/10 00:07
35F:推 dosomethnig:掰了安邦 12/10 00:08
36F:推 dosomethnig:掰了安邦 12/10 00:08
37F:推 dosomethnig:掰了安邦 12/10 00:08
38F:推 dosomethnig:掰了安邦 12/10 00:08
39F:推 dosomethnig:掰了安邦 12/10 00:08
40F:推 Tuko:期待爆料喔! 12/10 00:08
41F:推 dosomethnig:掰了安邦 12/10 00:08
42F:推 dosomethnig:掰了安邦 12/10 00:08
43F:推 dosomethnig:掰了安邦 12/10 00:09
44F:→ j2612280:睡觉了啦= =..我明天还得早起耶... 12/10 00:09
45F:推 dosomethnig:掰了安邦 12/10 00:09
46F:推 dosomethnig:掰了安邦 12/10 00:09
47F:→ j2612280:峻毅!!把按键精灵关掉= =+ 12/10 00:09
48F:推 dosomethnig:掰了安邦 12/10 00:09
49F:推 dosomethnig:掰了安邦 12/10 00:09
50F:推 dosomethnig:掰了安邦 12/10 00:09
51F:推 dosomethnig:掰了安邦 12/10 00:10
52F:推 dosomethnig:掰了安邦 12/10 00:10
53F:推 dosomethnig:掰了安邦 12/10 00:10
54F:推 dosomethnig:掰了安邦 12/10 00:10
55F:推 dosomethnig:掰了安邦 12/10 00:10
56F:推 dosomethnig:掰了安邦 12/10 00:10
57F:推 dosomethnig:掰了安邦 12/10 00:10
58F:推 dosomethnig:掰了安邦 12/10 00:11
59F:推 dosomethnig:掰了安邦 12/10 00:11
60F:推 dosomethnig:掰了安邦 12/10 00:11
61F:推 dosomethnig:掰了安邦 12/10 00:12
62F:推 dosomethnig:掰了安邦 12/10 00:12
63F:推 dosomethnig:掰了安邦 12/10 00:12
64F:推 dosomethnig:掰了安邦 12/10 00:12
65F:推 dosomethnig:掰了安邦 12/10 00:12
66F:推 dosomethnig:掰了安邦 12/10 00:12
67F:推 dosomethnig:掰了安邦 12/10 00:13
68F:推 dosomethnig:掰了安邦 12/10 00:13
69F:推 yantchen: 掰了安邦 12/10 00:13
70F:推 dosomethnig:掰了安邦 12/10 00:13
71F:推 dosomethnig:掰了安邦 12/10 00:13
72F:推 dosomethnig:掰了安邦 12/10 00:13
73F:推 dosomethnig:掰了安邦 12/10 00:13
74F:推 dosomethnig:掰了安邦 12/10 00:13
75F:推 dosomethnig:掰了安邦 12/10 00:14
76F:推 dosomethnig:掰了安邦 12/10 00:14
77F:推 dosomethnig:掰了安邦 12/10 00:14
78F:推 dosomethnig:掰了安邦 12/10 00:14
79F:推 dosomethnig:掰了安邦 12/10 00:14
80F:推 dosomethnig:掰了安邦 12/10 00:14
81F:推 dosomethnig:掰了安邦 12/10 00:15
82F:推 dosomethnig:掰了安邦 12/10 00:15
83F:推 dosomethnig:掰了安邦 12/10 00:15
84F:推 dosomethnig:掰了安邦 12/10 00:15
85F:推 dosomethnig:掰了安邦 12/10 00:15
86F:推 dosomethnig:掰了安邦 12/10 00:15
87F:推 dosomethnig:掰了安邦 12/10 00:15
88F:推 dosomethnig:掰了安邦 12/10 00:16
89F:推 dosomethnig:掰了安邦 12/10 00:16
90F:推 dosomethnig:掰了安邦 12/10 00:16
91F:推 dosomethnig:掰了安邦 12/10 00:16
92F:推 dosomethnig:掰了安邦 12/10 00:16
93F:推 dosomethnig:掰了安邦 12/10 00:16
94F:推 dosomethnig:掰了安邦 12/10 00:17
95F:推 dosomethnig:掰了安邦 12/10 00:17
96F:推 brightevil: 掰了安邦 原来我直属这麽稳XD 12/10 00:42
97F:→ Arashinoon:可惜他掰了 12/10 00:46
98F:推 CaptainWill:呱呱你上一篇PO的超威!! 12/10 00:48







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Tech_Job站内搜寻

TOP