mirror of
https://github.com/ada-dmitry/prog.l_ada.git
synced 2026-09-24 09:10:14 +00:00
global rename
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -1,4 +1,8 @@
|
||||
#include "head.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
Stack get(Stack *l, int n) {
|
||||
if (n > len(l))
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#define N 6
|
||||
|
||||
|
||||
+5
-1
@@ -1,4 +1,8 @@
|
||||
#include "head.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
srand(time(0));
|
||||
@@ -54,7 +58,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
printf("result: %lF\n", get(numbers, 0).x);
|
||||
printf("result: %lF\n", get(numbers, -1).x);
|
||||
|
||||
free(numbers);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user