Skip to content

Commit

Permalink
Hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Aug 23, 2016
1 parent e57f995 commit 28aebda
Show file tree
Hide file tree
Showing 25 changed files with 350 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Clase3/Clase3.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ejercicio1", "Ejercicio_1\Ejercicio1.csproj", "{5383F28D-C8E6-4D21-850F-A87D239CEF38}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5383F28D-C8E6-4D21-850F-A87D239CEF38}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5383F28D-C8E6-4D21-850F-A87D239CEF38}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5383F28D-C8E6-4D21-850F-A87D239CEF38}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5383F28D-C8E6-4D21-850F-A87D239CEF38}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Clase3/Clase3.v11.suo
Binary file not shown.
6 changes: 6 additions & 0 deletions Clase3/Ejercicio_1/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
85 changes: 85 additions & 0 deletions Clase3/Ejercicio_1/Auto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ejercicio_1
{
public class Auto
{
public eFabricante fabricante;
public Rueda DI;
public Rueda DD;
public Rueda TI;
public Rueda TD;
public static int ContadorDeObjetos;
private int KilometrosRecorridos;
private static int numerorandom;
private static Random rng;

public Auto()
{

switch (numerorandom)
{
case 1:
this.fabricante = (eFabricante)1;
break;
case 2:
this.fabricante = (eFabricante)2;
break;
case 3:
this.fabricante = (eFabricante)3;
break;
}
this.DI = new Rueda();
this.DD = new Rueda();
this.TD = new Rueda();
this.TI = new Rueda();
Auto.ContadorDeObjetos++;
}

public void VolverCero()
{
KilometrosRecorridos = 0;
}

public void AgregarKilometros(int kilometros)
{

}

public void MostrarAuto()
{
Console.WriteLine("El fabricante es: " + fabricante);
}

static Auto()//No lleva modificador de visibilidad si es estatico
{
rng = new Random();
numerorandom = rng.Next(1, 3);

Auto.ContadorDeObjetos = 0;


}

public static bool CompararAuto(Auto auto1, Auto auto2)
{
if (auto1.fabricante == auto2.fabricante)
{
return true;
}
else
{
return false;


}
}



}
}
47 changes: 47 additions & 0 deletions Clase3/Ejercicio_1/Carrera.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ejercicio_1
{
public class Carrera
{
public Auto auto1;
public Auto auto2;
public Auto auto3;
public Auto auto4;
public Auto auto5;
public Auto auto6;

public Carrera()
{
this.auto1 = new Auto();
this.auto2 = new Auto();
this.auto3 = new Auto();
this.auto4 = new Auto();
this.auto5 = new Auto();
this.auto6 = new Auto();

}

public void PorTiempo(int niveles)
{

}

public void MostrarCarrera()
{
this.auto1.MostrarAuto();
this.auto2.MostrarAuto();
this.auto3.MostrarAuto();
this.auto4.MostrarAuto();
this.auto5.MostrarAuto();
this.auto6.MostrarAuto();



}
}
}
16 changes: 16 additions & 0 deletions Clase3/Ejercicio_1/Efabricante.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ejercicio_1
{
public enum eFabricante
{
FORD=1,
CHEVROLET,
HONDA

}
}
62 changes: 62 additions & 0 deletions Clase3/Ejercicio_1/Ejercicio1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5383F28D-C8E6-4D21-850F-A87D239CEF38}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Ejercicio_1</RootNamespace>
<AssemblyName>Ejercicio_1</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Auto.cs" />
<Compile Include="Carrera.cs" />
<Compile Include="Efabricante.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Rueda.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
24 changes: 24 additions & 0 deletions Clase3/Ejercicio_1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ejercicio_1
{
class Program
{
static void Main(string[] args)
{
Carrera carrera;
carrera = new Carrera();
carrera.MostrarCarrera();
Console.ReadKey();





}
}
}
36 changes: 36 additions & 0 deletions Clase3/Ejercicio_1/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ejercicio_1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Ejercicio_1")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ec1d3a91-5f3e-4b69-a6ac-d2fb4400c6cc")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
24 changes: 24 additions & 0 deletions Clase3/Ejercicio_1/Rueda.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ejercicio_1
{
public class Rueda
{
public string _marca;
public float _tamaño;

public Rueda() //Constructor por defecto
{
this._marca = "Sin marca";

}
public void MostrarRueda()
{
Console.WriteLine("El tamaño es:" + _tamaño);
}
}
}
Binary file added Clase3/Ejercicio_1/bin/Debug/Ejercicio_1.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions Clase3/Ejercicio_1/bin/Debug/Ejercicio_1.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
Binary file added Clase3/Ejercicio_1/bin/Debug/Ejercicio_1.pdb
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions Clase3/Ejercicio_1/bin/Debug/Ejercicio_1.vshost.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
11 changes: 11 additions & 0 deletions Clase3/Ejercicio_1/bin/Debug/Ejercicio_1.vshost.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
D:\Otero\Clase3\Ejercicio_1\bin\Debug\Ejercicio_1.exe.config
D:\Otero\Clase3\Ejercicio_1\bin\Debug\Ejercicio_1.exe
D:\Otero\Clase3\Ejercicio_1\bin\Debug\Ejercicio_1.pdb
D:\Otero\Clase3\Ejercicio_1\obj\Debug\Ejercicio1.csprojResolveAssemblyReference.cache
D:\Otero\Clase3\Ejercicio_1\obj\Debug\Ejercicio_1.exe
D:\Otero\Clase3\Ejercicio_1\obj\Debug\Ejercicio_1.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D:\Otero\Clase3\Ejercicio_1\bin\Debug\Ejercicio_1.exe.config
Binary file added Clase3/Ejercicio_1/obj/Debug/Ejercicio_1.exe
Binary file not shown.
Binary file added Clase3/Ejercicio_1/obj/Debug/Ejercicio_1.pdb
Binary file not shown.
Empty file.
Empty file.
Empty file.

0 comments on commit 28aebda

Please sign in to comment.