我不知道爲什麼這個代碼不打印「得到了它」 當我運行它,它只是表明我打印else語句,即使答案是正確的。 import random as rand
print('Welcome to the guessing game!')
print('type a number between 1 to 9')
running = True
while running:
value = ra
我需要開發測試陣列是否包含名爲testVal的 這是我寫的 bool Contains(int a[], int arraySize, int testVal)
{
bool contains = 0;
for (int i = 0; i < arraySize; ++i)
{
if (a[i] == testVal)
{