menuuuuuuuuuuuuuuuuuuuuuu
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class menu
{
public void general_menu(out int opc,int z,int y,params string[]menu)
{
int x;
for(x=0; x< menu.Length; x++)
{
Console.SetCursorPosition(z,y+x);
Console.WriteLine(menu
}
opc= int.Parse(Console.ReadLine());
}
}
}
********************************************
entrada y salida
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class entrada_salida
{
public void captura(out double variable, string msj, int x, int y)
{
Console.SetCursorPosition(x, y);
Console.Write(msj);
variable = double.Parse(Console.ReadLine());
}
public void imprime(double resultado, string msj, int x, int y)
{
Console.SetCursorPosition(x, y);
Console.Write("{0} {1}", msj, resultado);
}
}
}
**************************************
conversiones
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class conversiones
{
public double dolares_pesos(double dolares, double tc)
{
double pesos;
pesos = dolares * tc;
return pesos;
}
public double pesos_dolares(double pesos, double tc)
{
double dolares;
dolares=pesos/tc;
return dolares;
}
public double kg_lb(double kg)
{
double lb;
lb = kg / .454;
return lb;
}
public double lb_kg(double lb )
{
double kg;
kg=lb*.454;
return kg;
}
public double mt_pies(double mt)
{
double pies;
pies = mt / .3048;
return pies;
}
public double pies_mt(double pies)
{
double mt;
mt = pies * .3048;
return mt;
}
}
}
8888888888888888888888888888888888888888888888888888888888888888888
BYEEE