I have to use a dynamic array and don't have a clue how to start this. The array is empty unless the user decides to input a number in it. I was thinking this but I am not sure of this will will work.
printf("What number would you like to delete\n");Code:#include <stdio.h> int main ( void ) int SIZE = 0, a [ ], menu; printf("Press one if you would like to add an intenger\n"); scanf("%d",&menu); if ( menu == 1 ) { SIZE++ scanf("%d",&int[SIZE] )
scanf("%d",&key);
call linear search function
delete key; ( not sure how to do that )
call copy function to copy array a;
Any ideas are greatly appreciated.
Thanks.



LinkBack URL
About LinkBacks



