Initial commit
This commit is contained in:
36
10.8-Palindrome/10.8-Palindrome.csproj
Normal file
36
10.8-Palindrome/10.8-Palindrome.csproj
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{0CCDDC01-C822-4D38-9719-39CCE0BE86F1}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>Palindrome</RootNamespace>
|
||||
<AssemblyName>10.8-Palindrome</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Palindrome.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
17
10.8-Palindrome/10.8-Palindrome.sln
Normal file
17
10.8-Palindrome/10.8-Palindrome.sln
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "10.8-Palindrome", "10.8-Palindrome.csproj", "{0CCDDC01-C822-4D38-9719-39CCE0BE86F1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0CCDDC01-C822-4D38-9719-39CCE0BE86F1}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{0CCDDC01-C822-4D38-9719-39CCE0BE86F1}.Debug|x86.Build.0 = Debug|x86
|
||||
{0CCDDC01-C822-4D38-9719-39CCE0BE86F1}.Release|x86.ActiveCfg = Release|x86
|
||||
{0CCDDC01-C822-4D38-9719-39CCE0BE86F1}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
12
10.8-Palindrome/10.8-Palindrome.userprefs
Normal file
12
10.8-Palindrome/10.8-Palindrome.userprefs
Normal file
@@ -0,0 +1,12 @@
|
||||
<Properties StartupItem="10.8-Palindrome.csproj">
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Palindrome.cs">
|
||||
<Files>
|
||||
<File FileName="Palindrome.cs" Line="21" Column="1" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore />
|
||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||
</Properties>
|
||||
20
10.8-Palindrome/Palindrome.cs
Normal file
20
10.8-Palindrome/Palindrome.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
class Palindrome {
|
||||
public static void Main() {
|
||||
string test = "Sallad i Dallas";
|
||||
|
||||
test = test.ToLower();
|
||||
Console.WriteLine("Ar texten \"{0}\" ett Palindrom?: {1}", test, isPalindrome(test));
|
||||
}
|
||||
|
||||
static bool isPalindrome(string input) {
|
||||
int length = input.Length;
|
||||
|
||||
for (int i = 0; i < length / 2; i++) {
|
||||
if (input[i] != input[length - i - 1])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
BIN
10.8-Palindrome/bin/Debug/10.8-Palindrome.exe
Normal file
BIN
10.8-Palindrome/bin/Debug/10.8-Palindrome.exe
Normal file
Binary file not shown.
BIN
10.8-Palindrome/bin/Debug/10.8-Palindrome.pdb
Normal file
BIN
10.8-Palindrome/bin/Debug/10.8-Palindrome.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
C:\Users\Crille\CSharp\10.8-Palindrome\bin\Debug\10.8-Palindrome.exe
|
||||
C:\Users\Crille\CSharp\10.8-Palindrome\bin\Debug\10.8-Palindrome.pdb
|
||||
C:\Users\Crille\CSharp\10.8-Palindrome\obj\x86\Debug\10.8-Palindrome.csprojResolveAssemblyReference.cache
|
||||
C:\Users\Crille\CSharp\10.8-Palindrome\obj\x86\Debug\10.8-Palindrome.exe
|
||||
C:\Users\Crille\CSharp\10.8-Palindrome\obj\x86\Debug\10.8-Palindrome.pdb
|
||||
Binary file not shown.
BIN
10.8-Palindrome/obj/x86/Debug/10.8-Palindrome.exe
Normal file
BIN
10.8-Palindrome/obj/x86/Debug/10.8-Palindrome.exe
Normal file
Binary file not shown.
BIN
10.8-Palindrome/obj/x86/Debug/10.8-Palindrome.pdb
Normal file
BIN
10.8-Palindrome/obj/x86/Debug/10.8-Palindrome.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user