Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int i;
- int array1[1000];
- int array2[1000];
- Stack *s = makeStack();
- FILE*f = fopen("experval.txt", "r");
- if(f == NULL)
- printf("FILE ERROR\n");
- else{
- fscanf(f, "%d", &n);
- for(i = 1; i<=n; i++)
- {
- fscanf(f, "%d", &array1[i]);
- node.value = array1[i];
- Node* newnode = makeNode(value);
- pushStack(s, newNode);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment