Commit 9c876444 authored by William Sha's avatar William Sha
Browse files

Initial commit

parents
#include <stdio.h>
#include <stdlib.h>
#include "tp3.h"
int main()
{
printf("Hello world!\n");
return 0;
}
File added
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="tp1" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/tp1" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/tp1" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="main.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="tp3.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="tp3.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
# depslib dependency file v1.0
1510138943 source:c:\users\william\projets c\tp1\main.c
<stdio.h>
<stdlib.h>
"tp3.h"
1510140177 c:\users\william\projets c\tp1\tp3.h
1510140218 source:c:\users\william\projets c\tp1\tp3.c
<stdio.h>
<stdlib.h>
"tp3.h"
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Debug" />
<File name="tp3.h" open="1" top="1" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="169" topLine="0" />
</Cursor>
</File>
<File name="main.c" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="39" topLine="0" />
</Cursor>
</File>
<File name="tp3.c" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="300" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>
#include <stdio.h>
#include <stdlib.h>
#include "tp3.h"
void initialize(List* list){
println("INITIALIZE\n");
}
void insert_empty_list(List* list, char* str){
println("INSERT_EMPTY_LIST\n");
}
void insert_beginning_list(List* list, char* str){
println("INSERT_BEGINNING_LIST\n");
}
void insert_end_list(List* list, char* str){
}
int insert_after_position(List* list, char* str, int p){
}
int remove_element(List* list, int p){
}
int compare(char* str1, char* str2){
}
int sort(List* list){
}
void display(List* list){
}
void destruct(List* list){
}
#define N 5
typedef struct element{
char* data;
struct element* next;
} Element;
typedef struct list{
Element* head;
Element* tail;
} List;
void initialize(List* list);
void insert_empty_list(List* list, char* str);
void insert_beginning_list(List* list, char* str);
void insert_end_list(List* list, char* str);
int insert_after_position(List* list, char* str, int p);
int remove_element(List* list, int p);
int compare(char* str1, char* str2);
int sort(List* list);
void display(List* list);
void destruct(List* list);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment