标签:printf amp struct nod lib ret lang 插入 顺序
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct {
int data[8];
int length;
}SqNode;
int FindEle(SqNode &L,int x){
int j=0;
for (; j < L.length; ++j) {
if (x<L.data[j]){
printf("%d",j);
return j;
}
}
return j;
}
int main(){
SqNode sqNode={
{1,2,3,4,5,6,7,8},
8
};
FindEle(sqNode,3);
return 0;
}
标签:printf amp struct nod lib ret lang 插入 顺序
原文地址:https://www.cnblogs.com/szj666/p/13174326.html