diff --git a/code.c/zhangyuxiao/p1/p1.c b/code.c/zhangyuxiao/p1/p1.c new file mode 100644 index 0000000..55e932e --- /dev/null +++ b/code.c/zhangyuxiao/p1/p1.c @@ -0,0 +1,13 @@ +# include +int main() +{ + float p; + float n; + for(n=1;n<=10;n++) + { + p=1/n; + printf("p is %f\n",p); + } + getchar(); + return(0); +} diff --git a/code.c/zhangyuxiao/p1/p1.cws b/code.c/zhangyuxiao/p1/p1.cws new file mode 100644 index 0000000..bd08c6c --- /dev/null +++ b/code.c/zhangyuxiao/p1/p1.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/f/移动机器人作业以及PPT/robot updata/P1/p1.cws" +CVI Dir = "/d/labwindows cvi" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p1.prj" +Drag Bar Left = 160 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 808 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 143 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/f/移动机器人作业以及PPT/robot updata/P1/p1.c" +File Type = "CSource" +Disk Date = 3593469084 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,4,4,4,18,36,18,0,0,195,0,13,0,13,0,37,0,0,4,18,400,600,0,0," + +[Tab Order] +Tab 0001 = "/f/移动机器人作业以及PPT/robot updata/P1/p1.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p1/p1.exe b/code.c/zhangyuxiao/p1/p1.exe new file mode 100644 index 0000000..d4934ee Binary files /dev/null and b/code.c/zhangyuxiao/p1/p1.exe differ diff --git a/code.c/zhangyuxiao/p1/p1.prj b/code.c/zhangyuxiao/p1/p1.prj new file mode 100644 index 0000000..d3fea43 --- /dev/null +++ b/code.c/zhangyuxiao/p1/p1.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/e/研究生/研一资料文件/研究生课程/robot updata/P1/p1.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p1.c" +Path = "/e/研究生/研一资料文件/研究生课程/robot updata/P1/p1.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p1 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p1" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p1.exe" +Executable File_Debug = "/e/研究生/研一资料文件/研究生课程/robot updata/P1/p1.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p1.exe" +Executable File_Release = "/e/研究生/研一资料文件/研究生课程/robot updata/P1/p1.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p1.exe" +Executable File_Debug64 = "/e/研究生/研一资料文件/研究生课程/robot updata/P1/p1.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p1.exe" +Executable File_Release64 = "/e/研究生/研一资料文件/研究生课程/robot updata/P1/p1.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p12/p12.c b/code.c/zhangyuxiao/p12/p12.c new file mode 100644 index 0000000..191623c --- /dev/null +++ b/code.c/zhangyuxiao/p12/p12.c @@ -0,0 +1,18 @@ +# include +int main() +{ + float pCan,pNon,pPosCan,pPosNon; + float pPos; + float pCanPos,pNonPos; + pCan=0.001; + pNon=0.999; + pPosCan=0.8; + pPosNon=0.1; + pPos=pPosCan*pCan+pPosNon*pNon; + pCanPos=(pPosCan*pCan)/pPos; + pNonPos=(pPosNon*pNon)/pPos; + printf("The probability of the pCanPos is:%f\n",pCanPos); + printf("The probability of the pNonPos is:%f\n",pNonPos); + getchar(); + return 0; +} diff --git a/code.c/zhangyuxiao/p12/p12.cws b/code.c/zhangyuxiao/p12/p12.cws new file mode 100644 index 0000000..c0ad6c1 --- /dev/null +++ b/code.c/zhangyuxiao/p12/p12.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p12/p12.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p12.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 824 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/h/移动机器人作业以及PPT/robot updata/p12/p12.c" +File Type = "CSource" +Disk Date = 3594872968 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,14,14,14,30,61,30,0,0,101,0,0,0,0,0,21,0,0,17,16,400,600,0,0," + +[Tab Order] +Tab 0001 = "/h/移动机器人作业以及PPT/robot updata/p12/p12.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p12/p12.exe b/code.c/zhangyuxiao/p12/p12.exe new file mode 100644 index 0000000..9ecfdbc Binary files /dev/null and b/code.c/zhangyuxiao/p12/p12.exe differ diff --git a/code.c/zhangyuxiao/p12/p12.prj b/code.c/zhangyuxiao/p12/p12.prj new file mode 100644 index 0000000..4975f35 --- /dev/null +++ b/code.c/zhangyuxiao/p12/p12.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p12/p12.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p12.c" +Path = "/h/移动机器人作业以及PPT/robot updata/p12/p12.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p12 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p12" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p12.exe" +Executable File_Debug = "/h/移动机器人作业以及PPT/robot updata/p12/p12.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p12.exe" +Executable File_Release = "/h/移动机器人作业以及PPT/robot updata/p12/p12.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p12.exe" +Executable File_Debug64 = "/h/移动机器人作业以及PPT/robot updata/p12/p12.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p12.exe" +Executable File_Release64 = "/h/移动机器人作业以及PPT/robot updata/p12/p12.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p13/p13.c b/code.c/zhangyuxiao/p13/p13.c new file mode 100644 index 0000000..01abbd0 --- /dev/null +++ b/code.c/zhangyuxiao/p13/p13.c @@ -0,0 +1,28 @@ +#include +# include +int main() +{ + float Expectation,Variance,StandardDeviation; + int n=5; + float MenAge[5]={7.0,38.0,4.0,23.0,18.0}; + float sum1=0.0; + float sum2=0.0; + for (int i=0;i<5;i++) + { + sum1=sum1+MenAge[i]; + } + printf("sum1 is: %f\n",sum1); + Expectation=sum1/n; + printf("Expectation is: %f\n",Expectation); + for(int i=0;i<5;i++) + { + sum2=sum2+(MenAge[i]-Expectation)*(MenAge[i]-Expectation); + } + printf("sum2 is: %f\n",sum2); + Variance=sum2/n; + printf("Variance is: %f\n",Variance); + StandardDeviation=sqrt(Variance); + printf("StandardDeviation is: %f\n",StandardDeviation); + getchar(); + return 0; +} diff --git a/code.c/zhangyuxiao/p13/p13.cws b/code.c/zhangyuxiao/p13/p13.cws new file mode 100644 index 0000000..fb8308f --- /dev/null +++ b/code.c/zhangyuxiao/p13/p13.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p13/p13.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p13.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 824 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/h/移动机器人作业以及PPT/robot updata/p13/p13.c" +File Type = "CSource" +Disk Date = 3594876012 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,23,23,23,40,48,40,0,0,101,0,1,0,1,0,21,8,0,12,62,400,600,0,0," + +[Tab Order] +Tab 0001 = "/h/移动机器人作业以及PPT/robot updata/p13/p13.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p13/p13.exe b/code.c/zhangyuxiao/p13/p13.exe new file mode 100644 index 0000000..7156b24 Binary files /dev/null and b/code.c/zhangyuxiao/p13/p13.exe differ diff --git a/code.c/zhangyuxiao/p13/p13.prj b/code.c/zhangyuxiao/p13/p13.prj new file mode 100644 index 0000000..a41fa6f --- /dev/null +++ b/code.c/zhangyuxiao/p13/p13.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p13/p13.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p13.c" +Path = "/h/移动机器人作业以及PPT/robot updata/p13/p13.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p13 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p13" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p13.exe" +Executable File_Debug = "/h/移动机器人作业以及PPT/robot updata/p13/p13.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p13.exe" +Executable File_Release = "/h/移动机器人作业以及PPT/robot updata/p13/p13.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p13.exe" +Executable File_Debug64 = "/h/移动机器人作业以及PPT/robot updata/p13/p13.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p13.exe" +Executable File_Release64 = "/h/移动机器人作业以及PPT/robot updata/p13/p13.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p14/p14.c b/code.c/zhangyuxiao/p14/p14.c new file mode 100644 index 0000000..ac3adbb --- /dev/null +++ b/code.c/zhangyuxiao/p14/p14.c @@ -0,0 +1,37 @@ +# include +int main() +{ + float a=2.0,b=4.0,sum1=0.0,sum2=0.0; + int n=5; + float Expectation1,Expectation2; + float Expectation3; + float MenAge1[5]={7.0,38.0,4.0,23.0,18.0}; + float MenAge2[5]={0.0,0.0,0.0,0.0,0.0}; + for(int i=0;i<5;i++) + { + MenAge2[i]=a*MenAge1[i]+b; + printf("%f ",MenAge2[i]); + } + printf("\n"); + for(int i=0;i<5;i++) + { + sum1=sum1+MenAge1[i]; + } + Expectation1=sum1/n; + printf("MenAge1的均值为:%f\n",Expectation1); + for(int i=0;i<5;i++) + { + sum2=sum2+MenAge2[i]; + } + Expectation2=sum2/n; + printf("MenAge2的均值为:%f\n",Expectation2); + Expectation3=a*Expectation1+b; + printf("MenAge3的均值为:%f\n",Expectation2); + if(Expectation2=Expectation3) + printf("E[aX+b]=aE[X]+b\n"); + else + printf("E[aX+b]不等于aE[X]+b\n"); + getchar(); + return 0; +} + diff --git a/code.c/zhangyuxiao/p14/p14.cws b/code.c/zhangyuxiao/p14/p14.cws new file mode 100644 index 0000000..f464aa4 --- /dev/null +++ b/code.c/zhangyuxiao/p14/p14.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p14/p14.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p14.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 824 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/h/移动机器人作业以及PPT/robot updata/p14/p14.c" +File Type = "CSource" +Disk Date = 3594888874 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,32,32,32,23,24,24,0,0,101,0,0,0,0,0,21,17,0,25,55,400,600,0,0," + +[Tab Order] +Tab 0001 = "/h/移动机器人作业以及PPT/robot updata/p14/p14.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p14/p14.exe b/code.c/zhangyuxiao/p14/p14.exe new file mode 100644 index 0000000..e2e5218 Binary files /dev/null and b/code.c/zhangyuxiao/p14/p14.exe differ diff --git a/code.c/zhangyuxiao/p14/p14.prj b/code.c/zhangyuxiao/p14/p14.prj new file mode 100644 index 0000000..82daa5b --- /dev/null +++ b/code.c/zhangyuxiao/p14/p14.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p14/p14.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p14.c" +Path = "/h/移动机器人作业以及PPT/robot updata/p14/p14.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p14 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p14" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p14.exe" +Executable File_Debug = "/h/移动机器人作业以及PPT/robot updata/p14/p14.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p14.exe" +Executable File_Release = "/h/移动机器人作业以及PPT/robot updata/p14/p14.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p14.exe" +Executable File_Debug64 = "/h/移动机器人作业以及PPT/robot updata/p14/p14.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p14.exe" +Executable File_Release64 = "/h/移动机器人作业以及PPT/robot updata/p14/p14.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p15/p15.c b/code.c/zhangyuxiao/p15/p15.c new file mode 100644 index 0000000..a61dd43 --- /dev/null +++ b/code.c/zhangyuxiao/p15/p15.c @@ -0,0 +1,58 @@ +# include +int main() +{ + float Expectation1,Expectation2,Expectation3,Cov1,Cov2; + float sum1=0.0,sum2=0.0,sum3=0.0; + int n=5; + float MenAge1[5]={7.0,38.0,4.0,23.0,18.0}; + float MenAge2[5]={0.0,0.0,0.0,0.0,0.0}; + float MenAge3[5]={0.0,0.0,0.0,0.0,0.0}; + for(int i=0;i<5;i++) + { + sum1=sum1+MenAge1[i]; + } + printf("sum1 is:%f\n",sum1); + Expectation1=sum1/n; + printf("Expectation1 is:%f\n",Expectation1); + + /*******第一种方法求Cov********/ + for(int i=0;i<5;i++) + { + MenAge2[i]=MenAge1[i]*MenAge1[i]; + sum2=sum2+MenAge2[i]; + printf("%f ",MenAge2[i]); + } + printf("\n"); + printf("sum2 is:%f\n",sum2); + Expectation2=sum2/n; + printf("Expectation2 is:%f\n",Expectation2); + Cov1=Expectation2-Expectation1*Expectation1; + printf("Cov1 is:%f\n",Cov1); + printf("\n"); + printf("\n"); + + /*********第二种方法求Cov***********/ + for(int i=0;i<5;i++) + { + MenAge3[i]=(MenAge1[i]-Expectation1)*(MenAge1[i]-Expectation1); + sum3=sum3+MenAge3[i]; + printf("%f ",MenAge3[i]); + } + printf("\n"); + printf("sum3 is:%f\n",sum3); + Expectation3=sum3/n; + printf("Expectation3 is:%f\n",Expectation3); + Cov2=Expectation3; + printf("Cov2 is:%f\n",Cov2); + printf("\n"); + printf("\n"); + + /********判断两种方法得到的结果是否相同*********/ + if(Cov1=Cov2) + printf("两种方法得到的Cov结果相等\n"); + else + printf("两种方法得到的Cov结果不相等!验证错误!\n"); + getchar(); + return 0; + +} diff --git a/code.c/zhangyuxiao/p15/p15.cws b/code.c/zhangyuxiao/p15/p15.cws new file mode 100644 index 0000000..98d34af --- /dev/null +++ b/code.c/zhangyuxiao/p15/p15.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/代码 C语言 Labwindows 张玉晓 201730310115/p15/p15.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p15.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 824 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/h/移动机器人作业以及PPT/代码 C语言 Labwindows 张玉晓 201730310115/p15/p15.c" +File Type = "CSource" +Disk Date = 3594891172 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,30,31,30,4,18,4,0,0,101,0,0,0,0,0,29,15,0,48,67,400,600,0,0," + +[Tab Order] +Tab 0001 = "/h/移动机器人作业以及PPT/代码 C语言 Labwindows 张玉晓 201730310115/p15/p15.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p15/p15.exe b/code.c/zhangyuxiao/p15/p15.exe new file mode 100644 index 0000000..421c44b Binary files /dev/null and b/code.c/zhangyuxiao/p15/p15.exe differ diff --git a/code.c/zhangyuxiao/p15/p15.prj b/code.c/zhangyuxiao/p15/p15.prj new file mode 100644 index 0000000..6e6ba4f --- /dev/null +++ b/code.c/zhangyuxiao/p15/p15.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p15/p15.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p15.c" +Path = "/h/移动机器人作业以及PPT/robot updata/p15/p15.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p15 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p15" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p15.exe" +Executable File_Debug = "/h/移动机器人作业以及PPT/robot updata/p15/p15.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p15.exe" +Executable File_Release = "/h/移动机器人作业以及PPT/robot updata/p15/p15.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p15.exe" +Executable File_Debug64 = "/h/移动机器人作业以及PPT/robot updata/p15/p15.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p15.exe" +Executable File_Release64 = "/h/移动机器人作业以及PPT/robot updata/p15/p15.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p2/p2.c b/code.c/zhangyuxiao/p2/p2.c new file mode 100644 index 0000000..04e3918 --- /dev/null +++ b/code.c/zhangyuxiao/p2/p2.c @@ -0,0 +1,26 @@ +#include +# include +int main() +{ + int hit; + float sum=0; + char *world[5]={"green","red","red","green","green"}; + float p[5]={0.2,0.2,0.2,0.2,0.2}; + char *z="red"; + float pHit=0.6; + float pMiss=0.2; + float q[5]={0,0,0,0,0}; + for(int i=0;i<5;i++) + { + hit=strcmp(z,world[i]); + q[i]=p[i]*(hit*pHit+(1-hit)*pMiss); + sum=sum+q[i]; + } + for(int i=0;i<5;i++) + { + q[i]=q[i]/sum; + printf("q is %f\n",q[i]); + } + getchar(); + return 0; +} diff --git a/code.c/zhangyuxiao/p2/p2.cws b/code.c/zhangyuxiao/p2/p2.cws new file mode 100644 index 0000000..04f215e --- /dev/null +++ b/code.c/zhangyuxiao/p2/p2.cws @@ -0,0 +1,148 @@ +[Workspace Header] +Version = 1700 +Pathname = "/f/移动机器人作业以及PPT/robot updata/p2/p2.cws" +CVI Dir = "/d/labwindows cvi" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p2.prj" +Drag Bar Left = 160 +Window Top = 30 +Window Left = 26 +Window Bottom = 532 +Window Right = 800 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 143 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/f/移动机器人作业以及PPT/robot updata/p2/p2.c" +File Type = "CSource" +Disk Date = 3593472922 +In Projects = "1," +Window Top = 32 +Window Left = 10 +Window Z-Order = 1 +Source Window State = "1,0,0,0,0,0,0,0,0,195,0,0,0,0,0,37,0,0,0,0,411,855,1,0," + +[Tab Order] +Tab 0001 = "/f/移动机器人作业以及PPT/robot updata/p2/p2.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p2/p2.exe b/code.c/zhangyuxiao/p2/p2.exe new file mode 100644 index 0000000..a148499 Binary files /dev/null and b/code.c/zhangyuxiao/p2/p2.exe differ diff --git a/code.c/zhangyuxiao/p2/p2.prj b/code.c/zhangyuxiao/p2/p2.prj new file mode 100644 index 0000000..65ac437 --- /dev/null +++ b/code.c/zhangyuxiao/p2/p2.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/e/研究生/研一资料文件/研究生课程/robot updata/p2/p2.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p2.c" +Path = "/e/研究生/研一资料文件/研究生课程/robot updata/p2/p2.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p2 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p2" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p2.exe" +Executable File_Debug = "/e/研究生/研一资料文件/研究生课程/robot updata/p2/p2.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p2.exe" +Executable File_Release = "/e/研究生/研一资料文件/研究生课程/robot updata/p2/p2.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p2.exe" +Executable File_Debug64 = "/e/研究生/研一资料文件/研究生课程/robot updata/p2/p2.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p2.exe" +Executable File_Release64 = "/e/研究生/研一资料文件/研究生课程/robot updata/p2/p2.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p3/p3.c b/code.c/zhangyuxiao/p3/p3.c new file mode 100644 index 0000000..0ff790b --- /dev/null +++ b/code.c/zhangyuxiao/p3/p3.c @@ -0,0 +1,25 @@ +# include +int main() +{ + float prRed,prGreen,pHit,pMiss,p1,p2,sum1,sum2; + float poRed,poGreen; + float poRed1,poGreen1; + float p11,p21; + prRed=0.2, prGreen=0.2,pHit=0.6,pMiss=0.2; + p1=prRed*pHit; + p2=prGreen*pMiss; + sum1=p1*2.0+ p2*3.0; + poRed=p1/sum1; + poGreen=p2/sum1; + printf("z='red'\n"); + printf("%f %f %f %f %f\n",poGreen,poRed,poRed,poGreen,poGreen); + p11=prRed*pMiss; + p21=prGreen*pHit; + sum2=p11*2.0+ p21*3.0; + poRed1=p11/sum2; + poGreen1=p21/sum2; + printf("z='green'\n"); + printf("%f %f %f %f %f\n",poGreen1,poRed1,poRed1,poGreen1,poGreen1); + getchar(); + return 0; +} diff --git a/code.c/zhangyuxiao/p3/p3.cws b/code.c/zhangyuxiao/p3/p3.cws new file mode 100644 index 0000000..0a7ea51 --- /dev/null +++ b/code.c/zhangyuxiao/p3/p3.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/f/移动机器人作业以及PPT/robot updata/p3/p3.cws" +CVI Dir = "/d/labwindows cvi" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p3.prj" +Drag Bar Left = 160 +Window Top = 30 +Window Left = 26 +Window Bottom = 532 +Window Right = 800 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 143 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/f/移动机器人作业以及PPT/robot updata/p3/p3.c" +File Type = "CSource" +Disk Date = 3594784210 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,4,4,4,80,81,81,0,0,195,0,0,0,0,0,37,0,0,17,98,400,600,0,0," + +[Tab Order] +Tab 0001 = "/f/移动机器人作业以及PPT/robot updata/p3/p3.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p3/p3.exe b/code.c/zhangyuxiao/p3/p3.exe new file mode 100644 index 0000000..4777401 Binary files /dev/null and b/code.c/zhangyuxiao/p3/p3.exe differ diff --git a/code.c/zhangyuxiao/p3/p3.prj b/code.c/zhangyuxiao/p3/p3.prj new file mode 100644 index 0000000..b1150d2 --- /dev/null +++ b/code.c/zhangyuxiao/p3/p3.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/f/移动机器人作业以及PPT/robot updata/p3/p3.prj" +CVI Dir = "/d/labwindows cvi" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p3.c" +Path = "/f/移动机器人作业以及PPT/robot updata/p3/p3.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p3 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p3" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p3.exe" +Executable File_Debug = "/f/移动机器人作业以及PPT/robot updata/p3/p3.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p3.exe" +Executable File_Release = "/f/移动机器人作业以及PPT/robot updata/p3/p3.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p3.exe" +Executable File_Debug64 = "/f/移动机器人作业以及PPT/robot updata/p3/p3.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p3.exe" +Executable File_Release64 = "/f/移动机器人作业以及PPT/robot updata/p3/p3.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p4/p4.c b/code.c/zhangyuxiao/p4/p4.c new file mode 100644 index 0000000..404da52 --- /dev/null +++ b/code.c/zhangyuxiao/p4/p4.c @@ -0,0 +1,19 @@ +# include +int main() +{ + float p[5]={1.0/9.0,1.0/3.0,1.0/3.0,1.0/9.0,1.0/9.0}; // 左移一位即为逆序输出 + int i; + for(i=0;i<=4;i++) + { + printf("%f ",p[i]); + } + + printf("\n"); + for(i=4;i>=0;i--) + { + printf("%f ",p[i]); + } + getchar(); + return 0; +} + diff --git a/code.c/zhangyuxiao/p4/p4.cws b/code.c/zhangyuxiao/p4/p4.cws new file mode 100644 index 0000000..3dfc48e --- /dev/null +++ b/code.c/zhangyuxiao/p4/p4.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/d/GitHub/robot/code.c/zhangyuxiao/p4/p4.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p4.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 26 +Window Bottom = 532 +Window Right = 816 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/d/GitHub/robot/code.c/zhangyuxiao/p4/p4.c" +File Type = "CSource" +Disk Date = 3594786948 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,6,6,6,0,2,2,0,0,101,0,0,0,0,0,21,0,0,10,28,400,600,0,0," + +[Tab Order] +Tab 0001 = "/d/GitHub/robot/code.c/zhangyuxiao/p4/p4.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p4/p4.exe b/code.c/zhangyuxiao/p4/p4.exe new file mode 100644 index 0000000..b60c4c6 Binary files /dev/null and b/code.c/zhangyuxiao/p4/p4.exe differ diff --git a/code.c/zhangyuxiao/p4/p4.prj b/code.c/zhangyuxiao/p4/p4.prj new file mode 100644 index 0000000..f53eda2 --- /dev/null +++ b/code.c/zhangyuxiao/p4/p4.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/f/移动机器人作业以及PPT/robot updata/p4/p4.prj" +CVI Dir = "/d/labwindows cvi" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p4.c" +Path = "/f/移动机器人作业以及PPT/robot updata/p4/p4.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p4 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p4" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p4.exe" +Executable File_Debug = "/f/移动机器人作业以及PPT/robot updata/p4/p4.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p4.exe" +Executable File_Release = "/f/移动机器人作业以及PPT/robot updata/p4/p4.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p4.exe" +Executable File_Debug64 = "/f/移动机器人作业以及PPT/robot updata/p4/p4.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p4.exe" +Executable File_Release64 = "/f/移动机器人作业以及PPT/robot updata/p4/p4.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p5/p5.c b/code.c/zhangyuxiao/p5/p5.c new file mode 100644 index 0000000..7c32e3f --- /dev/null +++ b/code.c/zhangyuxiao/p5/p5.c @@ -0,0 +1,30 @@ +# include +int main() +{ + int i; + float p[5]={0.0,0.5,0.0,0.5,0.0}; + float p1[5]={0.0,0.0,0.0,0.0,0.0}; + float pExact,pOvershoot,pUndershoot; + pExact=0.8; + pOvershoot=0.1; + pUndershoot=0.1; + printf("原本的输入数组p:\n"); + for(i=0;i<5;i++) + { + printf("%f ",p[i]); + } + printf("\n"); + printf("移位后的输入数组p1:\n"); + for(i=0;i<5;i++) + { + p1[2]=p[1]*pOvershoot; + p1[3]=p[1]*pExact; + p1[4]=p[1]*pOvershoot+p[3]*pUndershoot; + p1[0]=p[3]*pExact; + p1[1]=p[3]*pUndershoot; + p1[2]=p[1]*pOvershoot; + printf("%f ",p1[i]); + } + getchar(); + return 0; +} diff --git a/code.c/zhangyuxiao/p5/p5.cws b/code.c/zhangyuxiao/p5/p5.cws new file mode 100644 index 0000000..2052343 --- /dev/null +++ b/code.c/zhangyuxiao/p5/p5.cws @@ -0,0 +1,143 @@ +[Workspace Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p5/p5.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p5.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 824 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 0 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/h/移动机器人作业以及PPT/robot updata/p5/p5.c" +File Type = "CSource" +Disk Date = 3594802432 +In Projects = "1," +Window Top = 30 +Source Window State = "1,17,26,17,4,36,4,0,3,0,0,0,0,0,0,0,2,0,26,36,400,600,1,0," + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p5/p5.exe b/code.c/zhangyuxiao/p5/p5.exe new file mode 100644 index 0000000..f596680 Binary files /dev/null and b/code.c/zhangyuxiao/p5/p5.exe differ diff --git a/code.c/zhangyuxiao/p5/p5.prj b/code.c/zhangyuxiao/p5/p5.prj new file mode 100644 index 0000000..b5480ef --- /dev/null +++ b/code.c/zhangyuxiao/p5/p5.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/f/移动机器人作业以及PPT/robot updata/p5/p5.prj" +CVI Dir = "/d/labwindows cvi" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p5.c" +Path = "/f/移动机器人作业以及PPT/robot updata/p5/p5.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p5 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p5" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p5.exe" +Executable File_Debug = "/f/移动机器人作业以及PPT/robot updata/p5/p5.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p5.exe" +Executable File_Release = "/f/移动机器人作业以及PPT/robot updata/p5/p5.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p5.exe" +Executable File_Debug64 = "/f/移动机器人作业以及PPT/robot updata/p5/p5.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p5.exe" +Executable File_Release64 = "/f/移动机器人作业以及PPT/robot updata/p5/p5.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 + diff --git a/code.c/zhangyuxiao/p6/p6.c b/code.c/zhangyuxiao/p6/p6.c new file mode 100644 index 0000000..1f60319 --- /dev/null +++ b/code.c/zhangyuxiao/p6/p6.c @@ -0,0 +1,46 @@ +# include +int main() +{ + float p[5]={1.0,0.0,0.0,0.0,0.0}; + float p1[5]={0.0,0.0,0.0,0.0,0.0}; + float p2[5]={0.0,0.0,0.0,0.0,0.0}; + float p3[5]={0.0,0.0,0.0,0.0,0.0}; + float pExact,pOvershoot,pUndershoot; + pExact=0.8; + pOvershoot=0.1; + pUndershoot=0.1; + printf("第一次移动的数组:\n"); + for(int i=0;i<5;i++) + { + p1[1]=p[0]*pOvershoot; + p1[2]=p[0]*pExact; + p1[3]=p[0]*pOvershoot; + p1[4]=p[1]*pExact; + p1[0]=p[3]*pUndershoot; + printf("%f ",p1[i]); + } + printf("\n"); + printf("第二次移动的数组:\n"); + for(int i=0;i<5;i++) + { + p2[2]=p1[1]*pOvershoot; + p2[3]=p1[1]*pExact+ p1[2]*pOvershoot; + p2[4]=p1[1]*pOvershoot+p1[2]*pExact+p1[3]*pOvershoot; + p2[0]=p1[2]*pUndershoot+p1[3]*pExact; + p2[1]=p1[3]*pOvershoot; + printf("%f ",p2[i]); + } + printf("\n"); + printf("第三次移动的数组:\n"); + for(int i=0;i<5;i++) + { + p3[1]=p2[0]*pOvershoot+p2[3]*pUndershoot+p2[4]*pExact; + p3[2]=p2[0]*pExact+p2[1]*pUndershoot+p2[4]*pUndershoot; + p3[3]=p2[0]*pOvershoot+p2[1]*pExact+p2[2]*pOvershoot; + p3[4]=p2[1]*pOvershoot+p2[2]*pExact+p2[3]*pOvershoot; + p3[0]=p2[2]*pUndershoot+p2[3]*pExact+p2[4]*pUndershoot; + printf("%f ",p3[i]); + } + getchar(); + return 0; +} diff --git a/code.c/zhangyuxiao/p6/p6.cws b/code.c/zhangyuxiao/p6/p6.cws new file mode 100644 index 0000000..9319c93 --- /dev/null +++ b/code.c/zhangyuxiao/p6/p6.cws @@ -0,0 +1,146 @@ +[Workspace Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p6/p6.cws" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Projects = 1 +Active Project = 1 +Project 0001 = "p6.prj" +Drag Bar Left = 306 +Window Top = 30 +Window Left = 34 +Window Bottom = 532 +Window Right = 824 +Maximized = True +Maximized Children = True +Max32 Number Of Errors = 20 +Track Include File Dependencies = True +Prompt For Missing Includes = True +Stop On First Error File = False +Bring Up Err Win At Start = True +Bring Up Err Win For Errors = False +Save Changes Before Running = "Always" +Save Changes Before Compiling = "Always" +Hide Windows = False +Break At First Statement = False +Sort Type = "File Name" +Number of Opened Files = 1 +Window Confinement Region Enabled = True +MainColumnWidth = 289 +FileDateColumnWidth = 70 +FileSizeColumnWidth = 70 + +[Project Header 0001] +Version = 1700 +Don't Update DistKit = False +Platform Code = 4 +Build Configuration = "Debug" +Warn User If Debugging Release = 1 +Batch Build Release = False +Batch Build Debug = False + +[File 0001] +Path = "/h/移动机器人作业以及PPT/robot updata/p6/p6.c" +File Type = "CSource" +Disk Date = 3594805492 +In Projects = "1," +Window Z-Order = 1 +Source Window State = "1,30,30,30,8,30,8,0,0,101,0,46,0,46,0,21,0,0,33,72,400,600,0,0," + +[Tab Order] +Tab 0001 = "/h/移动机器人作业以及PPT/robot updata/p6/p6.c" + +[Default Build Config 0001 Debug] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Debug64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Default Build Config 0001 Release64] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Batch Build = False +Profile = "Disabled" +Debugging Level = "Standard" +Execution Trace = "Disabled" +Command Line Args = "" +Working Directory = "" +Environment Options = "" +External Process Path = "" + +[Build Dependencies 0001] +Number of Dependencies = 0 + +[Build Options 0001] +Generate Browse Info = True +Enable Uninitialized Locals Runtime Warning = True +Execution Trace = "Disabled" +Profile = "Disabled" +Debugging Level = "Standard" +Break On Library Errors = True +Break On First Chance Exceptions = False + +[Execution Target 0001] +Execution Target Address = "Local desktop computer" +Execution Target Port = 0 +Execution Target Type = 0 + +[SCC Options 0001] +Use global settings = True +SCC Provider = "" +SCC Project = "" +Local Path = "" +Auxiliary Path = "" +Perform Same Action For .h File As For .uir File = "Ask" +Perform Same Action For .cds File As For .prj File = "Ask" +Username = "" +Comment = "" +Use Default Username = False +Use Default Comment = False +Suppress CVI Error Messages = False +Always show confirmation dialog = True + +[DLL Debugging Support 0001] +External Process Path = "" + +[Command Line Args 0001] +Command Line Args = "" +Working Directory = "" +Environment Options = "" + diff --git a/code.c/zhangyuxiao/p6/p6.exe b/code.c/zhangyuxiao/p6/p6.exe new file mode 100644 index 0000000..f45ad1f Binary files /dev/null and b/code.c/zhangyuxiao/p6/p6.exe differ diff --git a/code.c/zhangyuxiao/p6/p6.prj b/code.c/zhangyuxiao/p6/p6.prj new file mode 100644 index 0000000..190ed6c --- /dev/null +++ b/code.c/zhangyuxiao/p6/p6.prj @@ -0,0 +1,405 @@ +[Project Header] +Version = 1700 +Pathname = "/h/移动机器人作业以及PPT/robot updata/p6/p6.prj" +CVI Dir = "/d/labwindows/c/cvi2017" +CVI Shared Dir = "/D/Labwindows/C/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" +VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" +IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" +VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" +Number of Files = 1 +Target Type = "Executable" +Flags = 2064 +Copied From Locked InstrDrv Directory = False +Copied from VXIPNP Directory = False +Locked InstrDrv Name = "" +Don't Display Deploy InstrDrv Dialog = False + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Library Files Folder Not Added Yet = True +Folder 0 = "Source Files" +FolderEx 0 = "Source Files" + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "p6.c" +Path = "/h/移动机器人作业以及PPT/robot updata/p6/p6.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" +Folder Id = 0 + +[Custom Build Configs] +Num Custom Build Configs = 0 + +[Default Build Config Debug] +Config Name = "Debug" +Is 64-Bit = False +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Numeric File Version = "1,0,0,0" +Numeric Prod Version = "1,0,0,0" +Comments = "" +Comments Ex = "" +Company Name = "" +Company Name Ex = "%company" +File Description = "p6 (Debug x86)" +File Description Ex = "%application (%rel_dbg %arch)" +File Version = "1.0" +File Version Ex = "%f1.%f2" +Internal Name = "" +Internal Name Ex = "%basename" +Legal Copyright = "Copyright 2017" +Legal Copyright Ex = "Copyright %company %Y" +Legal Trademarks = "" +Legal Trademarks Ex = "" +Original Filename = "" +Original Filename Ex = "%filename" +Private Build = "" +Private Build Ex = "" +Product Name = " p6" +Product Name Ex = "%company %application" +Product Version = "1.0" +Product Version Ex = "%p1.%p2" +Special Build = "" +Special Build Ex = "" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release] +Config Name = "Release" +Is 64-Bit = False +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Debug64] +Config Name = "Debug64" +Is 64-Bit = True +Is Release = False +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Default Build Config Release64] +Config Name = "Release64" +Is 64-Bit = True +Is Release = True +Default Calling Convention = "cdecl" +Optimization Level = "Optimize for speed (level 2)" +Require Prototypes = True +Show Warning IDs in Build Output = False +Selected Warning Level = "Common" +Warning List None = "" +Warning List Common = "" +Warning List Extended = "" +Warning List All = "" +Warning Mode = 0 +Enable Unreferenced Identifiers Warning = True +Enable Pointer Mismatch Warning = True +Enable Unreachable Code Warning = True +Enable Assignment In Conditional Warning = True +Uninitialized Locals Compile Warning = "Aggressive" +Require Return Values = True +Enable C99 Extensions = True +Enable OpenMP Extensions = False +Stack Size = 250000 +Stack Reserve = 1048576 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" +Sign = False +Sign Store = "" +Sign Certificate = "" +Sign Timestamp URL = "" +Sign URL = "" +Manifest Embed = False +Icon File Is Rel = False +Icon File = "" +Application Title = "" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Runtime Support = "Full Runtime Support" +Runtime Binding = "Shared" +Embed Project .UIRs = False +Generate Map File = False +Embed Timestamp = True +Create Console Application = False +Using LoadExternalModule = False +DLL Exports = "Include File Symbols" +Register ActiveX Server = False +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = False +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +Enable C99 Extensions = True +Uninitialized Locals Compile Warning = "Disabled" +Precompile Prefix Header = False +Prefix Header File = "" + +[Run Options] +Stack Size = 250000 +Stack Commit = 4096 +Image Base Address = 4194304 +Image Base Address x64 = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "p6.exe" +Executable File_Debug = "/h/移动机器人作业以及PPT/robot updata/p6/p6.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "p6.exe" +Executable File_Release = "/h/移动机器人作业以及PPT/robot updata/p6/p6.exe" +Executable File_Debug64 Is Rel = True +Executable File_Debug64 Rel To = "Project" +Executable File_Debug64 Rel Path = "p6.exe" +Executable File_Debug64 = "/h/移动机器人作业以及PPT/robot updata/p6/p6.exe" +Executable File_Release64 Is Rel = True +Executable File_Release64 Rel To = "Project" +Executable File_Release64 Rel Path = "p6.exe" +Executable File_Release64 = "/h/移动机器人作业以及PPT/robot updata/p6/p6.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Custom Directory to Copy DLL Is Rel = False +Custom Directory to Copy DLL = "" +Generate Source Documentation = "None" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +TLB Help Style = "HLP" +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 +tpcEnabled x64 = 0 +tpcOverrideEnvironment x64 = 0 +