Skip to content

Instantly share code, notes, and snippets.

namespace RCorpFoodPricer
{
public enum Plat:int
{
NONE = 0,
ASSIETE = 15,
SANDWICH = 10
}
}
@Kalfaa
Kalfaa / Diagramme.png
Last active April 20, 2020 13:30
Premier exo
Diagramme.png
@Kalfaa
Kalfaa / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created October 4, 2019 10:10 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace LightSaberFactory
{
class Program
{
static void Main(string[] args)
@Kalfaa
Kalfaa / cr.cs
Created November 27, 2018 09:28
using System;
using Xunit;
using System.Diagnostics;
namespace cs
{
public class UnitTest1
{
[Theory]
[InlineData(1,"I")]
[InlineData(2,"II")]
@Kalfaa
Kalfaa / Calculator.cs
Created November 5, 2018 17:30
Calculator
using System;
using System.Collections;
namespace rubs
{
class Program
{
static void Main(string[] args)
{
Stack stacknum = new Stack();