- Некорректная обработка чисел больше размерности
int
. Например,9999999999999999999=-1981284353
. IndexOutOfRangeException
в случае пустого ввода и в случае если оператор умножения или сложения находятся в начале:+2
,*2
.- Программа не покрыта тестами.
- Дублирование логики в
switch - case
. Символьный тип элементарно перевести в число, а блок с проверкой от'0'
до'9'
заменяется одной строчкой. То же самое относится к операторам'*'
и'+'
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MathNet.Numerics.LinearAlgebra.Double; | |
using MathNet.Numerics.LinearAlgebra.Generic; | |
public class PolynomialRegression | |
{ | |
private int _order; | |
private Vector<double> _coefs; | |
/// <summary> | |
/// Calculates polynom regression for xData = [x1, x2, ... , xn] and yData = [y1, y2, ... , yn]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class C { | |
public const int C1Type = 1; | |
public const int C2Type = 2; | |
public const int C3Type = 3; | |
public const int C4Type = 4; | |
public abstract class Base | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo off | |
:LOOP | |
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" "QuineSnake.cs" | |
"QuineSnake.exe" > "QuineSnake.cs" | |
type "QuineSnake.cs" | |
goto LOOP | |
:END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
class Animal | |
{ | |
} | |
class Cat : Animal | |
{ | |
public void Meow() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chcp 65001 | |
mkdir Kochurkins | |
cd Kochurkins | |
git init | |
git checkout --orphan @I36@ | |
git commit -m "Татьяна : Birth F" --date "01/01/1970 00:00:00" --author "Татьяна <>" --allow-empty | |
git checkout --orphan @I35@ | |
git commit -m "Степан Голобоков : Birth M" --date "01/01/1970 00:00:00" --author "Степан Голобоков <>" --allow-empty | |
git checkout --orphan @I33@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; | |
using System.Windows.Media; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using static System.Console; | |
using static System.Math; | |
using static System.DayOfWeek; | |
using static System.Linq.Enumerable; | |
namespace CSharp6Samples | |
{ | |
public class Test | |
{ | |
// Initializers for auto-properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using static System.Console; | |
namespace Expressions | |
{ | |
public enum Operation | |
{ | |
Add, | |
Mult, | |
Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CSharp6FeaturiesWalker : CSharpSyntaxWalker | |
{ | |
public bool CSharp6Featuries { get; private set; } | |
public CSharp6FeatureWalker() | |
{ | |
} | |
public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node) | |
{ |