Skip to content

Repository containing all the lessons (from 2023-2024 session) in R1.01 from the IUT of Limoges.

Notifications You must be signed in to change notification settings

Vexcited/IUT-R1.01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R1.01

Solutions are written in the following languages:

  • Python (the one we should use originally during the TPs)
  • French pseudo code (files with .fr extension), because I'm French and the teacher wants us to resolve the TDs in pseudo code. Interpreter used will be frr.
  • Rust
  • Zig
  • C

Usage

If the language used produces a binary, make sure that the binary is executable, if not run chmod +x ./bin_file.

C

# We compile using gcc
gcc ./file.c -o c_bin && ./c_bin

Rust

# We compile using rustc
rustc ./file.rs -o rust_bin && ./rust_bin

Zig

We can directly run the file using zig run ./file.zig.

But if we want to compile it, we can do the following:

zig build-exe --name zig_bin ./file.zig && ./zig_bin

Note that the binary will be in mode Debug by default, so no optimisations will be made. Otherwise, use the -O ReleaseSafe flag.

Python

Only Python 3 is supported.

# We run the python file
python3 ./file.py

About

Repository containing all the lessons (from 2023-2024 session) in R1.01 from the IUT of Limoges.

Topics

Resources

Stars

Watchers

Forks