Select Git revision
BlackjackGUI.java
test_vectors.c 714 B
/*
Autheur : Abivarman KANDIAH
Date : 22/02/2022
Fichier : test_vectors.c
Descritpion :
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "../header/vectors.h"
int main()
{
vector test = vector_create();
printf("Created Vector lenght : %d \n", vector_length(test));
vector_push(test, 15);
printf("Modified Vector lenght : %d \n", vector_length(test));
type val = vector_pop(test);
printf("Modified Vector lenght : %d and the value we popped : %d \n", vector_length(test), val);
vector_push(test, 42);
vector_set(test, 0, 69);
val = vector_get(test, 0);
printf("Modified Vector lenght : %d and the value we setted : %d \n", vector_length(test), val);
return 0;
}