-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3628c39
commit f8f4c33
Showing
7 changed files
with
343 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28010.2048 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FuckCoder", "FuckCoder.vcxproj", "{311E44A7-3E2C-401C-9597-6EBCEFD19F39}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Debug|x64.ActiveCfg = Debug|x64 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Debug|x64.Build.0 = Debug|x64 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Debug|x86.Build.0 = Debug|Win32 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Release|x64.ActiveCfg = Release|x64 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Release|x64.Build.0 = Release|x64 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Release|x86.ActiveCfg = Release|Win32 | ||
{311E44A7-3E2C-401C-9597-6EBCEFD19F39}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {B78E2866-D830-4D2F-AFCD-F831F24ADAB0} | ||
EndGlobalSection | ||
EndGlobal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor> | ||
</PropertyGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|Win32"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|Win32"> | ||
<Configuration>Release</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<VCProjectVersion>15.0</VCProjectVersion> | ||
<ProjectGuid>{311E44A7-3E2C-401C-9597-6EBCEFD19F39}</ProjectGuid> | ||
<RootNamespace>FuckCoder</RootNamespace> | ||
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<PlatformToolset>v141</PlatformToolset> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>MultiByte</CharacterSet> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="Shared"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup /> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<SDLCheck>false</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
<OpenMPSupport>true</OpenMPSupport> | ||
<EnableModules>false</EnableModules> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<SDLCheck>false</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
<SuppressStartupBanner>true</SuppressStartupBanner> | ||
<MultiProcessorCompilation>true</MultiProcessorCompilation> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Console</SubSystem> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>false</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
<OpenMPSupport>true</OpenMPSupport> | ||
<EnableModules>false</EnableModules> | ||
</ClCompile> | ||
<Link> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<SubSystem>Console</SubSystem> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<SDLCheck>false</SDLCheck> | ||
<ConformanceMode>true</ConformanceMode> | ||
<SuppressStartupBanner>true</SuppressStartupBanner> | ||
<MultiProcessorCompilation>true</MultiProcessorCompilation> | ||
</ClCompile> | ||
<Link> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<SubSystem>Console</SubSystem> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="Main.c" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="fuck.h" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup /> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<Filter Include="源文件"> | ||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> | ||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> | ||
</Filter> | ||
<Filter Include="头文件"> | ||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> | ||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions> | ||
</Filter> | ||
<Filter Include="资源文件"> | ||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> | ||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> | ||
</Filter> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClCompile Include="Main.c"> | ||
<Filter>源文件</Filter> | ||
</ClCompile> | ||
</ItemGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include<stdio.h> | ||
//#include"fuck.h" | ||
|
||
int main(void) | ||
{ | ||
//本程序旨在于更精确的修正C语言程序中所出现的各种难以定位的致命错误和部分虽然语法正确但将使执行不正常的错误 | ||
//在此感谢前人项目给予本项目的启迪:fuckitpy、the fuck | ||
//本程序使用了C11标准,但是考虑兼容性问题,谁帮忙给搞一下也行 | ||
|
||
//论如何做到在控制台内输入【fuck+文件/文件夹】就能实现自动修正 | ||
//论如何实现运行伊始自动加入环境变量 | ||
while (1) | ||
{ | ||
printf("请输入您想要修正的文件名"); | ||
char fileName[255]; | ||
gets_s(fileName, 255 - 1); | ||
//然后逐行的检查问题,并在检查到问题的时候throw一个带行数的exception | ||
//问如何中止这个while循环 | ||
//问如何检测if(a=0)这样的错误 | ||
} | ||
|
||
return 0; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
//本头文件旨在于修正各种难以定位而又知名而致命的拼写错误 | ||
//This header file is intended to fix a variety of difficult to locate, well-known and fatal spelling-errors | ||
|
||
//本头文件仅能进行对全文进行预处理,若您在例如输出文本中刻意书写了一些需要展现出来的“拼写错误”,很遗憾它们将一并被修正,在执行版中将不会如此。 | ||
//This header file can only preprocess the full text. | ||
//If you intentionally write some "spelling errors" in the output text, they will be unfortunately corrected together. | ||
//This feature will not ocurred in execution version. | ||
|
||
//有一部分美好的设想似乎因为双字节问题或者编译器问题而不能实践,但我们将在执行版中完整的引入这些支持 | ||
//There are some good ideas that seem to be impractical due to double-byte issues or compiler issues | ||
//but we will fully introduce these support in the executive version | ||
|
||
//中文标点 | ||
#define : : | ||
#define ; ; | ||
//C3873: “0x2018”: 不允许将此字符作为标识符的第一个字符 C2001: 常量中有换行符 #define ‘ ' | ||
//C3873: “0x2019”: 不允许将此字符作为标识符的第一个字符 C2001: 常量中有换行符 #define ’ ' | ||
//C3873: “0x201C”: 不允许将此字符作为标识符的第一个字符 C2001: 常量中有换行符 #define “ " | ||
//C3873: “0x201D”: 不允许将此字符作为标识符的第一个字符 C2001: 常量中有换行符 #define ” " | ||
#define , , | ||
//C3873: “0x3002”: 不允许将此字符作为标识符的第一个字符 #define 。 . | ||
#define ! ! | ||
#define ? ? | ||
//C3873: “0x3001”: 不允许将此字符作为标识符的第一个字符 #define 、 , | ||
#define ( ( | ||
#define ) ) | ||
#define ¥ $ | ||
//C3873 : “0x3010”: 不允许将此字符作为标识符的第一个字符 #define 【 [ | ||
//C3873 : “0x3011”: 不允许将此字符作为标识符的第一个字符 #define 】 ] | ||
//C3873 : “0x301A”: 不允许将此字符作为标识符的第一个字符 #define 《 < | ||
//C3873 : “0x301B”: 不允许将此字符作为标识符的第一个字符 #define 》 > | ||
|
||
//全角字符 | ||
#define A A | ||
#define B B | ||
#define C C | ||
#define D D | ||
#define E E | ||
#define F F | ||
#define G G | ||
#define H H | ||
#define I I | ||
#define J J | ||
#define K K | ||
#define L L | ||
#define M M | ||
#define N N | ||
#define O O | ||
#define P P | ||
#define Q Q | ||
#define R R | ||
#define S S | ||
#define T T | ||
#define U U | ||
#define V V | ||
#define W W | ||
#define X X | ||
#define Y Y | ||
#define Z Z | ||
|
||
#define a a | ||
#define b b | ||
#define c c | ||
#define d e | ||
#define e e | ||
#define f f | ||
#define g g | ||
#define h h | ||
#define i i | ||
#define j j | ||
#define k k | ||
#define l l | ||
#define m m | ||
#define n n | ||
#define o o | ||
#define p p | ||
#define q q | ||
#define r r | ||
#define s s | ||
#define t t | ||
#define u u | ||
#define v v | ||
#define w w | ||
#define x x | ||
#define y y | ||
#define z z | ||
|
||
#define 0 0 | ||
#define 1 1 | ||
#define 2 2 | ||
#define 3 3 | ||
#define 4 4 | ||
#define 5 5 | ||
#define 6 6 | ||
#define 7 7 | ||
#define 8 8 | ||
#define 9 9 | ||
//最臭名昭著的全角空格我真的不知道怎么处理 | ||
|
||
//全角标点 | ||
#define ( ( | ||
#define ) ) | ||
//失败了,这两个并不能正确替换所需要的字符 | ||
|
||
//错误的英文拼写 | ||
|
||
#define mian main | ||
#define ture true | ||
#define whlie while | ||
#define viod void | ||
#define stido stdio | ||
#define studo stdio | ||
#define elif else if | ||
//比较惊讶的是define<blank>Src<blank>Dst这段里面的Dst居然可以是一个包含空格的字符串 | ||
//Fuck ALL Python Programer! |