1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| using System;
namespace Test
{
class Program
{
/// <summary> Tableau de travail</summary>
static float[] m_Tab = new float[1000];
/// <summary>
/// Entrée du programme
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
// Fonction de Traitement
Traitement();
// Affichage
Affichage();
}
/// <summary>
/// Fonction de Traitement
/// </summary>
/// <returns>Toujours TRUE !!</returns>
static bool Traitement()
{
for (Int32 Index = 0; Index < 1000; Index++)
{
m_Tab[Index] = Index + (0.001f * Index) ;
}
return true;
}
/// <summary>
/// Fonction d'Affichage
/// </summary>
static void Affichage()
{
for (Int32 Index = 0; Index < 1000; Index++)
{
Console.WriteLine("Index: {0} = {1:0.000}", Index, m_Tab[Index]);
}
Console.WriteLine("\nPressez une touche pour finir !!");
Console.ReadKey();
}
}
} |
Partager