lal
This commit is contained in:
parent
82b7a2e913
commit
eadf9c357b
@ -1,7 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <assert.h>
|
||||||
|
|
||||||
#define SIZE 10
|
#define SIZE 10
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ struct stack{
|
|||||||
};
|
};
|
||||||
void print(struct stack *s)
|
void print(struct stack *s)
|
||||||
{
|
{
|
||||||
for(int i = 0; i < s ->values[i]){
|
for(int i = 0; i < s ->values[i], i++){
|
||||||
printf("%.2f ", s->values[i]);
|
printf("%.2f ", s->values[i]);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
@ -31,7 +31,7 @@ float pop(struct stack *s)
|
|||||||
}
|
}
|
||||||
int main(){
|
int main(){
|
||||||
struct stack mystack;
|
struct stack mystack;
|
||||||
mamset(&mystack,0,sizeof(struct stack));
|
memset(&mystack,0,sizeof(struct stack));
|
||||||
char x[100];
|
char x[100];
|
||||||
|
|
||||||
while(fgets(x, 100, stdin)){
|
while(fgets(x, 100, stdin)){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user