import UIKit
let useInput = " sdjoajsdkasfhabfuiqweuiqryndsadllakmdamsxaosu "
var OutputCount = 0
for chares in useInput {
switch chares
{
case "a","e","i","o","u" :
continue
default:
OutputCount ++
}
}
print("\(OutputCount)"
let useInput = " sdjoajsdkasfhabfuiqweuiqryndsadllakmdamsxaosu "
var OutputCount = 0
for chares in useInput {
switch chares
{
case "a","e","i","o","u" :
continue
default:
OutputCount ++
}
}
print("\(OutputCount)"
2016-05-12
我觉得我在java中用if就可以了,但是swift中存在这个关键字必有他的道理,哈哈哈~赞~~
2016-05-06
好酷,果然是现代语言好酷,果然是现代语言好酷,果然是现代语言好酷,果然是现代语言好酷,果然是现代语言
好酷,果然是现代语言
好酷,果然是现代语言
2016-05-06