我想更改#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "iteratorG.h"
#include "positiveIntType.h"
#define MAXARRAY 5
void prnInt(void *vp){
assert(vp != NULL);
printf(" %d", *((int *) vp) );
}
void prnIt(IteratorG it, void (*fp) (void *p) ){
int count = 0;
while(hasNext(it)){
void *nextP = next(it);
count++;
if(count > 1) { printf(", "); }
fp(nextP);
}
printf("\n");
}
void test3(){
printf("\n--==== Test-03 ====------\n");
IteratorG it1 = newIterator(positiveIntCompare, positiveIntNew, positiveIntFree);
int a[MAXARRAY] = { 04, 54, 15, 12, 34};
for(int i=0; i<MAXARRAY; i++){
int result = add(it1 , &a[i]);
printf("> Inserting %d: %s \n", a[i], (result==1 ? "Success" : "Failed") );
}
reset(it1);
printf("> it1 (after reset): \n");
prnIt(it1, prnInt);
reset(it1);
IteratorG advIt1 = advance(it1, 4);
printf("> advance(it1, 4) returns: \n");
prnIt(advIt1, prnInt);
printf("--==== End of Test-03 ====------\n");
}
int main(int argc, char *argv[])
{
test3();
return EXIT_SUCCESS;
}
的{{1}}属性,只选择图片960 x 540及更高版本。
src
我收到错误: - imgt
任何帮助?