小编Oda*_*qed的帖子

Powershell将值加在一起

这是我的代码:

clear-host

function isNumeric ($x) {
try {
    0 + $x | Out-Null
    return $true
} catch {
    return $false
}
}

function output-file ($ave, $high, $low, $date)
{
write-output "Programer: Oday Sawaqed"
write-output "Class: CIS 124"
write-output "PowerShell Assignmnent"
write-output ""
Write-output ""
write-output " Current Date                    Average               Highest                        Lowest"
write-output " $date                $ave                   $high                 $low "
}


$array = @()
$hold
$n = 1

do {
$hold = read-host "number $n"
if (isNumeric $hold -eq $true){
if (999 …
Run Code Online (Sandbox Code Playgroud)

arrays powershell add powershell-2.0

9
推荐指数
1
解决办法
3万
查看次数

标签 统计

add ×1

arrays ×1

powershell ×1

powershell-2.0 ×1