diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.pbxproj" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.pbxproj" new file mode 100644 index 000000000..ca4637750 --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.pbxproj" @@ -0,0 +1,279 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 967A9B7D210305C700E139ED /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 967A9B7C210305C700E139ED /* main.c */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 967A9B77210305C700E139ED /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 967A9B79210305C700E139ED /* zifu */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = zifu; sourceTree = BUILT_PRODUCTS_DIR; }; + 967A9B7C210305C700E139ED /* main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = ""; }; + 967A9B83210306E200E139ED /* mhzk16c.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = mhzk16c.txt; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 967A9B76210305C700E139ED /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 967A9B70210305C700E139ED = { + isa = PBXGroup; + children = ( + 967A9B7B210305C700E139ED /* zifu */, + 967A9B7A210305C700E139ED /* Products */, + ); + sourceTree = ""; + }; + 967A9B7A210305C700E139ED /* Products */ = { + isa = PBXGroup; + children = ( + 967A9B79210305C700E139ED /* zifu */, + ); + name = Products; + sourceTree = ""; + }; + 967A9B7B210305C700E139ED /* zifu */ = { + isa = PBXGroup; + children = ( + 967A9B83210306E200E139ED /* mhzk16c.txt */, + 967A9B7C210305C700E139ED /* main.c */, + ); + path = zifu; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 967A9B78210305C700E139ED /* zifu */ = { + isa = PBXNativeTarget; + buildConfigurationList = 967A9B80210305C700E139ED /* Build configuration list for PBXNativeTarget "zifu" */; + buildPhases = ( + 967A9B75210305C700E139ED /* Sources */, + 967A9B76210305C700E139ED /* Frameworks */, + 967A9B77210305C700E139ED /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = zifu; + productName = zifu; + productReference = 967A9B79210305C700E139ED /* zifu */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 967A9B71210305C700E139ED /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0930; + ORGANIZATIONNAME = ciel; + TargetAttributes = { + 967A9B78210305C700E139ED = { + CreatedOnToolsVersion = 9.3; + }; + }; + }; + buildConfigurationList = 967A9B74210305C700E139ED /* Build configuration list for PBXProject "zifu" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 967A9B70210305C700E139ED; + productRefGroup = 967A9B7A210305C700E139ED /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 967A9B78210305C700E139ED /* zifu */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 967A9B75210305C700E139ED /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 967A9B7D210305C700E139ED /* main.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 967A9B7E210305C700E139ED /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + 967A9B7F210305C700E139ED /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.13; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 967A9B81210305C700E139ED /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 967A9B82210305C700E139ED /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 967A9B74210305C700E139ED /* Build configuration list for PBXProject "zifu" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 967A9B7E210305C700E139ED /* Debug */, + 967A9B7F210305C700E139ED /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 967A9B80210305C700E139ED /* Build configuration list for PBXNativeTarget "zifu" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 967A9B81210305C700E139ED /* Debug */, + 967A9B82210305C700E139ED /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 967A9B71210305C700E139ED /* Project object */; +} diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata" new file mode 100644 index 000000000..a0e89e4ae --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/contents.xcworkspacedata" @@ -0,0 +1,7 @@ + + + + + diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" new file mode 100644 index 000000000..18d981003 --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist" @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/xcuserdata/ciel.xcuserdatad/UserInterfaceState.xcuserstate" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/xcuserdata/ciel.xcuserdatad/UserInterfaceState.xcuserstate" new file mode 100644 index 000000000..13a418584 Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/project.xcworkspace/xcuserdata/ciel.xcuserdatad/UserInterfaceState.xcuserstate" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/xcuserdata/ciel.xcuserdatad/xcschemes/xcschememanagement.plist" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/xcuserdata/ciel.xcuserdatad/xcschemes/xcschememanagement.plist" new file mode 100644 index 000000000..8ba813ff2 --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/xcuserdata/ciel.xcuserdatad/xcschemes/xcschememanagement.plist" @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + zifu.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 967A9B78210305C700E139ED + + primary + + + + + diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/xcuserdata/ciel.xcuserdatad/xcschemes/zifu.xcscheme" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/xcuserdata/ciel.xcuserdatad/xcschemes/zifu.xcscheme" new file mode 100644 index 000000000..ca8592250 --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu.xcodeproj/xcuserdata/ciel.xcuserdatad/xcschemes/zifu.xcscheme" @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu/main.c" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu/main.c" new file mode 100644 index 000000000..46e87b0ef --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu/main.c" @@ -0,0 +1,56 @@ +#include +#include +int main() +{ + unsigned char s[10] = "王钟毓"; + int w,q,ofs; + FILE *fp; + int output[16][48]; + unsigned char u[32]; + q = s[0] - 0xA1; + w = s[1] - 0xA1; + ofs = q*94 + w + 256; + if((fp = fopen("mhzk16c.txt","rb")) == NULL) + { + printf("The File Open Error !\n"); + exit(0); + } + fseek(fp,ofs*32L,SEEK_SET); + fread(u, 1, 32, fp); + int i,j,m; + for(i=0;i<16;i++) + for(j=0;j<48;j++) + output[i][j] = 0; + for(j=0;j<16;j++) + { + m=0x80; + for(i=0;i<8;i++){ + if(u[j*2+0] & m) + { + output[i][j] = 1; + } + m >>= 1 ; + } + m = 0x80; + for(i=0;i<8;i++) + { + if(u[j*2+1] & m) + { + output[i+8][j] = 1; + } + + m >>= 1; + } + printf("\n"); + } + for(i=0;i<16;i++) + { + for(j=0;j<48;j++) + if(output[i][j]==1) + printf("*"); + else + printf("."); + printf("\n"); + } +} + diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu/mhzk16c.txt" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu/mhzk16c.txt" new file mode 100644 index 000000000..b2f87968b Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/homework/zifu/zifu/mhzk16c.txt" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project1.zip" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project1.zip" new file mode 100644 index 000000000..960ffe4de Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project1.zip" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project2.zip" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project2.zip" new file mode 100644 index 000000000..b77b7070b Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project2.zip" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project3.zip" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project3.zip" new file mode 100644 index 000000000..fa9e7cb81 Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project3.zip" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project4.zip" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project4.zip" new file mode 100644 index 000000000..51c6e7c63 Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project4.zip" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project6.zip" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project6.zip" new file mode 100644 index 000000000..a88a98aa6 Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project6.zip" differ diff --git "a/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project7.zip" "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project7.zip" new file mode 100644 index 000000000..0ece8c733 Binary files /dev/null and "b/\350\256\241\347\256\227\346\234\272\347\241\254\344\273\266\345\237\272\347\241\200/project7.zip" differ