摘要:
and是与运算,返回值如下 如果前者为false或者nil,则返回前者,否则后者A and B类似如下语句if not A thenreturn Aelsereturn Bend总结:and运算只要前者不为false或者nil ,均返回后者运行截图:-------------------------------------------------------or是或运算,返回值如下: 如果前者为真返回前者,否则返回后者A or B相当于以下代码if A thenreturn Aelsereturn Bend总结:or运算,只要前者不是false或者nil,就返回前者。否则返回后者运行截图... 阅读全文
摘要:
#include#include#define N 20//打印一维数组void display(int a[],int n){ int i; for (i=0;i=0; i--) { if (table[i]) // 查找 i { c++; }else { a[i+c] = a[i]; } } for (i = 0;i<c;i++) { a[i] = 100; }}int main(){ int a[N],i,del[... 阅读全文