diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.sdf b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.sdf new file mode 100644 index 0000000..5f9b9bd Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.sdf differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.sln b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.sln new file mode 100644 index 0000000..6d69d66 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.sln @@ -0,0 +1,64 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 typedef的使用", "01 typedef的使用\01 typedef的使用.vcxproj", "{8D377781-1E7A-4638-AC15-27FE79E7DD64}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 void的使用", "02 void的使用\02 void的使用.vcxproj", "{2FC9AD63-0AAF-42A3-9C32-DC1DFAFA384E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 sizeof的使用", "03 sizeof的使用\03 sizeof的使用.vcxproj", "{B28D4540-4C90-4696-8329-E35D33AD7C73}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 变量的修改方式", "04 变量的修改方式\04 变量的修改方式.vcxproj", "{B4A6B019-2A74-4906-B51C-2DF9640A34FF}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 栈区", "05 栈区\05 栈区.vcxproj", "{D62C5EF0-E780-45BE-A246-7BA6B57B3828}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06 堆区", "06 堆区\06 堆区.vcxproj", "{170B6EB3-9A42-4B8D-B8A7-27FD6C6FA405}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "07 static和extern区别", "07 static和extern区别\07 static和extern区别.vcxproj", "{97802D51-B18D-4EF1-8A88-58B1041ABE90}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "08 const修饰的全局变量和局部变量", "08 const修饰的全局变量和局部变量\08 const修饰的全局变量和局部变量.vcxproj", "{D9D136CF-22E3-4139-9B16-18323C8073CD}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8D377781-1E7A-4638-AC15-27FE79E7DD64}.Debug|Win32.ActiveCfg = Debug|Win32 + {8D377781-1E7A-4638-AC15-27FE79E7DD64}.Debug|Win32.Build.0 = Debug|Win32 + {8D377781-1E7A-4638-AC15-27FE79E7DD64}.Release|Win32.ActiveCfg = Release|Win32 + {8D377781-1E7A-4638-AC15-27FE79E7DD64}.Release|Win32.Build.0 = Release|Win32 + {2FC9AD63-0AAF-42A3-9C32-DC1DFAFA384E}.Debug|Win32.ActiveCfg = Debug|Win32 + {2FC9AD63-0AAF-42A3-9C32-DC1DFAFA384E}.Debug|Win32.Build.0 = Debug|Win32 + {2FC9AD63-0AAF-42A3-9C32-DC1DFAFA384E}.Release|Win32.ActiveCfg = Release|Win32 + {2FC9AD63-0AAF-42A3-9C32-DC1DFAFA384E}.Release|Win32.Build.0 = Release|Win32 + {B28D4540-4C90-4696-8329-E35D33AD7C73}.Debug|Win32.ActiveCfg = Debug|Win32 + {B28D4540-4C90-4696-8329-E35D33AD7C73}.Debug|Win32.Build.0 = Debug|Win32 + {B28D4540-4C90-4696-8329-E35D33AD7C73}.Release|Win32.ActiveCfg = Release|Win32 + {B28D4540-4C90-4696-8329-E35D33AD7C73}.Release|Win32.Build.0 = Release|Win32 + {B4A6B019-2A74-4906-B51C-2DF9640A34FF}.Debug|Win32.ActiveCfg = Debug|Win32 + {B4A6B019-2A74-4906-B51C-2DF9640A34FF}.Debug|Win32.Build.0 = Debug|Win32 + {B4A6B019-2A74-4906-B51C-2DF9640A34FF}.Release|Win32.ActiveCfg = Release|Win32 + {B4A6B019-2A74-4906-B51C-2DF9640A34FF}.Release|Win32.Build.0 = Release|Win32 + {D62C5EF0-E780-45BE-A246-7BA6B57B3828}.Debug|Win32.ActiveCfg = Debug|Win32 + {D62C5EF0-E780-45BE-A246-7BA6B57B3828}.Debug|Win32.Build.0 = Debug|Win32 + {D62C5EF0-E780-45BE-A246-7BA6B57B3828}.Release|Win32.ActiveCfg = Release|Win32 + {D62C5EF0-E780-45BE-A246-7BA6B57B3828}.Release|Win32.Build.0 = Release|Win32 + {170B6EB3-9A42-4B8D-B8A7-27FD6C6FA405}.Debug|Win32.ActiveCfg = Debug|Win32 + {170B6EB3-9A42-4B8D-B8A7-27FD6C6FA405}.Debug|Win32.Build.0 = Debug|Win32 + {170B6EB3-9A42-4B8D-B8A7-27FD6C6FA405}.Release|Win32.ActiveCfg = Release|Win32 + {170B6EB3-9A42-4B8D-B8A7-27FD6C6FA405}.Release|Win32.Build.0 = Release|Win32 + {97802D51-B18D-4EF1-8A88-58B1041ABE90}.Debug|Win32.ActiveCfg = Debug|Win32 + {97802D51-B18D-4EF1-8A88-58B1041ABE90}.Debug|Win32.Build.0 = Debug|Win32 + {97802D51-B18D-4EF1-8A88-58B1041ABE90}.Release|Win32.ActiveCfg = Release|Win32 + {97802D51-B18D-4EF1-8A88-58B1041ABE90}.Release|Win32.Build.0 = Release|Win32 + {D9D136CF-22E3-4139-9B16-18323C8073CD}.Debug|Win32.ActiveCfg = Debug|Win32 + {D9D136CF-22E3-4139-9B16-18323C8073CD}.Debug|Win32.Build.0 = Debug|Win32 + {D9D136CF-22E3-4139-9B16-18323C8073CD}.Release|Win32.ActiveCfg = Release|Win32 + {D9D136CF-22E3-4139-9B16-18323C8073CD}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.v12.suo b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.v12.suo new file mode 100644 index 0000000..7bdd198 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用.v12.suo differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.c b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.c new file mode 100644 index 0000000..5bf6b8c --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.c @@ -0,0 +1,64 @@ +//#define _CRT_SECURE_NO_WARNINGS //VSʹôͳ⺯,꣬һţC4996 +#include // std ׼ i input o output +#include // strcpy strcmp strcat strstr +#include // malloc free + + +//1typedefʹ 򻯽ṹؼ struct +//struct Person +//{ +// char name[64]; +// int age; +//}; +//typedef struct Person myPerson; + +//Ҫ; +//﷨ typedef ԭ +typedef struct Person +{ + char name[64]; + int age; +}myPerson; + +void test01() +{ + struct Person p1 = { "", 19 }; + + myPerson p2 = { "", 20 }; +} + + +// 2 +void test02() +{ + //char * p1, p2; //p1char * p2 char + + + typedef char * PCHAR; + PCHAR p1, p2; + + + char *p3, *p4; // p3 p4char * +} + + +//3ߴֲ +typedef int MYINT; //typedef long long MYINT; ֻҪ滻 long long Ϳ +void test03() +{ + MYINT a = 10; + + MYINT a2 = 10; +} + + +// +int main1(){ + + + + + system("pause"); // ͣ + + return EXIT_SUCCESS; // ˳ֵ 0 +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.vcxproj b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.vcxproj new file mode 100644 index 0000000..6df93c9 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.vcxproj @@ -0,0 +1,87 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {8D377781-1E7A-4638-AC15-27FE79E7DD64} + Win32Proj + My01typedef的使用 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.vcxproj.filters new file mode 100644 index 0000000..eb2d53f --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/01 typedef的使用.vcxproj.filters @@ -0,0 +1,25 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.Build.CppClean.log b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.Build.CppClean.log new file mode 100644 index 0000000..fef77b9 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\vc120.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\vc120.idb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.obj +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\01 typedef的使用.ilk +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\01 typedef的使用.exe +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\01 typedef的使用.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.tlog\link.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.tlog\link.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\debug\01 typedef的使用.tlog\link.write.1.tlog diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.log b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.log new file mode 100644 index 0000000..0c217e9 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.log @@ -0,0 +1,6 @@ + 01 typedef的使用.c +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\01 typedef的使用.c(41): warning C4101: “p4”: 未引用的局部变量 +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\01 typedef的使用.c(38): warning C4101: “p2”: 未引用的局部变量 +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\01 typedef的使用.c(41): warning C4101: “p3”: 未引用的局部变量 +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\01 typedef的使用\01 typedef的使用.c(38): warning C4101: “p1”: 未引用的局部变量 + 01 typedef的使用.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\01 typedef的使用.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.obj b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.obj new file mode 100644 index 0000000..fec834e Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/01 typedef的使用.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/01 typedef的使用.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/01 typedef的使用.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8263e69 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b93100c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/cl.command.1.tlog new file mode 100644 index 0000000..563e4d9 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.command.1.tlog new file mode 100644 index 0000000..62154fd Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.read.1.tlog new file mode 100644 index 0000000..77a4e86 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.write.1.tlog new file mode 100644 index 0000000..22e82cd Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/01 typedef的使用.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/test.obj b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/test.obj new file mode 100644 index 0000000..4eb7fb8 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/test.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/vc120.idb new file mode 100644 index 0000000..130a9ab Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/vc120.pdb new file mode 100644 index 0000000..f7472bb Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/test.cpp b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/test.cpp new file mode 100644 index 0000000..d62e6f7 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/01 typedef的使用/test.cpp @@ -0,0 +1,16 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +using namespace std; + +int main(){ + + typedef char * PCHAR; + PCHAR p1, p2; + + printf("p1 Ϊ %s \n", typeid(p1).name()); + + printf("p2 Ϊ %s \n", typeid(p2).name()); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.c b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.c new file mode 100644 index 0000000..218d4c5 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.c @@ -0,0 +1,58 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1DzԴ +void test01() +{ + //void a = 10; //ֱӱΪ֪aڴռ +} + + +//2޶ֵ +void func() +{ + //return 10; +} + +void test02() +{ + //func(); + //printf("%d\n", func()); +} + + +//3޶б +int func2(void) +{ + return 10; +} +void test03() +{ + //printf("%d\n", func2(10)); +} + + +//4void * ָ +void test04() +{ + void * p = NULL; + + int * pInt = NULL; + char * pChar = NULL; + + //pChar = (char *)pInt; + pChar = p; //ָ ԲҪǿתͿԸȺ߸ֵ + + printf("size of void * = %d\n", sizeof(p)); + +} + +int main(){ + //test02(); + //test03(); + test04(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.vcxproj b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.vcxproj new file mode 100644 index 0000000..99e64f4 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {2FC9AD63-0AAF-42A3-9C32-DC1DFAFA384E} + Win32Proj + My02void的使用 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.vcxproj.filters new file mode 100644 index 0000000..d990fa7 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/02 void的使用.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.Build.CppClean.log b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.Build.CppClean.log new file mode 100644 index 0000000..22cf398 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\vc120.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\vc120.idb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.obj +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\02 void的使用.ilk +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\02 void的使用.exe +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\02 void的使用.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.tlog\link.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.tlog\link.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\02 void的使用\debug\02 void的使用.tlog\link.write.1.tlog diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.log b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.log new file mode 100644 index 0000000..f3b2514 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.log @@ -0,0 +1,2 @@ + 02 void的使用.c + 02 void的使用.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\02 void的使用.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.obj b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.obj new file mode 100644 index 0000000..69348a5 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/02 void的使用.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/02 void的使用.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/02 void的使用.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2458087 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/CL.write.1.tlog new file mode 100644 index 0000000..28ccb2c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/cl.command.1.tlog new file mode 100644 index 0000000..5394302 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.command.1.tlog new file mode 100644 index 0000000..05cb416 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.read.1.tlog new file mode 100644 index 0000000..6ed7910 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.write.1.tlog new file mode 100644 index 0000000..e59014c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/02 void的使用.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/vc120.idb new file mode 100644 index 0000000..35ce1ea Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/vc120.pdb new file mode 100644 index 0000000..a7fb1a5 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/02 void的使用/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.c b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.c new file mode 100644 index 0000000..3e50532 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.c @@ -0,0 +1,68 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1sizeofʣ Dzһ Ǻֻһ+-*/ +void test01() +{ + // sizeof()ȥʹãǶڱԲ() + printf("size of int = %d\n", sizeof(int)); + + double d = 3.14; + + printf("size of d = %d\n", sizeof d ); + +} + +//2sizeofķֵʲô unsigned int ޷ +void test02() +{ + //unsigned int a = 10; + //if (a - 20 > 0) //unsigned intint㣬ὫͶתΪunsigned int + //{ + // printf(" 0 \n"); + //} + //else + //{ + // printf("С 0 \n"); + //} + + + if ( sizeof(int) - 5 > 0 ) + { + printf(" 0 %u \n", sizeof(int)-5); + } + else + { + printf("С 0 \n"); + } + +} + + +//3sizeofͳ鳤 +//Ϊʱ򣬻˻Ϊָ룬ָеһԪ +void calculateArray( int arr[] ) +{ + printf("arr鳤ȣ %d\n", sizeof(arr)); +} + +void test03() +{ + int arr[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; + + //printf("arr鳤ȣ %d\n", sizeof(arr)); + + calculateArray(arr); +} + +int main(){ + //test01(); + //test02(); + test03(); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.vcxproj b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.vcxproj new file mode 100644 index 0000000..d7f4321 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {B28D4540-4C90-4696-8329-E35D33AD7C73} + Win32Proj + My03sizeof的使用 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.vcxproj.filters new file mode 100644 index 0000000..6620ecf --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/03 sizeof的使用.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.log b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.log new file mode 100644 index 0000000..387a103 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.log @@ -0,0 +1,2 @@ + 03 sizeof的使用.c + 03 sizeof的使用.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\03 sizeof的使用.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.obj b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.obj new file mode 100644 index 0000000..6021494 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/03 sizeof的使用.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/03 sizeof的使用.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/03 sizeof的使用.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4ab064a Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/CL.write.1.tlog new file mode 100644 index 0000000..df4979c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/cl.command.1.tlog new file mode 100644 index 0000000..a807433 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.command.1.tlog new file mode 100644 index 0000000..425933f Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.read.1.tlog new file mode 100644 index 0000000..90ffb31 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.write.1.tlog new file mode 100644 index 0000000..e9546b5 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/03 sizeof的使用.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/vc120.idb new file mode 100644 index 0000000..fa8b0a4 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/vc120.pdb new file mode 100644 index 0000000..1c991fb Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/03 sizeof的使用/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.c b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.c new file mode 100644 index 0000000..f0b5eb2 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.c @@ -0,0 +1,56 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +void test01() +{ + int a = 10; + //ֱ޸ + a = 20; + printf("a = %d\n", a); + //޸ + int * p = &a; + *p = 100; + + printf("a = %d\n", a); + +} + +//Զ +struct Person +{ + char a; // 0 ~ 3 + int b; // 4 ~ 7 + char c; // 8 ~ 11 + int d; // 12 ~ 15 +}; +void test02() +{ + struct Person p1 = { 'a', 10, 'b', 20 }; + + //ֱ޸ d + p1.d = 1000; + + //޸ d + struct Person * p = &p1; +// p->d = 2000; + + //printf("%d\n", p); + //printf("%d\n", p+1); + + char * pPerson = p; + + printf("d = %d\n", *(int*)(pPerson + 12)); + printf("d = %d\n", *(int*)((int*)pPerson +3) ); +} + + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.vcxproj b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.vcxproj new file mode 100644 index 0000000..01ed1d0 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {B4A6B019-2A74-4906-B51C-2DF9640A34FF} + Win32Proj + My04变量的修改方式 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.vcxproj.filters new file mode 100644 index 0000000..5243c28 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/04 变量的修改方式.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.log b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.log new file mode 100644 index 0000000..a840ce1 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.log @@ -0,0 +1,3 @@ + 04 变量的修改方式.c +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\04 变量的修改方式\04 变量的修改方式.c(43): warning C4133: “初始化”: 从“Person *”到“char *”的类型不兼容 + 04 变量的修改方式.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\04 变量的修改方式.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.obj b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.obj new file mode 100644 index 0000000..a022ed3 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/04 变量的修改方式.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/04 变量的修改方式.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/04 变量的修改方式.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3e335c3 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/CL.write.1.tlog new file mode 100644 index 0000000..a7d6f5b Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/cl.command.1.tlog new file mode 100644 index 0000000..c4a1175 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.command.1.tlog new file mode 100644 index 0000000..36a9ffc Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.read.1.tlog new file mode 100644 index 0000000..7d636a3 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.write.1.tlog new file mode 100644 index 0000000..ff9fada Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/04 变量的修改方式.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/vc120.idb new file mode 100644 index 0000000..b180ff7 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/vc120.pdb new file mode 100644 index 0000000..21fa1a3 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/04 变量的修改方式/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.c b/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.c new file mode 100644 index 0000000..69aa00c --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.c @@ -0,0 +1,42 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//ջ ע Ҫؾֲĵַ +int * func() +{ + int a = 10; + return &a; +} + +void test01() +{ + int * p = func(); + + //ѾҪˣΪaڴѾͷˣûȨȥڴ + printf("a = %d\n", *p); + printf("a = %d\n", *p); +} + + +char * getString() +{ + char str[] = "hello world"; + return str; +} + +void test02() +{ + char * p = NULL; + p = getString(); + printf("%s\n", p); +} + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.vcxproj b/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.vcxproj new file mode 100644 index 0000000..fc863b1 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {D62C5EF0-E780-45BE-A246-7BA6B57B3828} + Win32Proj + My05栈区 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.vcxproj.filters new file mode 100644 index 0000000..f801f69 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/05 栈区/05 栈区.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.log b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.log new file mode 100644 index 0000000..a8c04af --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.log @@ -0,0 +1,4 @@ + 05 栈区.c +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\05 栈区\05 栈区.c(10): warning C4172: 返回局部变量或临时变量的地址 +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\05 栈区\05 栈区.c(26): warning C4172: 返回局部变量或临时变量的地址 + 05 栈区.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\05 栈区.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.obj b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.obj new file mode 100644 index 0000000..3e262f2 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/05 栈区.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/05 栈区.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/05 栈区.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/CL.read.1.tlog new file mode 100644 index 0000000..7f3192c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f858784 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/cl.command.1.tlog new file mode 100644 index 0000000..5b2c26a Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.command.1.tlog new file mode 100644 index 0000000..8be07f8 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.read.1.tlog new file mode 100644 index 0000000..a166f50 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.write.1.tlog new file mode 100644 index 0000000..6564d78 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/05 栈区.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/vc120.idb new file mode 100644 index 0000000..e4ce32a Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/vc120.pdb new file mode 100644 index 0000000..2fefa13 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/05 栈区/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.c b/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.c new file mode 100644 index 0000000..b1d64d8 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.c @@ -0,0 +1,92 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +int * getSpace() +{ + int * p = malloc(sizeof(int)* 5); + + if (p == NULL) + { + return NULL; + } + + for (int i = 0; i < 5;i++) + { + p[i] = i + 100; + } + return p; + +} + +void test01() +{ + int * p = getSpace(); + + for (int i = 0; i < 5;i++) + { + printf("%d\n", p[i]); + } + + //ֶڶݣǵֶͷ + free(p); + p = NULL; + +} + + +//ע +//ûиָڴ棬ָͬβеָ +void allocateSpace( char * pp ) +{ + char * temp = malloc(100); + if (temp == NULL) + { + return; + } + memset(temp, 0, 100); + strcpy(temp, "hello world"); + pp = temp; + +} + +void test02() +{ + char * p = NULL; + allocateSpace(p); + + printf("%s\n", p); +} + + +void allocateSpace2(char ** pp) +{ + char * temp = malloc(100); + memset(temp, 0, 100); + strcpy(temp, "hello world"); + *pp = temp; +} + +void test03() +{ + char * p = NULL; + + allocateSpace2(&p); + + printf("%s\n", p); + + free(p); + p = NULL; + +} + + + +int main(){ + //test01(); + //test02(); + test03(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.vcxproj b/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.vcxproj new file mode 100644 index 0000000..132d909 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {170B6EB3-9A42-4B8D-B8A7-27FD6C6FA405} + Win32Proj + My06堆区 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.vcxproj.filters new file mode 100644 index 0000000..e43896b --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/06 堆区/06 堆区.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.log b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.log new file mode 100644 index 0000000..6578599 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.log @@ -0,0 +1,2 @@ + 06 堆区.c + 06 堆区.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\06 堆区.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.obj b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.obj new file mode 100644 index 0000000..43fe0b1 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/06 堆区.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/06 堆区.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/06 堆区.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/CL.read.1.tlog new file mode 100644 index 0000000..c8dbacd Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/CL.write.1.tlog new file mode 100644 index 0000000..bd663c3 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d9843da Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.command.1.tlog new file mode 100644 index 0000000..fb1b149 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.read.1.tlog new file mode 100644 index 0000000..d8209e9 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.write.1.tlog new file mode 100644 index 0000000..f9735a2 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/06 堆区.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/vc120.idb new file mode 100644 index 0000000..a94aa01 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/vc120.pdb new file mode 100644 index 0000000..cff311a Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/06 堆区/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.c b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.c new file mode 100644 index 0000000..ebdb9f7 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.c @@ -0,0 +1,35 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1̬ +static int a = 10; //ص㣺ֻʼһΣڱ׶ξͷڴ棬ڲԣֻڵǰļʹ + +void test01() +{ + static int b = 20; //ֲ̬,ֻڵǰtest01 + + //a bһ +} + + +//2ȫֱ + +extern int g_a = 100; //C ȫֱǰؼ˹ؼ externⲿ + +void test02() +{ + extern int g_b;//߱ g_bⲿԱʹʱҪ + + printf("g_b = %d\n", g_b); + +} + +int main(){ + test02(); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.vcxproj b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.vcxproj new file mode 100644 index 0000000..be764be --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.vcxproj @@ -0,0 +1,87 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {97802D51-B18D-4EF1-8A88-58B1041ABE90} + Win32Proj + My07static和extern区别 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.vcxproj.filters new file mode 100644 index 0000000..8e860b8 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/07 static和extern区别.vcxproj.filters @@ -0,0 +1,25 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/07 static和extern区别.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/07 static和extern区别.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/07 static和extern区别.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/CL.read.1.tlog new file mode 100644 index 0000000..577222d Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/CL.write.1.tlog new file mode 100644 index 0000000..616dcfc Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/cl.command.1.tlog new file mode 100644 index 0000000..4b98796 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.command.1.tlog new file mode 100644 index 0000000..972dc7a Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.read.1.tlog new file mode 100644 index 0000000..9167247 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.write.1.tlog new file mode 100644 index 0000000..26439c1 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 stati.97802D51.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.Build.CppClean.log b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.Build.CppClean.log new file mode 100644 index 0000000..f0db090 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.Build.CppClean.log @@ -0,0 +1,15 @@ +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\vc120.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\vc120.idb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 static和extern区别.obj +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\test.obj +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\07 static和extern区别.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link-cvtres.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link-cvtres.write.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link-rc.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link-rc.write.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\07 static和extern区别\debug\07 stati.97802d51.tlog\link.write.1.tlog diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.log b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.log new file mode 100644 index 0000000..64a6933 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.log @@ -0,0 +1,4 @@ + test.c + 07 static和extern区别.c + 正在生成代码... + 07 static和extern区别.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\07 static和extern区别.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.obj b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.obj new file mode 100644 index 0000000..cf25eef Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/07 static和extern区别.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/test.obj b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/test.obj new file mode 100644 index 0000000..bd962d0 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/test.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/vc120.idb new file mode 100644 index 0000000..592afe8 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/vc120.pdb new file mode 100644 index 0000000..87dba2b Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/test.c b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/test.c new file mode 100644 index 0000000..00eec21 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/07 static和extern区别/test.c @@ -0,0 +1 @@ +int g_b= 1000; \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.c b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.c new file mode 100644 index 0000000..9cc9b31 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.c @@ -0,0 +1,62 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1constεȫֱ,ʹ﷨ͨʱܵıʧ +const int a = 10; //ڳ + +void test01() +{ + //a = 100; //ֱ޸ ʧ + + int * p = &a; + *p = 100; + + printf("%d\n", a); + +} + +//2constεľֲ +void test02() +{ + const int b = 10; //䵽ջ + //b = 100; //ֱ޸ʧܵ + + + //޸ ɹ + //C Ϊα + int * p = &b; + *p = 100; + printf("b = %d\n", b); + + //int a[b];//αDzԳʼ +} + + +//ַ +void test03() +{ + char * p1 = "hello world"; + char * p2 = "hello world"; + char * p3 = "hello world"; + + printf("%d\n", p1); + printf("%d\n", p2); + printf("%d\n", p3); + printf("%d\n", &"hello world"); + + + p1[0] = 'z'; //޸ַ + printf("%c\n", p1[0]); + +} + + +int main(){ + //test01(); + //test02(); + test03(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.vcxproj b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.vcxproj new file mode 100644 index 0000000..b52435b --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {D9D136CF-22E3-4139-9B16-18323C8073CD} + Win32Proj + My08const修饰的全局变量和局部变量 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.vcxproj.filters b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.vcxproj.filters new file mode 100644 index 0000000..8193c9a --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/08 const修饰的全局变量和局部变量.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/08 const修饰的全局变量和局部变量.lastbuildstate b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/08 const修饰的全局变量和局部变量.lastbuildstate new file mode 100644 index 0000000..f65b92e --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/08 const修饰的全局变量和局部变量.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\| diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/CL.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d9f173e Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/CL.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8a9fa11 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/cl.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d01c8b5 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.command.1.tlog b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.command.1.tlog new file mode 100644 index 0000000..1ba9747 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.command.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.read.1.tlog b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.read.1.tlog new file mode 100644 index 0000000..ed0eda2 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.read.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.write.1.tlog b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.write.1.tlog new file mode 100644 index 0000000..5aa8d9d Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const.D9D136CF.tlog/link.write.1.tlog differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.Build.CppClean.log b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.Build.CppClean.log new file mode 100644 index 0000000..cd28445 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\vc120.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\vc120.idb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const修饰的全局变量和局部变量.obj +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\08 const修饰的全局变量和局部变量.ilk +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\08 const修饰的全局变量和局部变量.exe +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\debug\08 const修饰的全局变量和局部变量.pdb +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const.d9d136cf.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const.d9d136cf.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const.d9d136cf.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const.d9d136cf.tlog\link.command.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const.d9d136cf.tlog\link.read.1.tlog +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\debug\08 const.d9d136cf.tlog\link.write.1.tlog diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.log b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.log new file mode 100644 index 0000000..55d8cc2 --- /dev/null +++ b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.log @@ -0,0 +1,4 @@ + 08 const修饰的全局变量和局部变量.c +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\08 const修饰的全局变量和局部变量.c(13): warning C4090: “初始化”: 不同的“const”限定符 +e:\0504\sendtostudent\day1_c\code\01 typedef的使用\08 const修饰的全局变量和局部变量\08 const修饰的全局变量和局部变量.c(29): warning C4090: “初始化”: 不同的“const”限定符 + 08 const修饰的全局变量和局部变量.vcxproj -> E:\0504\sendToStudent\Day1_C\Code\01 typedef的使用\Debug\08 const修饰的全局变量和局部变量.exe diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.obj b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.obj new file mode 100644 index 0000000..2726594 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/08 const修饰的全局变量和局部变量.obj differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/vc120.idb b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/vc120.idb new file mode 100644 index 0000000..f170c42 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/vc120.idb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/vc120.pdb b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/vc120.pdb new file mode 100644 index 0000000..41151a2 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/08 const修饰的全局变量和局部变量/Debug/vc120.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.exe new file mode 100644 index 0000000..8dcd0d3 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.ilk new file mode 100644 index 0000000..4f0d5ed Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.pdb new file mode 100644 index 0000000..9ac4048 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/01 typedef的使用.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.exe new file mode 100644 index 0000000..872961c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.ilk new file mode 100644 index 0000000..53e0356 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.pdb new file mode 100644 index 0000000..80210a8 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/02 void的使用.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.exe new file mode 100644 index 0000000..bbb3203 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.ilk new file mode 100644 index 0000000..4c87e59 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.pdb new file mode 100644 index 0000000..7f28b17 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/03 sizeof的使用.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.exe new file mode 100644 index 0000000..f129a58 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.ilk new file mode 100644 index 0000000..62a2aea Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.pdb new file mode 100644 index 0000000..babc722 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/04 变量的修改方式.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.exe new file mode 100644 index 0000000..6763d8a Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.ilk new file mode 100644 index 0000000..f849efe Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.pdb new file mode 100644 index 0000000..5527dc6 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/05 栈区.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.exe new file mode 100644 index 0000000..f0a919c Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.ilk new file mode 100644 index 0000000..5c06438 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.pdb new file mode 100644 index 0000000..3e79fbe Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/06 堆区.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.exe new file mode 100644 index 0000000..5cc1a90 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.ilk new file mode 100644 index 0000000..90ddda4 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.pdb new file mode 100644 index 0000000..0a80f30 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/07 static和extern区别.pdb differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.exe b/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.exe new file mode 100644 index 0000000..00336c0 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.exe differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.ilk b/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.ilk new file mode 100644 index 0000000..881cb80 Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.ilk differ diff --git a/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.pdb b/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.pdb new file mode 100644 index 0000000..575558d Binary files /dev/null and b/C语言提高/days01/Code/01 typedef的使用/Debug/08 const修饰的全局变量和局部变量.pdb differ diff --git a/C语言提高/days01/Doc/C高级编程讲义.doc b/C语言提高/days01/Doc/C高级编程讲义.doc new file mode 100644 index 0000000..10f4d1a Binary files /dev/null and b/C语言提高/days01/Doc/C高级编程讲义.doc differ diff --git a/C语言提高/days01/Doc/Day1笔记.docx b/C语言提高/days01/Doc/Day1笔记.docx new file mode 100644 index 0000000..44beaf5 Binary files /dev/null and b/C语言提高/days01/Doc/Day1笔记.docx differ diff --git a/C语言提高/days01/Doc/同级指针分配内存失败解析图.png b/C语言提高/days01/Doc/同级指针分配内存失败解析图.png new file mode 100644 index 0000000..3f70521 Binary files /dev/null and b/C语言提高/days01/Doc/同级指针分配内存失败解析图.png differ diff --git a/C语言提高/days01/Doc/数据类型解析图.png b/C语言提高/days01/Doc/数据类型解析图.png new file mode 100644 index 0000000..01c5640 Binary files /dev/null and b/C语言提高/days01/Doc/数据类型解析图.png differ diff --git a/C语言提高/days01/Doc/栈区不要返回局部变量的地址.png b/C语言提高/days01/Doc/栈区不要返回局部变量的地址.png new file mode 100644 index 0000000..39254bd Binary files /dev/null and b/C语言提高/days01/Doc/栈区不要返回局部变量的地址.png differ diff --git a/C语言提高/days01/Doc/高级指针分配内存成功解析图.png b/C语言提高/days01/Doc/高级指针分配内存成功解析图.png new file mode 100644 index 0000000..18aeef5 Binary files /dev/null and b/C语言提高/days01/Doc/高级指针分配内存成功解析图.png differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数.sdf b/C语言提高/days02/Code/01 宏函数/01 宏函数.sdf new file mode 100644 index 0000000..c986f80 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数.sdf differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数.sln b/C语言提高/days02/Code/01 宏函数/01 宏函数.sln new file mode 100644 index 0000000..13eb7fa --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/01 宏函数.sln @@ -0,0 +1,70 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 宏函数", "01 宏函数\01 宏函数.vcxproj", "{8E1C013B-4949-4D9A-A412-77E2A2D4802A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 变量的传递", "02 变量的传递\02 变量的传递.vcxproj", "{E11EB338-9C4D-4B1C-ADA3-DC27AAC784EC}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 栈的生长方向以及内存存储方式", "03 栈的生长方向以及内存存储方式\03 栈的生长方向以及内存存储方式.vcxproj", "{EDC60FC5-D775-4662-A23D-B7AC10D411FD}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 空指针和野指针", "04 空指针和野指针\04 空指针和野指针.vcxproj", "{272001AF-648B-4742-A12A-E3A901108A2A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 指针的步长", "05 指针的步长\05 指针的步长.vcxproj", "{3F941A40-7CCB-4833-91B3-54E393271432}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06 指针的间接赋值", "06 指针的间接赋值\06 指针的间接赋值.vcxproj", "{236C776A-3E0E-4322-8049-7B181C368FF3}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "07 指针做函数参数的输入输出特性", "07 指针做函数参数的输入输出特性\07 指针做函数参数的输入输出特性.vcxproj", "{F6A569D8-7954-433C-B2FC-C1974C078AB4}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "08 字符串强化训练", "08 字符串强化训练\08 字符串强化训练.vcxproj", "{E785ECBB-A9AF-44E1-A62B-7DD8B9A180A4}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "09 格式化字符串", "09 格式化字符串\09 格式化字符串.vcxproj", "{6B38311D-490D-4A80-91FF-03C86BF27B3B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8E1C013B-4949-4D9A-A412-77E2A2D4802A}.Debug|Win32.ActiveCfg = Debug|Win32 + {8E1C013B-4949-4D9A-A412-77E2A2D4802A}.Debug|Win32.Build.0 = Debug|Win32 + {8E1C013B-4949-4D9A-A412-77E2A2D4802A}.Release|Win32.ActiveCfg = Release|Win32 + {8E1C013B-4949-4D9A-A412-77E2A2D4802A}.Release|Win32.Build.0 = Release|Win32 + {E11EB338-9C4D-4B1C-ADA3-DC27AAC784EC}.Debug|Win32.ActiveCfg = Debug|Win32 + {E11EB338-9C4D-4B1C-ADA3-DC27AAC784EC}.Debug|Win32.Build.0 = Debug|Win32 + {E11EB338-9C4D-4B1C-ADA3-DC27AAC784EC}.Release|Win32.ActiveCfg = Release|Win32 + {E11EB338-9C4D-4B1C-ADA3-DC27AAC784EC}.Release|Win32.Build.0 = Release|Win32 + {EDC60FC5-D775-4662-A23D-B7AC10D411FD}.Debug|Win32.ActiveCfg = Debug|Win32 + {EDC60FC5-D775-4662-A23D-B7AC10D411FD}.Debug|Win32.Build.0 = Debug|Win32 + {EDC60FC5-D775-4662-A23D-B7AC10D411FD}.Release|Win32.ActiveCfg = Release|Win32 + {EDC60FC5-D775-4662-A23D-B7AC10D411FD}.Release|Win32.Build.0 = Release|Win32 + {272001AF-648B-4742-A12A-E3A901108A2A}.Debug|Win32.ActiveCfg = Debug|Win32 + {272001AF-648B-4742-A12A-E3A901108A2A}.Debug|Win32.Build.0 = Debug|Win32 + {272001AF-648B-4742-A12A-E3A901108A2A}.Release|Win32.ActiveCfg = Release|Win32 + {272001AF-648B-4742-A12A-E3A901108A2A}.Release|Win32.Build.0 = Release|Win32 + {3F941A40-7CCB-4833-91B3-54E393271432}.Debug|Win32.ActiveCfg = Debug|Win32 + {3F941A40-7CCB-4833-91B3-54E393271432}.Debug|Win32.Build.0 = Debug|Win32 + {3F941A40-7CCB-4833-91B3-54E393271432}.Release|Win32.ActiveCfg = Release|Win32 + {3F941A40-7CCB-4833-91B3-54E393271432}.Release|Win32.Build.0 = Release|Win32 + {236C776A-3E0E-4322-8049-7B181C368FF3}.Debug|Win32.ActiveCfg = Debug|Win32 + {236C776A-3E0E-4322-8049-7B181C368FF3}.Debug|Win32.Build.0 = Debug|Win32 + {236C776A-3E0E-4322-8049-7B181C368FF3}.Release|Win32.ActiveCfg = Release|Win32 + {236C776A-3E0E-4322-8049-7B181C368FF3}.Release|Win32.Build.0 = Release|Win32 + {F6A569D8-7954-433C-B2FC-C1974C078AB4}.Debug|Win32.ActiveCfg = Debug|Win32 + {F6A569D8-7954-433C-B2FC-C1974C078AB4}.Debug|Win32.Build.0 = Debug|Win32 + {F6A569D8-7954-433C-B2FC-C1974C078AB4}.Release|Win32.ActiveCfg = Release|Win32 + {F6A569D8-7954-433C-B2FC-C1974C078AB4}.Release|Win32.Build.0 = Release|Win32 + {E785ECBB-A9AF-44E1-A62B-7DD8B9A180A4}.Debug|Win32.ActiveCfg = Debug|Win32 + {E785ECBB-A9AF-44E1-A62B-7DD8B9A180A4}.Debug|Win32.Build.0 = Debug|Win32 + {E785ECBB-A9AF-44E1-A62B-7DD8B9A180A4}.Release|Win32.ActiveCfg = Release|Win32 + {E785ECBB-A9AF-44E1-A62B-7DD8B9A180A4}.Release|Win32.Build.0 = Release|Win32 + {6B38311D-490D-4A80-91FF-03C86BF27B3B}.Debug|Win32.ActiveCfg = Debug|Win32 + {6B38311D-490D-4A80-91FF-03C86BF27B3B}.Debug|Win32.Build.0 = Debug|Win32 + {6B38311D-490D-4A80-91FF-03C86BF27B3B}.Release|Win32.ActiveCfg = Release|Win32 + {6B38311D-490D-4A80-91FF-03C86BF27B3B}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数.v12.suo b/C语言提高/days02/Code/01 宏函数/01 宏函数.v12.suo new file mode 100644 index 0000000..71a8718 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数.v12.suo differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.c b/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.c new file mode 100644 index 0000000..3740f14 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.c @@ -0,0 +1,37 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +#define MYADD(x,y) ((x) + (y)) +// 꺯 Ҫ֤Բſ +// 꺯 һij̶ ͨĺЧʸ,ͨջͳջʱϵĿ +// ͨһЩȽƵСĺװΪ꺯 +// ŵ㣺 Կռ ʱ + +int myAdd( int x ,int y ) +{ + + return x + y; +} + +void test01() +{ + int a = 10; + int b = 20; + + int ret = MYADD(a, b) * 20 ; // ((10) + (20)) * 20 + + printf("ret = %d\n", ret); + +} + + + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.vcxproj b/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.vcxproj new file mode 100644 index 0000000..8a78171 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {8E1C013B-4949-4D9A-A412-77E2A2D4802A} + Win32Proj + My01宏函数 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.vcxproj.filters new file mode 100644 index 0000000..6326c20 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/01 宏函数/01 宏函数.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.log b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.log new file mode 100644 index 0000000..8c703b1 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.log @@ -0,0 +1,2 @@ + 01 宏函数.c + 01 宏函数.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\01 宏函数.exe diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.obj b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.obj new file mode 100644 index 0000000..91820ae Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/01 宏函数.lastbuildstate b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/01 宏函数.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/01 宏函数.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/CL.read.1.tlog new file mode 100644 index 0000000..1a639d5 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/CL.write.1.tlog new file mode 100644 index 0000000..bbe8242 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/cl.command.1.tlog new file mode 100644 index 0000000..1bb572f Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.command.1.tlog new file mode 100644 index 0000000..b06f85d Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.read.1.tlog new file mode 100644 index 0000000..529fdfb Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.write.1.tlog new file mode 100644 index 0000000..9f8ff42 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/01 宏函数.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/vc120.idb new file mode 100644 index 0000000..c0b64fe Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/vc120.pdb new file mode 100644 index 0000000..fb065d0 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/01 宏函数/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.c b/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.c new file mode 100644 index 0000000..d6a2d00 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.c @@ -0,0 +1,33 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +int g_a = 100; //ȫ mainfunc1func2жʹ + +//Ӻ2 +void func2() +{ + +} + + +//Ӻ1 +void func1() +{ + int a = 10; //main ʹãfunc1func2жʹ + + func2(); + +} + + +int main(){ + + int a = 10; //main func1 func2жʹ + + func1(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.vcxproj b/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.vcxproj new file mode 100644 index 0000000..3c55348 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {E11EB338-9C4D-4B1C-ADA3-DC27AAC784EC} + Win32Proj + My02变量的传递 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.vcxproj.filters new file mode 100644 index 0000000..f75c7b2 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/02 变量的传递/02 变量的传递.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.c b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.c new file mode 100644 index 0000000..5a56e72 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.c @@ -0,0 +1,45 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1ջ +void test01() +{ + int a = 10; //ջ --- ߵַ + int b = 20; + int c = 30; + int d = 40; //ջ --- ͵ַ + + printf("%d\n", &a); + printf("%d\n", &b); + printf("%d\n", &c); + printf("%d\n", &d); +} + + +//2ڴ洢ʽ +void test02() +{ + int a = 0xaabbccdd; + + unsigned char * p = &a; + + + printf("%x\n", *p); // λֽ ---- ͵ַ + + printf("%x\n", *(p+1)); // λֽ ---- ߵַ + + printf("%x\n", *(p + 2)); + + printf("%x\n", *(p + 3)); + +} + +int main(){ + //test01(); + test02(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.vcxproj b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.vcxproj new file mode 100644 index 0000000..dc7a20f --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {EDC60FC5-D775-4662-A23D-B7AC10D411FD} + Win32Proj + My03栈的生长方向以及内存存储方式 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.vcxproj.filters new file mode 100644 index 0000000..e557ad3 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/03 栈的生长方向以及内存存储方式.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/03 栈的生长方向以及内存存储方式.lastbuildstate b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/03 栈的生长方向以及内存存储方式.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/03 栈的生长方向以及内存存储方式.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/CL.read.1.tlog new file mode 100644 index 0000000..1cf1ed7 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8abfbfe Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/cl.command.1.tlog new file mode 100644 index 0000000..ac0c058 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.command.1.tlog new file mode 100644 index 0000000..d279373 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.read.1.tlog new file mode 100644 index 0000000..ece439b Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.write.1.tlog new file mode 100644 index 0000000..c782706 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方.EDC60FC5.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方向以及内存存储方式.log b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方向以及内存存储方式.log new file mode 100644 index 0000000..6f6622f --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方向以及内存存储方式.log @@ -0,0 +1,3 @@ + 03 栈的生长方向以及内存存储方式.c +e:\0504\sendtostudent\day2_c\code\01 宏函数\03 栈的生长方向以及内存存储方式\03 栈的生长方向以及内存存储方式.c(26): warning C4133: “初始化”: 从“int *”到“unsigned char *”的类型不兼容 + 03 栈的生长方向以及内存存储方式.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\03 栈的生长方向以及内存存储方式.exe diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方向以及内存存储方式.obj b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方向以及内存存储方式.obj new file mode 100644 index 0000000..ada748a Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/03 栈的生长方向以及内存存储方式.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/vc120.idb new file mode 100644 index 0000000..0025bb6 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/vc120.pdb new file mode 100644 index 0000000..dc48327 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/03 栈的生长方向以及内存存储方式/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.c b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.c new file mode 100644 index 0000000..ea734f1 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.c @@ -0,0 +1,71 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1ָ NULLͷǷַڴ +void test01() +{ + //char *p = NULL; + ////pָڴ򿽱 + //strcpy(p, "1111"); //err + + //char *q = 0x1122; + ////qָڴ򿽱 + //strcpy(q, "2222"); //err +} + +int * doWork() +{ + int a = 10; + int * p = &a; + return p; +} + +//2Ұָ +void test02() +{ + //int * p; //2.1 δʼָ + + //printf("%d\n", *p); + + + //2.2 mallocҲfreeˣָûÿ + + //int * p = malloc(sizeof(int)); + //*p = 100; + //free(p); //Ұָ + //p = NULL; //freeָҪÿգֹҰָij + //printf("%d\n", *p); + + + //2.3ָԽ + int *p2 = doWork(); //p2Ұָ + printf("%d\n", *p2); + printf("%d\n", *p2); +} + + +void test03() +{ + int * p = NULL; + + free(p); //ָǿͷŵ + free(p); + free(p); + + int * p2 = malloc(4); + free(p2); + free(p2); //ҰָDzͷŵ + + +} + +int main(){ + + //test01(); + //test02(); + test03(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.vcxproj b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.vcxproj new file mode 100644 index 0000000..140b8cd --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {272001AF-648B-4742-A12A-E3A901108A2A} + Win32Proj + My04空指针和野指针 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.vcxproj.filters new file mode 100644 index 0000000..5265af8 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/04 空指针和野指针.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.log b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.log new file mode 100644 index 0000000..ccbb7de --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.log @@ -0,0 +1,2 @@ + 04 空指针和野指针.c + 04 空指针和野指针.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\04 空指针和野指针.exe diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.obj b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.obj new file mode 100644 index 0000000..cd7c690 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/04 空指针和野指针.lastbuildstate b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/04 空指针和野指针.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/04 空指针和野指针.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3b5a475 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3e98b86 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/cl.command.1.tlog new file mode 100644 index 0000000..3bad5b8 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.command.1.tlog new file mode 100644 index 0000000..9cf96a8 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.read.1.tlog new file mode 100644 index 0000000..6baec84 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.write.1.tlog new file mode 100644 index 0000000..f8bb2ea Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/04 空指针和野指针.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/vc120.idb new file mode 100644 index 0000000..d1ce61b Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/vc120.pdb new file mode 100644 index 0000000..5c8713a Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/04 空指针和野指针/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.c b/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.c new file mode 100644 index 0000000..eefda90 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.c @@ -0,0 +1,68 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include //offsetofͷļ + + +//ָIJ +//1ָ+1֮ Ծֽ +void test01() +{ + char * p = NULL; + printf("%d\n", p); + printf("%d\n", p+1); + + + double * p2 = NULL; + printf("%d\n", p2); + printf("%d\n", p2 + 1); +} + +//2ʱȡֽ +void test02() +{ + char buf[1024] = { 0 }; + + int a = 1000; + + memcpy(buf + 1, &a, sizeof(int)); + + char * p = buf; //ͨpҵbuf׵ַ + + printf("bufеa = %d\n", *(int*)(p+1)); + +} + + +//3Զ ϰ +struct Person +{ + char a; // 0 ~ 3 + int b; // 4 ~ 7 + char buf[64]; // 8 ~ 71 + int d; // 72 ~ 75 +}; + +void test03() +{ + struct Person p1 = { 'a', 10, "hello world", 1000 }; + + //ṹԵƫ + printf("p1.dƫΪ %d\n", offsetof(struct Person, d)); + + + + //ӡdֵ + printf("p1.dֵΪ %d\n", *(int*)((char*)&p1 + offsetof(struct Person, d))); + +} + +int main(){ + //test01(); + //test02(); + test03(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.vcxproj b/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.vcxproj new file mode 100644 index 0000000..4b13a9e --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {3F941A40-7CCB-4833-91B3-54E393271432} + Win32Proj + My05指针的步长 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.vcxproj.filters new file mode 100644 index 0000000..224466e --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/05 指针的步长/05 指针的步长.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.Build.CppClean.log b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.Build.CppClean.log new file mode 100644 index 0000000..0425996 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.Build.CppClean.log @@ -0,0 +1,5 @@ +e:\0504\sendtostudent\day2_c\code\01 宏函数\05 指针的步长\debug\vc120.pdb +e:\0504\sendtostudent\day2_c\code\01 宏函数\05 指针的步长\debug\vc120.idb +e:\0504\sendtostudent\day2_c\code\01 宏函数\05 指针的步长\debug\05 指针的步长.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\05 指针的步长\debug\05 指针的步长.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\05 指针的步长\debug\05 指针的步长.tlog\cl.write.1.tlog diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.log b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.log new file mode 100644 index 0000000..5220df7 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.log @@ -0,0 +1,2 @@ + 05 指针的步长.c + 05 指针的步长.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\05 指针的步长.exe diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.obj b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.obj new file mode 100644 index 0000000..43d0fb5 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/05 指针的步长.lastbuildstate b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/05 指针的步长.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/05 指针的步长.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/CL.read.1.tlog new file mode 100644 index 0000000..b2c3d03 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3414dca Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/cl.command.1.tlog new file mode 100644 index 0000000..33151a1 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.command.1.tlog new file mode 100644 index 0000000..8380a67 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.read.1.tlog new file mode 100644 index 0000000..dadad6e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.write.1.tlog new file mode 100644 index 0000000..ae8cc52 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/05 指针的步长.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/vc120.idb new file mode 100644 index 0000000..59433bb Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/vc120.pdb new file mode 100644 index 0000000..e04fe5d Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/05 指针的步长/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.c b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.c new file mode 100644 index 0000000..dc617e4 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.c @@ -0,0 +1,40 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +void changeValue(int *p) //a2ʵ p β int *p = &a2 +{ + *p = 1000; +} + +//1һͨһָʵμβΣ +//2ϵ +//3ͨ* иֵ +void test01() +{ + int a = 10; + int * p = NULL; + + p = &a; + + *p = 100; + + printf("%d\n", a); + + + int a2 = 10; + changeValue(&a2); + printf("%d\n", a2); + + //printf("%d\n", &a2); +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.vcxproj b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.vcxproj new file mode 100644 index 0000000..8532699 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {236C776A-3E0E-4322-8049-7B181C368FF3} + Win32Proj + My06指针的间接赋值 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.vcxproj.filters new file mode 100644 index 0000000..8f60eae --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/06 指针的间接赋值.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.log b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.log new file mode 100644 index 0000000..bdc4730 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.log @@ -0,0 +1,2 @@ + 06 指针的间接赋值.c + 06 指针的间接赋值.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\06 指针的间接赋值.exe diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.obj b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.obj new file mode 100644 index 0000000..558d5c1 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/06 指针的间接赋值.lastbuildstate b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/06 指针的间接赋值.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/06 指针的间接赋值.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3909706 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/CL.write.1.tlog new file mode 100644 index 0000000..cf8b63c Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/cl.command.1.tlog new file mode 100644 index 0000000..be85927 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.command.1.tlog new file mode 100644 index 0000000..d557b8e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.read.1.tlog new file mode 100644 index 0000000..e2f309b Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.write.1.tlog new file mode 100644 index 0000000..3a9fae6 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/06 指针的间接赋值.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/vc120.idb new file mode 100644 index 0000000..a8fdb6e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/vc120.pdb new file mode 100644 index 0000000..60b5b57 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/06 指针的间接赋值/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.c b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.c new file mode 100644 index 0000000..032e9bd --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.c @@ -0,0 +1,69 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1ԣ зڴ棬ʹڴ +void func(char * p) +{ + strcpy(p, "helloworld"); +} + +void test01() +{ + //䵽ջ + char buf[1024] = { 0 }; + func(buf); + + printf("%s\n", buf); +} + +void printString(char * str) +{ + printf("%s\n", str); + +} + +void test02() +{ + //䵽 + char * p = malloc(sizeof(char)* 64); + + memset(p, 0, 64); + + strcpy(p, "helloworld"); + + printString(p); +} + + + +//2ԣ ڴ棬ʹڴ + +void allocateSpace(char ** pp) +{ + char * temp = malloc(sizeof(char)* 64); + memset(temp, 0, 64); + strcpy(temp, "hello world"); + *pp = temp; +} + +void test03() +{ + char * p = NULL; + allocateSpace(&p); + + printf("%s\n", p); + +} + + +int main(){ + + //test01(); + //test02(); + test03(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.vcxproj b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.vcxproj new file mode 100644 index 0000000..350ab6a --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {F6A569D8-7954-433C-B2FC-C1974C078AB4} + Win32Proj + My07指针做函数参数的输入输出特性 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.vcxproj.filters new file mode 100644 index 0000000..1040b9b --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/07 指针做函数参数的输入输出特性.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/07 指针做函数参数的输入输出特性.lastbuildstate b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/07 指针做函数参数的输入输出特性.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/07 指针做函数参数的输入输出特性.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/CL.read.1.tlog new file mode 100644 index 0000000..bf30701 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/CL.write.1.tlog new file mode 100644 index 0000000..eb5fc51 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/cl.command.1.tlog new file mode 100644 index 0000000..62fb914 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.command.1.tlog new file mode 100644 index 0000000..3064b72 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.read.1.tlog new file mode 100644 index 0000000..449c0ad Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.write.1.tlog new file mode 100644 index 0000000..5844729 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数.F6A569D8.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.Build.CppClean.log b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.Build.CppClean.log new file mode 100644 index 0000000..7019975 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\vc120.pdb +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\vc120.idb +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数参数的输入输出特性.obj +e:\0504\sendtostudent\day2_c\code\01 宏函数\debug\07 指针做函数参数的输入输出特性.ilk +e:\0504\sendtostudent\day2_c\code\01 宏函数\debug\07 指针做函数参数的输入输出特性.exe +e:\0504\sendtostudent\day2_c\code\01 宏函数\debug\07 指针做函数参数的输入输出特性.pdb +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数.f6a569d8.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数.f6a569d8.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数.f6a569d8.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数.f6a569d8.tlog\link.command.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数.f6a569d8.tlog\link.read.1.tlog +e:\0504\sendtostudent\day2_c\code\01 宏函数\07 指针做函数参数的输入输出特性\debug\07 指针做函数.f6a569d8.tlog\link.write.1.tlog diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.log b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.log new file mode 100644 index 0000000..3a61039 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.log @@ -0,0 +1,2 @@ + 07 指针做函数参数的输入输出特性.c + 07 指针做函数参数的输入输出特性.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\07 指针做函数参数的输入输出特性.exe diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.obj b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.obj new file mode 100644 index 0000000..7f25d6b Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/07 指针做函数参数的输入输出特性.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/vc120.idb new file mode 100644 index 0000000..3443bd7 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/vc120.pdb new file mode 100644 index 0000000..865dc63 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/07 指针做函数参数的输入输出特性/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.c b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.c new file mode 100644 index 0000000..e128aef --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.c @@ -0,0 +1,161 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void test01() +{ + + //עַҪнı־ '\0' + //char str1[] = { 'h', 'e', 'l', 'l', 'o','\0' }; + //printf("%s\n", str1); + + ////ַ鲿ֳʼʣ0 + //char str2[100] = { 'h', 'e', 'l', 'l', 'o' }; + //printf("%s\n", str2); + + ////ַʼôĬϻַβ'\0' + //char str3[] = "hello"; + //printf("%s\n", str3); + //printf("sizeof str:%d\n", sizeof(str3)); //ͳ \0 + //printf("strlen str:%d\n", strlen(str3)); //ͳ \0 + + //char str4[100] = "hello"; + //printf("sizeof str:%d\n", sizeof(str4)); // 100 + //printf("strlen str:%d\n", strlen(str4)); // 5 + + //char str5[] = "hello\0world"; + //printf("%s\n", str5); + //printf("sizeof str5:%d\n", sizeof(str5)); //12 + //printf("strlen str5:%d\n", strlen(str5)); //5 + + + char str6[] = "hello\012world"; // \012 ǰ˽ תʮƵ10ASCIIǻ + printf("%s\n", str6); + printf("sizeof str6:%d\n", sizeof(str6)); // 12 + printf("strlen str6:%d\n", strlen(str6)); // 11 + +} + + +//ַ +// 1 Ŀַ 2 Դַ +// Դַе Ŀַ +// һ []ʽ п +void copyString01(char * dest , char * source ) +{ + int len = strlen(source); + for (int i = 0; i < len;i++) + { + dest[i] = source[i]; + } + + dest[len] = '\0'; + +} + + +//ڶ ַָп +void copyString02(char * dest, char * source) +{ + + + while ( *source != '\0') + { + *dest = *source; + dest++; + source++; + } + + *dest = '\0'; +} + +//ַʽ +void copyString03(char * dest, char * source) +{ + while (*dest++ = *source++){} + + /*int a = 0; + while (a = 0) + { + printf("a"); + }*/ +} + +void test02() +{ + char * str = "hello world"; + + char buf[1024]; + + //copyString01(buf, str); + //copyString02(buf, str); + copyString03(buf, str); + + printf("%s\n", buf); + +} + + +//ַת +//һַʽ []зת +void reverseString01(char * str) +{ + int len = strlen(str); + + //ʼλ± + int start = 0; + + //λõ± + int end = len - 1; + + while (start < end) + { + char temp = str[start]; + str[start] = str[end]; + str[end] = temp; + + start++; + end--; + } +} + +//ڶַʽ ָ +void reverseString02(char * str) +{ + int len = strlen(str); + + char * start = str; + + char * end = str + len - 1; + + while (start < end) + { + char temp = *start; + *start = *end; + *end = temp; + + start++; + end--; + } +} + +void test03() +{ + char str[] = "abcdefg"; + //reverseString01(str); + reverseString02(str); + printf("%s\n", str); + +} + +int main(){ + + //test01(); + //test02(); + test03(); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.vcxproj b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.vcxproj new file mode 100644 index 0000000..60dd3b5 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {E785ECBB-A9AF-44E1-A62B-7DD8B9A180A4} + Win32Proj + My08字符串强化训练 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.vcxproj.filters new file mode 100644 index 0000000..feef40c --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/08 字符串强化训练.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.log b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.log new file mode 100644 index 0000000..c927192 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.log @@ -0,0 +1,2 @@ + 08 字符串强化训练.c + 08 字符串强化训练.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\08 字符串强化训练.exe diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.obj b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.obj new file mode 100644 index 0000000..40e44a6 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/08 字符串强化训练.lastbuildstate b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/08 字符串强化训练.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/08 字符串强化训练.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/CL.read.1.tlog new file mode 100644 index 0000000..d21515d Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/CL.write.1.tlog new file mode 100644 index 0000000..cd6b2e6 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/cl.command.1.tlog new file mode 100644 index 0000000..08c7ce1 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.command.1.tlog new file mode 100644 index 0000000..ff8fc91 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.read.1.tlog new file mode 100644 index 0000000..73d347f Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.write.1.tlog new file mode 100644 index 0000000..e9607ff Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/08 字符串强化训练.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/vc120.idb new file mode 100644 index 0000000..25c28f7 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/vc120.pdb new file mode 100644 index 0000000..0e66340 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/08 字符串强化训练/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.c b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.c new file mode 100644 index 0000000..67d5304 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.c @@ -0,0 +1,60 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//sprintfʽַ +void test01() +{ + char buf[1024]; + memset(buf, 0, 1024); + + sprintf(buf, "%d %d %d \n", 2018, 5, 6); + + printf("%s",buf); + + + //ַƴ + memset(buf, 0, 1024); + char str1[] = "hello"; + char str2[] = "world"; + int len = sprintf(buf, "%s%s", str1, str2); //sprintfصַij + printf("buf:%s len:%d\n", buf, len); + + + //תַ + memset(buf, 0, 1024); + int num = 100; + sprintf(buf, "%d", num); + printf("buf:%s\n", buf); + + //ÿ Ҷ + memset(buf, 0, 1024); + sprintf(buf, "%8d", num); + printf("buf:%s\n", buf); + + //ÿ + memset(buf, 0, 1024); + sprintf(buf, "%-8d", num); + printf("buf:%sa\n", buf); + + //ת16ַ Сд + memset(buf, 0, 1024); + sprintf(buf, "0x%x", num); + printf("buf:%s\n", buf); + + //ת8ַ + memset(buf, 0, 1024); + sprintf(buf, "0%o", num); + printf("buf:%s\n", buf); + + +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.vcxproj b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.vcxproj new file mode 100644 index 0000000..0012f87 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {6B38311D-490D-4A80-91FF-03C86BF27B3B} + Win32Proj + My09格式化字符串 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.vcxproj.filters b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.vcxproj.filters new file mode 100644 index 0000000..ee4611e --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/09 格式化字符串.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.log b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.log new file mode 100644 index 0000000..6717dfd --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.log @@ -0,0 +1,2 @@ + 09 格式化字符串.c + 09 格式化字符串.vcxproj -> E:\0504\sendToStudent\Day2_C\Code\01 宏函数\Debug\09 格式化字符串.exe diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.obj b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.obj new file mode 100644 index 0000000..12bff45 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.obj differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/09 格式化字符串.lastbuildstate b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/09 格式化字符串.lastbuildstate new file mode 100644 index 0000000..1d8d386 --- /dev/null +++ b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/09 格式化字符串.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day2_C\Code\01 宏函数\| diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/CL.read.1.tlog b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/CL.read.1.tlog new file mode 100644 index 0000000..9dc5d12 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/CL.write.1.tlog b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/CL.write.1.tlog new file mode 100644 index 0000000..4f56b42 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/cl.command.1.tlog b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/cl.command.1.tlog new file mode 100644 index 0000000..5a85ad8 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.command.1.tlog b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.command.1.tlog new file mode 100644 index 0000000..f22b74e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.command.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.read.1.tlog b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.read.1.tlog new file mode 100644 index 0000000..11de891 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.read.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.write.1.tlog b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.write.1.tlog new file mode 100644 index 0000000..db70dd3 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/09 格式化字符串.tlog/link.write.1.tlog differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/vc120.idb b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/vc120.idb new file mode 100644 index 0000000..40d7e1d Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/vc120.idb differ diff --git a/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/vc120.pdb b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/vc120.pdb new file mode 100644 index 0000000..b167841 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/09 格式化字符串/Debug/vc120.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.exe b/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.exe new file mode 100644 index 0000000..32410db Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.ilk b/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.ilk new file mode 100644 index 0000000..58ac74e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.pdb b/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.pdb new file mode 100644 index 0000000..f77e676 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/01 宏函数.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.exe b/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.exe new file mode 100644 index 0000000..5128486 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.ilk b/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.ilk new file mode 100644 index 0000000..4a4c54b Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.pdb b/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.pdb new file mode 100644 index 0000000..ffa8fd2 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/03 栈的生长方向以及内存存储方式.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.exe b/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.exe new file mode 100644 index 0000000..359ed7e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.ilk b/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.ilk new file mode 100644 index 0000000..c3946d3 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.pdb b/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.pdb new file mode 100644 index 0000000..0d8d2c2 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/04 空指针和野指针.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.exe b/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.exe new file mode 100644 index 0000000..f46100e Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.ilk b/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.ilk new file mode 100644 index 0000000..cd62714 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.pdb b/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.pdb new file mode 100644 index 0000000..7add4f7 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/05 指针的步长.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.exe b/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.exe new file mode 100644 index 0000000..2491e15 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.ilk b/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.ilk new file mode 100644 index 0000000..7a6e8e7 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.pdb b/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.pdb new file mode 100644 index 0000000..ddcbdef Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/06 指针的间接赋值.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.exe b/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.exe new file mode 100644 index 0000000..6670a56 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.ilk b/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.ilk new file mode 100644 index 0000000..bc509e4 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.pdb b/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.pdb new file mode 100644 index 0000000..a1861cf Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/07 指针做函数参数的输入输出特性.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.exe b/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.exe new file mode 100644 index 0000000..18a580f Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.ilk b/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.ilk new file mode 100644 index 0000000..4754362 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.pdb b/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.pdb new file mode 100644 index 0000000..2b30588 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/08 字符串强化训练.pdb differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.exe b/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.exe new file mode 100644 index 0000000..2b08620 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.exe differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.ilk b/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.ilk new file mode 100644 index 0000000..f0138f8 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.ilk differ diff --git a/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.pdb b/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.pdb new file mode 100644 index 0000000..b1e7679 Binary files /dev/null and b/C语言提高/days02/Code/01 宏函数/Debug/09 格式化字符串.pdb differ diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile new file mode 100644 index 0000000..a412b6f --- /dev/null +++ b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile @@ -0,0 +1,360 @@ +############################################################################# +# Makefile for building: pointer +# Generated by qmake (3.0) (Qt 5.6.0) +# Project: ..\pointer\pointer.pro +# Template: app +# Command: C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\pointer\pointer.pro +############################################################################# + +MAKEFILE = Makefile + +first: debug +install: debug-install +uninstall: debug-uninstall +QMAKE = C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe +DEL_FILE = del +CHK_DIR_EXISTS= if not exist +MKDIR = mkdir +COPY = copy /y +COPY_FILE = copy /y +COPY_DIR = xcopy /s /q /y /i +INSTALL_FILE = copy /y +INSTALL_PROGRAM = copy /y +INSTALL_DIR = xcopy /s /q /y /i +DEL_FILE = del +SYMLINK = $(QMAKE) -install ln -f -s +DEL_DIR = rmdir +MOVE = move +SUBTARGETS = \ + debug \ + release + + +debug: FORCE + $(MAKE) -f $(MAKEFILE).Debug +debug-make_first: FORCE + $(MAKE) -f $(MAKEFILE).Debug +debug-all: FORCE + $(MAKE) -f $(MAKEFILE).Debug all +debug-clean: FORCE + $(MAKE) -f $(MAKEFILE).Debug clean +debug-distclean: FORCE + $(MAKE) -f $(MAKEFILE).Debug distclean +debug-install: FORCE + $(MAKE) -f $(MAKEFILE).Debug install +debug-uninstall: FORCE + $(MAKE) -f $(MAKEFILE).Debug uninstall +release: FORCE + $(MAKE) -f $(MAKEFILE).Release +release-make_first: FORCE + $(MAKE) -f $(MAKEFILE).Release +release-all: FORCE + $(MAKE) -f $(MAKEFILE).Release all +release-clean: FORCE + $(MAKE) -f $(MAKEFILE).Release clean +release-distclean: FORCE + $(MAKE) -f $(MAKEFILE).Release distclean +release-install: FORCE + $(MAKE) -f $(MAKEFILE).Release install +release-uninstall: FORCE + $(MAKE) -f $(MAKEFILE).Release uninstall + +Makefile: ../pointer/pointer.pro C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++/qmake.conf C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_pre.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qdevice.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/device_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/common/angle.conf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qconfig.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bootstrap_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_clucene_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designercomponents_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labscontrols_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labstemplates_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_platformsupport_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmldevtools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickparticles_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uiplugin.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_functions.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/qt_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++/qmake.conf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_post.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_pre.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/default_pre.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resolve_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds_post.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_post.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qml_debug.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/rtti.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/precompile_header.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/warn_on.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resources.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/moc.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/opengl.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/uic.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/windows.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/testcase_targets.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exceptions.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/yacc.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/lex.prf \ + ../pointer/pointer.pro \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/qtmaind.prl \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Widgets.prl \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Gui.prl \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Core.prl + $(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\pointer\pointer.pro +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_pre.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qdevice.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/device_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/common/angle.conf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qconfig.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bootstrap_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_clucene_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designercomponents_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labscontrols_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labstemplates_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_platformsupport_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmldevtools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickparticles_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uiplugin.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_functions.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/qt_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++/qmake.conf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_post.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_pre.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/default_pre.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resolve_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds_post.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_post.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qml_debug.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/rtti.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/precompile_header.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/warn_on.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resources.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/moc.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/opengl.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/uic.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/windows.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/testcase_targets.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exceptions.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/yacc.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/lex.prf: +../pointer/pointer.pro: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/qtmaind.prl: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Widgets.prl: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Gui.prl: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Core.prl: +qmake: FORCE + @$(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\pointer\pointer.pro + +qmake_all: FORCE + +make_first: debug-make_first release-make_first FORCE +all: debug-all release-all FORCE +clean: debug-clean release-clean FORCE +distclean: debug-distclean release-distclean FORCE + -$(DEL_FILE) Makefile + +debug-mocclean: + $(MAKE) -f $(MAKEFILE).Debug mocclean +release-mocclean: + $(MAKE) -f $(MAKEFILE).Release mocclean +mocclean: debug-mocclean release-mocclean + +debug-mocables: + $(MAKE) -f $(MAKEFILE).Debug mocables +release-mocables: + $(MAKE) -f $(MAKEFILE).Release mocables +mocables: debug-mocables release-mocables + +check: first +FORCE: + +$(MAKEFILE).Debug: Makefile +$(MAKEFILE).Release: Makefile diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Debug b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Debug new file mode 100644 index 0000000..78b7c15 --- /dev/null +++ b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Debug @@ -0,0 +1,463 @@ +############################################################################# +# Makefile for building: pointer +# Generated by qmake (3.0) (Qt 5.6.0) +# Project: ..\pointer\pointer.pro +# Template: app +############################################################################# + +MAKEFILE = Makefile.Debug + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN +CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES) +CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES) +INCPATH = -I..\pointer -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtWidgets -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtGui -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtANGLE -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtCore -Idebug -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++ +LINKER = g++ +LFLAGS = -Wl,-subsystem,windows -mthreads +LIBS = -lmingw32 -LC:\Qt\Qt5.6.0\5.6\mingw49_32\lib C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libqtmaind.a -LC:\utils\postgresql\pgsql\lib -LC:\utils\my_sql\my_sql\lib -lshell32 C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Widgetsd.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Guid.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Cored.a +QMAKE = C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe +IDC = idc +IDL = midl +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = +COPY = copy /y +SED = $(QMAKE) -install sed +COPY_FILE = copy /y +COPY_DIR = xcopy /s /q /y /i +DEL_FILE = del +DEL_DIR = rmdir +MOVE = move +CHK_DIR_EXISTS= if not exist +MKDIR = mkdir +INSTALL_FILE = copy /y +INSTALL_PROGRAM = copy /y +INSTALL_DIR = xcopy /s /q /y /i + +####### Output directory + +OBJECTS_DIR = debug + +####### Files + +SOURCES = ..\pointer\main.cpp \ + ..\pointer\mainwindow.cpp debug\moc_mainwindow.cpp +OBJECTS = debug/main.o \ + debug/mainwindow.o \ + debug/moc_mainwindow.o + +DIST = ..\pointer\mainwindow.h ..\pointer\main.cpp \ + ..\pointer\mainwindow.cpp +QMAKE_TARGET = pointer +DESTDIR = debug\ #avoid trailing-slash linebreak +TARGET = pointer.exe +DESTDIR_TARGET = debug\pointer.exe + +####### Build rules + +first: all +all: Makefile.Debug $(DESTDIR_TARGET) + +$(DESTDIR_TARGET): ui_mainwindow.h $(OBJECTS) + $(LINKER) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS) + +qmake: FORCE + @$(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile.Debug ..\pointer\pointer.pro + +qmake_all: FORCE + +dist: + $(ZIP) pointer.zip $(SOURCES) $(DIST) ..\pointer\pointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qdevice.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\device_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\common\angle.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qconfig.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bootstrap_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_clucene_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designercomponents_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labscontrols_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labstemplates_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_platformsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmldevtools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qtmultimediaquicktools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickparticles_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uiplugin.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_functions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++\qmake.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resolve_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\build_pass.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qml_debug.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\rtti.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\precompile_header.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\warn_on.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resources.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\moc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\opengl.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\uic.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\windows.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\testcase_targets.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exceptions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\yacc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\lex.prf ..\pointer\pointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\qtmaind.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Widgetsd.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Guid.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Cored.prl NO_PCH_SOURCES RESOURCES HEADERS SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES + +clean: compiler_clean + -$(DEL_FILE) debug\main.o debug\mainwindow.o debug\moc_mainwindow.o + +distclean: clean + -$(DEL_FILE) $(DESTDIR_TARGET) + -$(DEL_FILE) Makefile.Debug + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +check: first + +compiler_no_pch_compiler_make_all: +compiler_no_pch_compiler_clean: +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_moc_header_make_all: debug/moc_mainwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) debug\moc_mainwindow.cpp +debug/moc_mainwindow.cpp: C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ../pointer/mainwindow.h + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\moc.exe $(DEFINES) -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++ -IE:/0504/sendToStudent/Day2_C/Code/pointer -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtANGLE -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore -I. ..\pointer\mainwindow.h -o debug\moc_mainwindow.cpp + +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_mainwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_mainwindow.h +ui_mainwindow.h: ../pointer/mainwindow.ui + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\uic.exe ..\pointer\mainwindow.ui -o ui_mainwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + + + +####### Compile + +debug/main.o: ../pointer/main.cpp ../pointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QApplication \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qeventloop.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qdesktopwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qguiapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qinputmethod.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\main.o ..\pointer\main.cpp + +debug/mainwindow.o: ../pointer/mainwindow.cpp ../pointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ui_mainwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\mainwindow.o ..\pointer\mainwindow.cpp + +debug/moc_mainwindow.o: debug/moc_mainwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Release b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Release new file mode 100644 index 0000000..09c6378 --- /dev/null +++ b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Release @@ -0,0 +1,463 @@ +############################################################################# +# Makefile for building: pointer +# Generated by qmake (3.0) (Qt 5.6.0) +# Project: ..\pointer\pointer.pro +# Template: app +############################################################################# + +MAKEFILE = Makefile.Release + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN +CFLAGS = -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra $(DEFINES) +CXXFLAGS = -pipe -fno-keep-inline-dllexport -O2 -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES) +INCPATH = -I..\pointer -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtWidgets -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtGui -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtANGLE -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtCore -Irelease -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++ +LINKER = g++ +LFLAGS = -Wl,-s -Wl,-subsystem,windows -mthreads +LIBS = -lmingw32 -LC:\Qt\Qt5.6.0\5.6\mingw49_32\lib C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libqtmain.a -LC:\utils\postgresql\pgsql\lib -LC:\utils\my_sql\my_sql\lib -lshell32 C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Widgets.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Gui.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Core.a +QMAKE = C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe +IDC = idc +IDL = midl +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = +COPY = copy /y +SED = $(QMAKE) -install sed +COPY_FILE = copy /y +COPY_DIR = xcopy /s /q /y /i +DEL_FILE = del +DEL_DIR = rmdir +MOVE = move +CHK_DIR_EXISTS= if not exist +MKDIR = mkdir +INSTALL_FILE = copy /y +INSTALL_PROGRAM = copy /y +INSTALL_DIR = xcopy /s /q /y /i + +####### Output directory + +OBJECTS_DIR = release + +####### Files + +SOURCES = ..\pointer\main.cpp \ + ..\pointer\mainwindow.cpp release\moc_mainwindow.cpp +OBJECTS = release/main.o \ + release/mainwindow.o \ + release/moc_mainwindow.o + +DIST = ..\pointer\mainwindow.h ..\pointer\main.cpp \ + ..\pointer\mainwindow.cpp +QMAKE_TARGET = pointer +DESTDIR = release\ #avoid trailing-slash linebreak +TARGET = pointer.exe +DESTDIR_TARGET = release\pointer.exe + +####### Build rules + +first: all +all: Makefile.Release $(DESTDIR_TARGET) + +$(DESTDIR_TARGET): ui_mainwindow.h $(OBJECTS) + $(LINKER) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS) + +qmake: FORCE + @$(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile.Release ..\pointer\pointer.pro + +qmake_all: FORCE + +dist: + $(ZIP) pointer.zip $(SOURCES) $(DIST) ..\pointer\pointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qdevice.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\device_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\common\angle.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qconfig.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bootstrap_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_clucene_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designercomponents_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labscontrols_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labstemplates_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_platformsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmldevtools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qtmultimediaquicktools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickparticles_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uiplugin.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_functions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++\qmake.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resolve_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\build_pass.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qml_debug.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\rtti.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\precompile_header.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\warn_on.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resources.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\moc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\opengl.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\uic.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\windows.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\testcase_targets.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exceptions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\yacc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\lex.prf ..\pointer\pointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\qtmain.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Widgets.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Gui.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Core.prl NO_PCH_SOURCES RESOURCES HEADERS SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES + +clean: compiler_clean + -$(DEL_FILE) release\main.o release\mainwindow.o release\moc_mainwindow.o + +distclean: clean + -$(DEL_FILE) $(DESTDIR_TARGET) + -$(DEL_FILE) Makefile.Release + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +check: first + +compiler_no_pch_compiler_make_all: +compiler_no_pch_compiler_clean: +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_moc_header_make_all: release/moc_mainwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) release\moc_mainwindow.cpp +release/moc_mainwindow.cpp: C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ../pointer/mainwindow.h + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\moc.exe $(DEFINES) -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++ -IE:/0504/sendToStudent/Day2_C/Code/pointer -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtANGLE -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore -I. ..\pointer\mainwindow.h -o release\moc_mainwindow.cpp + +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_mainwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_mainwindow.h +ui_mainwindow.h: ../pointer/mainwindow.ui + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\uic.exe ..\pointer\mainwindow.ui -o ui_mainwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + + + +####### Compile + +release/main.o: ../pointer/main.cpp ../pointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QApplication \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qeventloop.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qdesktopwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qguiapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qinputmethod.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o ..\pointer\main.cpp + +release/mainwindow.o: ../pointer/mainwindow.cpp ../pointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ui_mainwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\mainwindow.o ..\pointer\mainwindow.cpp + +release/moc_mainwindow.o: release/moc_mainwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_mainwindow.o release\moc_mainwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/main.o b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/main.o new file mode 100644 index 0000000..5ded27f Binary files /dev/null and b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/main.o differ diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/mainwindow.o b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/mainwindow.o new file mode 100644 index 0000000..1adad08 Binary files /dev/null and b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/mainwindow.o differ diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.cpp b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.cpp new file mode 100644 index 0000000..20aa3fb --- /dev/null +++ b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.cpp @@ -0,0 +1,89 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'mainwindow.h' +** +** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.0) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "../../pointer/mainwindow.h" +#include +#include +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'mainwindow.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 67 +#error "This file was generated using the moc from 5.6.0. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +struct qt_meta_stringdata_MainWindow_t { + QByteArrayData data[1]; + char stringdata0[11]; +}; +#define QT_MOC_LITERAL(idx, ofs, len) \ + Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ + qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \ + - idx * sizeof(QByteArrayData)) \ + ) +static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { + { +QT_MOC_LITERAL(0, 0, 10) // "MainWindow" + + }, + "MainWindow" +}; +#undef QT_MOC_LITERAL + +static const uint qt_meta_data_MainWindow[] = { + + // content: + 7, // revision + 0, // classname + 0, 0, // classinfo + 0, 0, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + 0 // eod +}; + +void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + Q_UNUSED(_o); + Q_UNUSED(_id); + Q_UNUSED(_c); + Q_UNUSED(_a); +} + +const QMetaObject MainWindow::staticMetaObject = { + { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data, + qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} +}; + + +const QMetaObject *MainWindow::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; +} + +void *MainWindow::qt_metacast(const char *_clname) +{ + if (!_clname) return Q_NULLPTR; + if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) + return static_cast(const_cast< MainWindow*>(this)); + return QMainWindow::qt_metacast(_clname); +} + +int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QMainWindow::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.o b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.o new file mode 100644 index 0000000..50845dd Binary files /dev/null and b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.o differ diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/pointer.exe b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/pointer.exe new file mode 100644 index 0000000..49eb98d Binary files /dev/null and b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/pointer.exe differ diff --git a/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/ui_mainwindow.h b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/ui_mainwindow.h new file mode 100644 index 0000000..f09670a --- /dev/null +++ b/C语言提高/days02/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/ui_mainwindow.h @@ -0,0 +1,69 @@ +/******************************************************************************** +** Form generated from reading UI file 'mainwindow.ui' +** +** Created by: Qt User Interface Compiler version 5.6.0 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_MAINWINDOW_H +#define UI_MAINWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_MainWindow +{ +public: + QMenuBar *menuBar; + QToolBar *mainToolBar; + QWidget *centralWidget; + QStatusBar *statusBar; + + void setupUi(QMainWindow *MainWindow) + { + if (MainWindow->objectName().isEmpty()) + MainWindow->setObjectName(QStringLiteral("MainWindow")); + MainWindow->resize(400, 300); + menuBar = new QMenuBar(MainWindow); + menuBar->setObjectName(QStringLiteral("menuBar")); + MainWindow->setMenuBar(menuBar); + mainToolBar = new QToolBar(MainWindow); + mainToolBar->setObjectName(QStringLiteral("mainToolBar")); + MainWindow->addToolBar(mainToolBar); + centralWidget = new QWidget(MainWindow); + centralWidget->setObjectName(QStringLiteral("centralWidget")); + MainWindow->setCentralWidget(centralWidget); + statusBar = new QStatusBar(MainWindow); + statusBar->setObjectName(QStringLiteral("statusBar")); + MainWindow->setStatusBar(statusBar); + + retranslateUi(MainWindow); + + QMetaObject::connectSlotsByName(MainWindow); + } // setupUi + + void retranslateUi(QMainWindow *MainWindow) + { + MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0)); + } // retranslateUi + +}; + +namespace Ui { + class MainWindow: public Ui_MainWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_MAINWINDOW_H diff --git a/C语言提高/days02/Code/pointer/main.cpp b/C语言提高/days02/Code/pointer/main.cpp new file mode 100644 index 0000000..f924afb --- /dev/null +++ b/C语言提高/days02/Code/pointer/main.cpp @@ -0,0 +1,19 @@ +#include "mainwindow.h" +#include +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + int a2 = 10; + qDebug("%d",&a2); + + *(int*)2686464 = 10000; + + qDebug("%d",a2); + + return a.exec(); +} diff --git a/C语言提高/days02/Code/pointer/mainwindow.cpp b/C语言提高/days02/Code/pointer/mainwindow.cpp new file mode 100644 index 0000000..12d07c0 --- /dev/null +++ b/C语言提高/days02/Code/pointer/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/C语言提高/days02/Code/pointer/mainwindow.h b/C语言提高/days02/Code/pointer/mainwindow.h new file mode 100644 index 0000000..29bb970 --- /dev/null +++ b/C语言提高/days02/Code/pointer/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/C语言提高/days02/Code/pointer/mainwindow.ui b/C语言提高/days02/Code/pointer/mainwindow.ui new file mode 100644 index 0000000..7de574d --- /dev/null +++ b/C语言提高/days02/Code/pointer/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/C语言提高/days02/Code/pointer/pointer.pro b/C语言提高/days02/Code/pointer/pointer.pro new file mode 100644 index 0000000..0def6c2 --- /dev/null +++ b/C语言提高/days02/Code/pointer/pointer.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2018-05-06T14:47:07 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = pointer +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui diff --git a/C语言提高/days02/Code/pointer/pointer.pro.user b/C语言提高/days02/Code/pointer/pointer.pro.user new file mode 100644 index 0000000..a4e6539 --- /dev/null +++ b/C语言提高/days02/Code/pointer/pointer.pro.user @@ -0,0 +1,316 @@ + + + + + + EnvironmentId + {0c64c320-1675-4f2e-bd9b-2833d63962f9} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.6.0 MinGW 32bit + Desktop Qt 5.6.0 MinGW 32bit + qt.56.win32_mingw49_kit + 0 + 0 + 0 + + E:/0504/sendToStudent/Day2_C/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + 构建 + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + 清理 + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + E:/0504/sendToStudent/Day2_C/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + 构建 + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + 清理 + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + E:/0504/sendToStudent/Day2_C/Code/build-pointer-Desktop_Qt_5_6_0_MinGW_32bit-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + 构建 + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + 清理 + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + 部署 + + ProjectExplorer.BuildSteps.Deploy + + 1 + 在本地部署 + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + pointer + + Qt4ProjectManager.Qt4RunConfiguration:E:/0504/sendToStudent/Day2_C/Code/pointer/pointer.pro + true + + pointer.pro + false + false + + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/C语言提高/days02/Doc/Day2笔记.docx b/C语言提高/days02/Doc/Day2笔记.docx new file mode 100644 index 0000000..24b6f1c Binary files /dev/null and b/C语言提高/days02/Doc/Day2笔记.docx differ diff --git a/C语言提高/days02/Doc/内存的存储方式解析图.png b/C语言提高/days02/Doc/内存的存储方式解析图.png new file mode 100644 index 0000000..d929cb6 Binary files /dev/null and b/C语言提高/days02/Doc/内存的存储方式解析图.png differ diff --git a/C语言提高/days02/Doc/指针步长解析图.png b/C语言提高/days02/Doc/指针步长解析图.png new file mode 100644 index 0000000..5aa06d5 Binary files /dev/null and b/C语言提高/days02/Doc/指针步长解析图.png differ diff --git a/C语言提高/days02/Doc/普通函数的调用流程解析图.png b/C语言提高/days02/Doc/普通函数的调用流程解析图.png new file mode 100644 index 0000000..616a2d4 Binary files /dev/null and b/C语言提高/days02/Doc/普通函数的调用流程解析图.png differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.sdf b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.sdf new file mode 100644 index 0000000..f601f6c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.sdf differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.sln b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.sln new file mode 100644 index 0000000..2694e74 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.sln @@ -0,0 +1,70 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 calloc和realloc", "01 calloc和realloc\01 calloc和realloc.vcxproj", "{3BE49409-34A7-41C5-B8E0-2BDE3378E712}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 sscanf", "02 sscanf\02 sscanf.vcxproj", "{28ECF2A8-5C11-4E09-9109-8C2E45241DF4}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 查找子串", "03 查找子串\03 查找子串.vcxproj", "{45DFD006-92B3-4539-B1DF-3A6158729841}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 指针的易错点", "04 指针的易错点\04 指针的易错点.vcxproj", "{4E7629B9-4FB5-407A-895F-CED4BC71D83C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 const的使用场景", "05 const的使用场景\05 const的使用场景.vcxproj", "{F4832BBE-9D86-4815-BA34-51354FFB683A}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06 二级指针做函数参数的输入特性", "06 二级指针做函数参数的输入特性\06 二级指针做函数参数的输入特性.vcxproj", "{EFD60D96-EC6F-469C-9B8B-5519B513B3C2}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "07 二级指针做函数参数的输出特性", "07 二级指针做函数参数的输出特性\07 二级指针做函数参数的输出特性.vcxproj", "{49300166-345A-42EB-963B-2D7E7408E5FB}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "08 二级指针练习-文件读写", "08 二级指针练习-文件读写\08 二级指针练习-文件读写.vcxproj", "{CB41E7A8-1F97-4A5B-9E7B-D06C1D6CA134}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "09 位运算", "09 位运算\09 位运算.vcxproj", "{88C77840-5FD4-4173-A9F0-67F80DFE2F5F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3BE49409-34A7-41C5-B8E0-2BDE3378E712}.Debug|Win32.ActiveCfg = Debug|Win32 + {3BE49409-34A7-41C5-B8E0-2BDE3378E712}.Debug|Win32.Build.0 = Debug|Win32 + {3BE49409-34A7-41C5-B8E0-2BDE3378E712}.Release|Win32.ActiveCfg = Release|Win32 + {3BE49409-34A7-41C5-B8E0-2BDE3378E712}.Release|Win32.Build.0 = Release|Win32 + {28ECF2A8-5C11-4E09-9109-8C2E45241DF4}.Debug|Win32.ActiveCfg = Debug|Win32 + {28ECF2A8-5C11-4E09-9109-8C2E45241DF4}.Debug|Win32.Build.0 = Debug|Win32 + {28ECF2A8-5C11-4E09-9109-8C2E45241DF4}.Release|Win32.ActiveCfg = Release|Win32 + {28ECF2A8-5C11-4E09-9109-8C2E45241DF4}.Release|Win32.Build.0 = Release|Win32 + {45DFD006-92B3-4539-B1DF-3A6158729841}.Debug|Win32.ActiveCfg = Debug|Win32 + {45DFD006-92B3-4539-B1DF-3A6158729841}.Debug|Win32.Build.0 = Debug|Win32 + {45DFD006-92B3-4539-B1DF-3A6158729841}.Release|Win32.ActiveCfg = Release|Win32 + {45DFD006-92B3-4539-B1DF-3A6158729841}.Release|Win32.Build.0 = Release|Win32 + {4E7629B9-4FB5-407A-895F-CED4BC71D83C}.Debug|Win32.ActiveCfg = Debug|Win32 + {4E7629B9-4FB5-407A-895F-CED4BC71D83C}.Debug|Win32.Build.0 = Debug|Win32 + {4E7629B9-4FB5-407A-895F-CED4BC71D83C}.Release|Win32.ActiveCfg = Release|Win32 + {4E7629B9-4FB5-407A-895F-CED4BC71D83C}.Release|Win32.Build.0 = Release|Win32 + {F4832BBE-9D86-4815-BA34-51354FFB683A}.Debug|Win32.ActiveCfg = Debug|Win32 + {F4832BBE-9D86-4815-BA34-51354FFB683A}.Debug|Win32.Build.0 = Debug|Win32 + {F4832BBE-9D86-4815-BA34-51354FFB683A}.Release|Win32.ActiveCfg = Release|Win32 + {F4832BBE-9D86-4815-BA34-51354FFB683A}.Release|Win32.Build.0 = Release|Win32 + {EFD60D96-EC6F-469C-9B8B-5519B513B3C2}.Debug|Win32.ActiveCfg = Debug|Win32 + {EFD60D96-EC6F-469C-9B8B-5519B513B3C2}.Debug|Win32.Build.0 = Debug|Win32 + {EFD60D96-EC6F-469C-9B8B-5519B513B3C2}.Release|Win32.ActiveCfg = Release|Win32 + {EFD60D96-EC6F-469C-9B8B-5519B513B3C2}.Release|Win32.Build.0 = Release|Win32 + {49300166-345A-42EB-963B-2D7E7408E5FB}.Debug|Win32.ActiveCfg = Debug|Win32 + {49300166-345A-42EB-963B-2D7E7408E5FB}.Debug|Win32.Build.0 = Debug|Win32 + {49300166-345A-42EB-963B-2D7E7408E5FB}.Release|Win32.ActiveCfg = Release|Win32 + {49300166-345A-42EB-963B-2D7E7408E5FB}.Release|Win32.Build.0 = Release|Win32 + {CB41E7A8-1F97-4A5B-9E7B-D06C1D6CA134}.Debug|Win32.ActiveCfg = Debug|Win32 + {CB41E7A8-1F97-4A5B-9E7B-D06C1D6CA134}.Debug|Win32.Build.0 = Debug|Win32 + {CB41E7A8-1F97-4A5B-9E7B-D06C1D6CA134}.Release|Win32.ActiveCfg = Release|Win32 + {CB41E7A8-1F97-4A5B-9E7B-D06C1D6CA134}.Release|Win32.Build.0 = Release|Win32 + {88C77840-5FD4-4173-A9F0-67F80DFE2F5F}.Debug|Win32.ActiveCfg = Debug|Win32 + {88C77840-5FD4-4173-A9F0-67F80DFE2F5F}.Debug|Win32.Build.0 = Debug|Win32 + {88C77840-5FD4-4173-A9F0-67F80DFE2F5F}.Release|Win32.ActiveCfg = Release|Win32 + {88C77840-5FD4-4173-A9F0-67F80DFE2F5F}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.v12.suo b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.v12.suo new file mode 100644 index 0000000..2041b2c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc.v12.suo differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.c b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.c new file mode 100644 index 0000000..c2e64a2 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.c @@ -0,0 +1,62 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//calloc +void test01() +{ + //int * p = malloc(sizeof(int)* 10); + + int * p = calloc(10, sizeof(int)); //mallocͬĵط ݳʼΪ0 + + for (int i = 0; i < 10;i++) + { + printf("%d\n", p[i]); + } + + if (p!= NULL) + { + free(p); + p = NULL; + } + +} + +//realloc ڶڴ +void test02() +{ + int * p = malloc(sizeof(int)* 10); + + printf("%d\n", p); + + for (int i = 0; i < 10; i++) + { + p[i] = i; + } + p = realloc(p, sizeof(int)* 20); + + for (int i = 0; i < 20;i++) + { + printf("%d\n", p[i]); + } + + printf("%d\n", p); + + if (p!=NULL) + { + free(p); + p = NULL; + } + +} + + + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.vcxproj new file mode 100644 index 0000000..e58ec91 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {3BE49409-34A7-41C5-B8E0-2BDE3378E712} + Win32Proj + My01calloc和realloc + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.vcxproj.filters new file mode 100644 index 0000000..24028f4 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/01 calloc和realloc.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/01 calloc和realloc.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/01 calloc和realloc.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/01 calloc和realloc.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/CL.read.1.tlog new file mode 100644 index 0000000..687ffc4 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f1cd83e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/cl.command.1.tlog new file mode 100644 index 0000000..e973017 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.command.1.tlog new file mode 100644 index 0000000..c79a0be Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.read.1.tlog new file mode 100644 index 0000000..470276a Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.write.1.tlog new file mode 100644 index 0000000..47a2716 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 callo.3BE49409.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.Build.CppClean.log b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.Build.CppClean.log new file mode 100644 index 0000000..a546e73 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\vc120.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\vc120.idb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 calloc和realloc.obj +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\01 calloc和realloc.ilk +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\01 calloc和realloc.exe +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\01 calloc和realloc.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 callo.3be49409.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 callo.3be49409.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 callo.3be49409.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 callo.3be49409.tlog\link.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 callo.3be49409.tlog\link.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\01 calloc和realloc\debug\01 callo.3be49409.tlog\link.write.1.tlog diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.log b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.log new file mode 100644 index 0000000..09e435f --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.log @@ -0,0 +1,2 @@ + 01 calloc和realloc.c + 01 calloc和realloc.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\01 calloc和realloc.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.obj b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.obj new file mode 100644 index 0000000..1278986 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/01 calloc和realloc.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/vc120.idb new file mode 100644 index 0000000..383dd4e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/vc120.pdb new file mode 100644 index 0000000..240e20b Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/01 calloc和realloc/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.c b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.c new file mode 100644 index 0000000..97b6882 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.c @@ -0,0 +1,154 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +//1%*s%*d +void test01() +{ + char * str = "12345abcde"; + char buf[1024] = { 0 }; + sscanf(str, "%*d%s", buf); + + printf("%s\n", buf); +} + +void test02() +{ + char * str = "abcde12345"; //мӿո\tʵЧ + + char buf[1024] = { 0 }; + + //sscanf(str, "%*s%s", buf); + + sscanf(str, "%*[a-z]%s", buf); + + printf("%s\n", buf); + +} + + +//2%[width]s ָȵ +void test03() +{ + char * str = "12345abcde"; + + char buf[1024] = { 0 }; + + sscanf(str, "%6s", buf); + + printf("%s\n", buf); + +} + +//3%[a-z] ƥazַ(ܶƥ) +void test04() +{ + char * str = "12345abcde"; + + char buf[1024] = { 0 }; + + sscanf(str, "%*d%[a-c]", buf); + + + printf("%s\n", buf); +} + +//4 %[aBc] ƥaBcһԱ̰ +void test05() +{ + char * str = "aabcde12345"; + + char buf[1024] = { 0 }; + + sscanf(str, "%[aBc]", buf); //ƥУֻҪһƥʧܣͲڽƥ + + printf("%s\n", buf); +} + +//5%[^a] ƥaַ̰ +void test06() +{ + char * str = "abcde12345"; + + char buf[1024] = { 0 }; + + sscanf(str, "%[^c]" , buf); + + printf("%s\n", buf); +} + +//6%[^a-z] ʾȡa-zַ +void test07() +{ + char * str = "abcde12345"; + + char buf[1024] = { 0 }; + + sscanf(str, "%[^0-9]", buf); + + printf("%s\n", buf); +} + + +//7 +void test08() +{ + char * ip = "127.0.0.1"; + + int num1 = 0; + int num2 = 0; + int num3 = 0; + int num4 = 0; + + sscanf(ip, "%d.%d.%d.%d", &num1, &num2, &num3, &num4); + + printf("%d\n", num1); + printf("%d\n", num2); + printf("%d\n", num3); + printf("%d\n", num4); +} + + +void test09() +{ + char * str = "abcde#zhangtao@12345"; + + char buf[1024] = { 0 }; + + sscanf(str, " %*[^#]#%[^@] ", buf); + + printf("%s\n", buf); + +} + +//ѸַΪ: helloworld@itcast.cn,ʵhelloworlditcast.cn +void test10() +{ + char * str = "helloworld@itcast.cn"; + + char buf1[1024] = { 0 }; + char buf2[1024] = { 0 }; + + sscanf(str, "%[a-z]%*[@]%s", buf1, buf2); + + printf("%s\n", buf1); + printf("%s\n", buf2); +} + +int main(){ + + //test01(); + //test02(); + //test03(); + //test04(); + //test05(); + //test06(); + //test07(); + //test08(); + //test09(); + test10(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.vcxproj new file mode 100644 index 0000000..13bcfc9 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {28ECF2A8-5C11-4E09-9109-8C2E45241DF4} + Win32Proj + My02sscanf + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.vcxproj.filters new file mode 100644 index 0000000..8639756 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/02 sscanf.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.log b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.log new file mode 100644 index 0000000..e67709f --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.log @@ -0,0 +1,2 @@ + 02 sscanf.c + 02 sscanf.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\02 sscanf.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.obj b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.obj new file mode 100644 index 0000000..8772e45 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/02 sscanf.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/02 sscanf.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/02 sscanf.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/CL.read.1.tlog new file mode 100644 index 0000000..0904839 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/CL.write.1.tlog new file mode 100644 index 0000000..c7b435f Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/cl.command.1.tlog new file mode 100644 index 0000000..17a3f0e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.command.1.tlog new file mode 100644 index 0000000..43b8e02 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.read.1.tlog new file mode 100644 index 0000000..963e830 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.write.1.tlog new file mode 100644 index 0000000..cb28e92 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/02 sscanf.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/vc120.idb new file mode 100644 index 0000000..00b3633 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/vc120.pdb new file mode 100644 index 0000000..6e54653 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/02 sscanf/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.c b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.c new file mode 100644 index 0000000..5e61864 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.c @@ -0,0 +1,71 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +//Ż˼· memcmp( str,substr,3) == 0 + +int myStrstr( char * str , char * subStr ) +{ + int num = 0; + while (*str != '\0') + { + if (*str != *subStr) + { + str++; + num++; + continue; + } + + //ʱָ + char * tmpStr = str; + char * tmpSubStr = subStr; + + while ( *tmpSubStr !='\0') + { + if (*tmpStr != *tmpSubStr) + { + //ƥʧ + str++; + num++; + break; + } + tmpStr++; + tmpSubStr++; + } + + if (*tmpSubStr == '\0') + { + //ƥɹ + return num; + } + } + + return -1; +} + +void test01() +{ + char * str = "abcdefgdnf"; + + int ret = myStrstr(str, "dnf"); + + if (ret == -1) + { + printf("δҵӴ\n"); + } + else + { + printf("ҵӴλΪ%d\n", ret); + } + +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.vcxproj new file mode 100644 index 0000000..97968e5 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {45DFD006-92B3-4539-B1DF-3A6158729841} + Win32Proj + My03查找子串 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.vcxproj.filters new file mode 100644 index 0000000..4322155 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/03 查找子串.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.log b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.log new file mode 100644 index 0000000..a4be02a --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.log @@ -0,0 +1,2 @@ + 03 查找子串.c + 03 查找子串.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\03 查找子串.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.obj b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.obj new file mode 100644 index 0000000..fe586bb Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/03 查找子串.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/03 查找子串.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/03 查找子串.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4d53c5d Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/CL.write.1.tlog new file mode 100644 index 0000000..78998c9 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/cl.command.1.tlog new file mode 100644 index 0000000..dee96b0 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.command.1.tlog new file mode 100644 index 0000000..f2995d6 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.read.1.tlog new file mode 100644 index 0000000..c086daf Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.write.1.tlog new file mode 100644 index 0000000..7f0b1d2 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/03 查找子串.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/vc120.idb new file mode 100644 index 0000000..695690b Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/vc120.pdb new file mode 100644 index 0000000..ad65a98 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/03 查找子串/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.c b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.c new file mode 100644 index 0000000..1e980c2 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.c @@ -0,0 +1,32 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void test01() +{ + char * p = malloc(sizeof(char)* 64); + + //ʱָ ڴ + char * pp = p; + for (int i = 0; i < 10;i++) + { + *pp = i + 97; + printf("%c", *pp); + pp++; //׵ַָƫƺ󣬾ͲָͷŶڴ + } + + if (p != NULL) + { + free(p); + p = NULL; + } +} + +int main(){ + test01(); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.vcxproj new file mode 100644 index 0000000..ad7a33b --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4E7629B9-4FB5-407A-895F-CED4BC71D83C} + Win32Proj + My04指针的易错点 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.vcxproj.filters new file mode 100644 index 0000000..2f8ebcf --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/04 指针的易错点.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.log b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.log new file mode 100644 index 0000000..0a4724f --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.log @@ -0,0 +1,2 @@ + 04 指针的易错点.c + 04 指针的易错点.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\04 指针的易错点.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.obj b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.obj new file mode 100644 index 0000000..124f307 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/04 指针的易错点.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/04 指针的易错点.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/04 指针的易错点.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/CL.read.1.tlog new file mode 100644 index 0000000..25e8c90 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/CL.write.1.tlog new file mode 100644 index 0000000..72ec3f6 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/cl.command.1.tlog new file mode 100644 index 0000000..89e7a6f Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.command.1.tlog new file mode 100644 index 0000000..ab253c2 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.read.1.tlog new file mode 100644 index 0000000..bee4e05 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.write.1.tlog new file mode 100644 index 0000000..27c5c7a Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/04 指针的易错点.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/vc120.idb new file mode 100644 index 0000000..1059932 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/vc120.pdb new file mode 100644 index 0000000..4934558 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/04 指针的易错点/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.c b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.c new file mode 100644 index 0000000..4e7fdbe --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.c @@ -0,0 +1,42 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +struct Person +{ + char name[64]; + int age; + int Id; + double score; +}; + +//constʹóκеβΣֹ +void printPerson( const struct Person *p ) +{ + +// p->age = 100; const֮ + + //printf(" %s 䣺 %d ѧţ %d %f\n", p.name, p.age, p.Id, p.score); + + printf(" %s 䣺 %d ѧţ %d %f\n", p->name, p->age, p->Id, p->score); + +} + +void test01() +{ + struct Person p1 = { "", 18, 1, 60 }; + + + printPerson(&p1); + + printf("%d\n", p1.age); +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.vcxproj new file mode 100644 index 0000000..b6a5d03 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {F4832BBE-9D86-4815-BA34-51354FFB683A} + Win32Proj + My05const的使用场景 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.vcxproj.filters new file mode 100644 index 0000000..0b3a353 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/05 const的使用场景.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.log b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.log new file mode 100644 index 0000000..2f03d39 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.log @@ -0,0 +1,2 @@ + 05 const的使用场景.c + 05 const的使用场景.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\05 const的使用场景.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.obj b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.obj new file mode 100644 index 0000000..e285fd2 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/05 const的使用场景.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/05 const的使用场景.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/05 const的使用场景.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/CL.read.1.tlog new file mode 100644 index 0000000..1e5ccd4 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/CL.write.1.tlog new file mode 100644 index 0000000..146322c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/cl.command.1.tlog new file mode 100644 index 0000000..0e30057 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.command.1.tlog new file mode 100644 index 0000000..f85af6d Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.read.1.tlog new file mode 100644 index 0000000..7fc20fb Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.write.1.tlog new file mode 100644 index 0000000..58f1a5e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/05 const的使用场景.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/vc120.idb new file mode 100644 index 0000000..e947469 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/vc120.pdb new file mode 100644 index 0000000..d911aaf Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/05 const的使用场景/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.c b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.c new file mode 100644 index 0000000..a3d8490 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.c @@ -0,0 +1,79 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//ָ +//ڴ棬ʹ + +void printArray( int ** pArray , int len ) +{ + for (int i = 0; i < len; i++) + { + printf("%d\n", *pArray[i]); + } + +} + +void test01() +{ + //ڶڴ + int ** p = malloc(sizeof(int*)* 5); + + //ջϴ + int a1 = 10; + int a2 = 20; + int a3 = 30; + int a4 = 40; + int a5 = 50; + + p[0] = &a1; + p[1] = &a2; + p[2] = &a3; + p[3] = &a4; + p[4] = &a5; + + printArray(p, 5); + + if (p!=NULL) + { + free(p); + p = NULL; + } + +} + + +void test02() +{ + //ջϴ + int * pArray[5]; + + for (int i = 0; i < 5;i++) + { + pArray[i] = malloc(4); + *(pArray[i]) = 100 + i; + } + + int len = sizeof(pArray) / sizeof(int*); + printArray(pArray, len); + + + for (int i = 0; i < 5;i++) + { + if (pArray[i]!= NULL) + { + free(pArray[i]); + pArray[i] = NULL; + } + } + +} + +int main(){ + //test01(); + test02(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.vcxproj new file mode 100644 index 0000000..e5aaa4c --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {EFD60D96-EC6F-469C-9B8B-5519B513B3C2} + Win32Proj + My06二级指针做函数参数的输入特性 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.vcxproj.filters new file mode 100644 index 0000000..a7f9bb2 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/06 二级指针做函数参数的输入特性.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/06 二级指针做函数参数的输入特性.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/06 二级指针做函数参数的输入特性.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/06 二级指针做函数参数的输入特性.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5f3c6ed Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/CL.write.1.tlog new file mode 100644 index 0000000..10548ee Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d7a2b45 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.command.1.tlog new file mode 100644 index 0000000..12e5647 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.read.1.tlog new file mode 100644 index 0000000..784d113 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.write.1.tlog new file mode 100644 index 0000000..ae1f2fb Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做.EFD60D96.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.Build.CppClean.log b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.Build.CppClean.log new file mode 100644 index 0000000..94c82fa --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\vc120.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\vc120.idb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做函数参数的输入特性.obj +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\06 二级指针做函数参数的输入特性.ilk +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\06 二级指针做函数参数的输入特性.exe +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\06 二级指针做函数参数的输入特性.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做.efd60d96.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做.efd60d96.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做.efd60d96.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做.efd60d96.tlog\link.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做.efd60d96.tlog\link.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\06 二级指针做函数参数的输入特性\debug\06 二级指针做.efd60d96.tlog\link.write.1.tlog diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.log b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.log new file mode 100644 index 0000000..96c9d7e --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.log @@ -0,0 +1,2 @@ + 06 二级指针做函数参数的输入特性.c + 06 二级指针做函数参数的输入特性.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\06 二级指针做函数参数的输入特性.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.obj b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.obj new file mode 100644 index 0000000..b62ad7e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/06 二级指针做函数参数的输入特性.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/vc120.idb new file mode 100644 index 0000000..ccaec66 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/vc120.pdb new file mode 100644 index 0000000..020c521 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/06 二级指针做函数参数的输入特性/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.c b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.c new file mode 100644 index 0000000..e50c734 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.c @@ -0,0 +1,64 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void allocateSpace(int **p) +{ + int * arr = malloc(sizeof(int)* 10); + + for (int i = 0; i < 10; i++) + { + arr[i] = i + 10; + } + *p = arr; +} + +void printArray(int ** pArray, int len) +{ + for (int i = 0; i < 10; i++) + { + printf("%d\n", (*pArray)[i]); + } + +} + + +void freeSpace( int ** p ) +{ + if (*p!= NULL) + { + free(*p); + *p = NULL; + } +} + +void test01() +{ + int * p = NULL; + allocateSpace(&p); + + printArray(&p, 10); + + + freeSpace(&p); + + + if (p == NULL) + { + printf("ָ\n"); + } + else + { + printf("Ұָ\n"); + } + +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.vcxproj new file mode 100644 index 0000000..e46e1ad --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {49300166-345A-42EB-963B-2D7E7408E5FB} + Win32Proj + My07二级指针做函数参数的输出特性 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.vcxproj.filters new file mode 100644 index 0000000..f96b67c --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/07 二级指针做函数参数的输出特性.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/07 二级指针做函数参数的输出特性.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/07 二级指针做函数参数的输出特性.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/07 二级指针做函数参数的输出特性.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/CL.read.1.tlog new file mode 100644 index 0000000..46982c7 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/CL.write.1.tlog new file mode 100644 index 0000000..70c0126 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/cl.command.1.tlog new file mode 100644 index 0000000..8e0ce5b Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.command.1.tlog new file mode 100644 index 0000000..fa04d84 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.read.1.tlog new file mode 100644 index 0000000..927609a Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.write.1.tlog new file mode 100644 index 0000000..a8c6b84 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做.49300166.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.Build.CppClean.log b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.Build.CppClean.log new file mode 100644 index 0000000..3840682 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.Build.CppClean.log @@ -0,0 +1,5 @@ +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\07 二级指针做函数参数的输出特性\debug\vc120.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\07 二级指针做函数参数的输出特性\debug\vc120.idb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\07 二级指针做函数参数的输出特性\debug\07 二级指针做.49300166.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\07 二级指针做函数参数的输出特性\debug\07 二级指针做.49300166.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\07 二级指针做函数参数的输出特性\debug\07 二级指针做.49300166.tlog\cl.write.1.tlog diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.log b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.log new file mode 100644 index 0000000..a03418b --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.log @@ -0,0 +1,2 @@ + 07 二级指针做函数参数的输出特性.c + 07 二级指针做函数参数的输出特性.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\07 二级指针做函数参数的输出特性.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.obj b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.obj new file mode 100644 index 0000000..e12112e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/07 二级指针做函数参数的输出特性.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/vc120.idb new file mode 100644 index 0000000..2d6d870 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/vc120.pdb new file mode 100644 index 0000000..dce7407 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/07 二级指针做函数参数的输出特性/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.c b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.c new file mode 100644 index 0000000..6eac998 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.c @@ -0,0 +1,134 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +//ȡļ +int getFileLines(FILE * file) +{ + if (file == NULL) + { + return -1; + } + + char buf[1024]; //ȡݴ뵽buf + int num = 0; + while ( fgets(buf,1024,file) != NULL) + { + num++; + //printf("%s", buf); + } + + //ļ Ϊļ + fseek(file, 0, SEEK_SET); + + return num; +} + +//1 ļָ 2 Ч 3 +void readFileData(FILE * file, int len, char ** pArray) +{ + if (file == NULL) + { + return; + } + if (len <= 0 ) + { + return; + } + if (pArray == NULL) + { + return; + } + + char buf[1024]; //ȡݴ뵽buf + + int index = 0; + while (fgets(buf, 1024, file) != NULL) + { + //bufоǴŵÿе + /* + aaaaaaaaaa + bbbb + ccccc + */ + int currentLen = strlen(buf) + 1; + char * currentP = malloc(sizeof(char)*currentLen); + //ݿڴ + strcpy(currentP, buf); + + pArray[index++] = currentP; + + //ջ + memset(buf, 0, 1024); + + } + +} + +void showFileData(char** pArray, int len) +{ + for (int i = 0; i < len;i++) + { + printf(" %d еΪ %s", i + 1, pArray[i]); + } + +} + +void freeSpace(char ** pArray ,int len) +{ + for (int i = 0; i < len;i++) + { + if (pArray[i] != NULL) + { + free(pArray[i]); + pArray[i] = NULL; + } + } + + free(pArray); + pArray = NULL; +} + + +void test01() +{ + FILE * file = fopen("./test.txt", "r"); + if (file == NULL) + { + printf("ļʧ\n"); + return; + } + + int len = getFileLines(file); + printf("ļЧΪ%d\n", len); + + char ** pArray = malloc(sizeof(char *)*len); + + //ļе ȡ 뵽pArray + readFileData(file, len, pArray); + + + //ӡ + showFileData(pArray, len); + + //ͷ + freeSpace(pArray , len); + pArray = NULL; + + //رļ + fclose(file); + file = NULL; + +} + +int main(){ + + test01(); + + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.vcxproj new file mode 100644 index 0000000..4692cfe --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {CB41E7A8-1F97-4A5B-9E7B-D06C1D6CA134} + Win32Proj + My08二级指针练习文件读写 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.vcxproj.filters new file mode 100644 index 0000000..f240a62 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/08 二级指针练习-文件读写.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.Build.CppClean.log b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.Build.CppClean.log new file mode 100644 index 0000000..09ac1e9 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\vc120.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\vc120.idb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.obj +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\08 二级指针练习-文件读写.ilk +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\08 二级指针练习-文件读写.exe +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\debug\08 二级指针练习-文件读写.pdb +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.tlog\link.command.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.tlog\link.read.1.tlog +e:\0504\sendtostudent\day3_c\code\01 calloc和realloc\08 二级指针练习-文件读写\debug\08 二级指针练习-文件读写.tlog\link.write.1.tlog diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.log b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.log new file mode 100644 index 0000000..2fd4b0d --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.log @@ -0,0 +1,2 @@ + 08 二级指针练习-文件读写.c + 08 二级指针练习-文件读写.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\08 二级指针练习-文件读写.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.obj b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.obj new file mode 100644 index 0000000..e528b0b Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/08 二级指针练习-文件读写.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/08 二级指针练习-文件读写.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/08 二级指针练习-文件读写.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/CL.read.1.tlog new file mode 100644 index 0000000..dea6672 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/CL.write.1.tlog new file mode 100644 index 0000000..6270b58 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/cl.command.1.tlog new file mode 100644 index 0000000..5e7a5f7 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.command.1.tlog new file mode 100644 index 0000000..47bd3b3 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.read.1.tlog new file mode 100644 index 0000000..542205d Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.write.1.tlog new file mode 100644 index 0000000..9a88d8e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/08 二级指针练习-文件读写.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/vc120.idb new file mode 100644 index 0000000..3af1b73 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/vc120.pdb new file mode 100644 index 0000000..020c939 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/test.txt b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/test.txt new file mode 100644 index 0000000..0981db2 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/08 二级指针练习-文件读写/test.txt @@ -0,0 +1,5 @@ +aaaaaaaaaa +bbbb +ccccc +ddddddd +eeeeeeee diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.c b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.c new file mode 100644 index 0000000..9f91af8 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.c @@ -0,0 +1,103 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1λȡ ~ +void test01() +{ + int num = 2; + printf("~num = %d\n", ~num); // -ܴ -2 253 1 -С +ܴ -3 + + + // 010 λȡ 101 Դ + // 101 110 + 1 = 111 +} + + +//2λ +void test02() +{ + int num = 124; + if ( (num & 1) == 0) + { + printf("numΪż\n"); + } + else + { + printf("numΪ\n"); + } +} + +//3λ | +void test03() +{ + int num1 = 5; + int num2 = 3; + + printf("num1 | num2 = %d\n", num1 | num2); // 7 +} + +void test04() +{ + int num1 = 10; + int num2 = 20; + + printf("num1 = %d\n", num1); + printf("num2 = %d\n", num2); + + //int temp = num1; + //num1 = num2; + //num2 = temp; + + //ðλʵĽ + + num1 = num1 ^ num2; + num2 = num1 ^ num2; + num1 = num1 ^ num2; + + + + //ʱʵ + //num1 = num1 + num2; + //num2 = num1 - num2; + //num1 = num1 - num2; + + + printf("\n"); + printf("num1 = %d\n", num1); + printf("num2 = %d\n", num2); + + +} + + +// +void test05() +{ + int num = 10; + printf("%d\n", num <<= 2); + + +} + +// +void test06() +{ + int num = 10; + printf("%d\n", num >>= 1); + +} + + +int main(){ + + //test01(); + //test02(); + //test03(); + //test04(); + //test05(); + test06(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.vcxproj b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.vcxproj new file mode 100644 index 0000000..682fa47 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {88C77840-5FD4-4173-A9F0-67F80DFE2F5F} + Win32Proj + My09位运算 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.vcxproj.filters b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.vcxproj.filters new file mode 100644 index 0000000..270ab18 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/09 位运算.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.log b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.log new file mode 100644 index 0000000..ab0f0d7 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.log @@ -0,0 +1,2 @@ + 09 位运算.c + 09 位运算.vcxproj -> E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\Debug\09 位运算.exe diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.obj b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.obj new file mode 100644 index 0000000..d6118b4 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.obj differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/09 位运算.lastbuildstate b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/09 位运算.lastbuildstate new file mode 100644 index 0000000..f88a832 --- /dev/null +++ b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/09 位运算.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day3_C\Code\01 calloc和realloc\| diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/CL.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/CL.read.1.tlog new file mode 100644 index 0000000..e51f8c0 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/CL.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/CL.write.1.tlog new file mode 100644 index 0000000..4c2bee3 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/cl.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d854978 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.command.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.command.1.tlog new file mode 100644 index 0000000..980c223 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.command.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.read.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.read.1.tlog new file mode 100644 index 0000000..8a7ae42 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.read.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.write.1.tlog b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.write.1.tlog new file mode 100644 index 0000000..24cba4a Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/09 位运算.tlog/link.write.1.tlog differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/vc120.idb b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/vc120.idb new file mode 100644 index 0000000..47ae42f Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/vc120.idb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/vc120.pdb b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/vc120.pdb new file mode 100644 index 0000000..d39302a Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/09 位运算/Debug/vc120.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.exe new file mode 100644 index 0000000..a20cd6a Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.ilk new file mode 100644 index 0000000..dd0d080 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.pdb new file mode 100644 index 0000000..2ca7d16 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/01 calloc和realloc.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.exe new file mode 100644 index 0000000..f0e9f16 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.ilk new file mode 100644 index 0000000..8b20e8c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.pdb new file mode 100644 index 0000000..40de37f Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/02 sscanf.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.exe new file mode 100644 index 0000000..f7490bb Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.ilk new file mode 100644 index 0000000..74767a8 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.pdb new file mode 100644 index 0000000..764b40c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/03 查找子串.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.exe new file mode 100644 index 0000000..a672659 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.ilk new file mode 100644 index 0000000..6dd75ff Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.pdb new file mode 100644 index 0000000..7546e5c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/04 指针的易错点.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.exe new file mode 100644 index 0000000..1610f69 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.ilk new file mode 100644 index 0000000..da8a26c Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.pdb new file mode 100644 index 0000000..d58f5f6 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/05 const的使用场景.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.exe new file mode 100644 index 0000000..34c0769 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.ilk new file mode 100644 index 0000000..fa3d58f Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.pdb new file mode 100644 index 0000000..efa508e Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/06 二级指针做函数参数的输入特性.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.exe new file mode 100644 index 0000000..6172f41 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.ilk new file mode 100644 index 0000000..f2fc8e2 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.pdb new file mode 100644 index 0000000..ec22673 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/07 二级指针做函数参数的输出特性.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.exe new file mode 100644 index 0000000..cbafa84 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.ilk new file mode 100644 index 0000000..7757fcc Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.pdb new file mode 100644 index 0000000..e473d14 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/08 二级指针练习-文件读写.pdb differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.exe b/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.exe new file mode 100644 index 0000000..c8c73c1 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.exe differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.ilk b/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.ilk new file mode 100644 index 0000000..c69ea18 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.ilk differ diff --git a/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.pdb b/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.pdb new file mode 100644 index 0000000..a7572c2 Binary files /dev/null and b/C语言提高/days03/Code/01 calloc和realloc/Debug/09 位运算.pdb differ diff --git a/C语言提高/days03/Doc/Day3笔记.docx b/C语言提高/days03/Doc/Day3笔记.docx new file mode 100644 index 0000000..dfacae2 Binary files /dev/null and b/C语言提高/days03/Doc/Day3笔记.docx differ diff --git a/C语言提高/days03/Doc/realloc的机制.png b/C语言提高/days03/Doc/realloc的机制.png new file mode 100644 index 0000000..528ec57 Binary files /dev/null and b/C语言提高/days03/Doc/realloc的机制.png differ diff --git a/C语言提高/days03/Doc/二级指针做函数参数输入特性-堆区分配内存.png b/C语言提高/days03/Doc/二级指针做函数参数输入特性-堆区分配内存.png new file mode 100644 index 0000000..a14db89 Binary files /dev/null and b/C语言提高/days03/Doc/二级指针做函数参数输入特性-堆区分配内存.png differ diff --git a/C语言提高/days03/Doc/二级指针做函数参数输入特性-栈上分配内存.png b/C语言提高/days03/Doc/二级指针做函数参数输入特性-栈上分配内存.png new file mode 100644 index 0000000..38c4e8e Binary files /dev/null and b/C语言提高/days03/Doc/二级指针做函数参数输入特性-栈上分配内存.png differ diff --git a/C语言提高/days03/Doc/位运算解析图.png b/C语言提高/days03/Doc/位运算解析图.png new file mode 100644 index 0000000..7ee16ab Binary files /dev/null and b/C语言提高/days03/Doc/位运算解析图.png differ diff --git a/C语言提高/days03/Doc/实现自己的查找子串功能解析图.png b/C语言提高/days03/Doc/实现自己的查找子串功能解析图.png new file mode 100644 index 0000000..61d7787 Binary files /dev/null and b/C语言提高/days03/Doc/实现自己的查找子串功能解析图.png differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.sdf b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.sdf new file mode 100644 index 0000000..cd9bd06 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.sdf differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.sln b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.sln new file mode 100644 index 0000000..1523367 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.sln @@ -0,0 +1,58 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 一维数组名称", "01 一维数组名称\01 一维数组名称.vcxproj", "{C2EF3694-6CB6-4F5E-B52F-65988796420E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 定义数组指针", "02 定义数组指针\02 定义数组指针.vcxproj", "{4D15FAB9-1CAF-4FF2-B8CB-1464A3E6F751}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 二维数组名称", "03 二维数组名称\03 二维数组名称.vcxproj", "{AD2C2839-CCC5-4C8E-926C-730C3CF25599}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 指针数组的排序", "04 指针数组的排序\04 指针数组的排序.vcxproj", "{95DD4B1A-9B00-493D-B235-3FF01DA0FB5E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 结构体基本概念", "05 结构体基本概念\05 结构体基本概念.vcxproj", "{3541A485-9A15-4DA6-B63C-A0977E90E7BC}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06 结构体赋值的问题以及解决", "06 结构体赋值的问题以及解决\06 结构体赋值的问题以及解决.vcxproj", "{CF524335-9B40-45A3-85EB-3F266CA9ADB9}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "07 结构体嵌套一级指针练习", "07 结构体嵌套一级指针练习\07 结构体嵌套一级指针练习.vcxproj", "{A63B1A00-728A-48D5-B7EB-E2A29C1721AF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C2EF3694-6CB6-4F5E-B52F-65988796420E}.Debug|Win32.ActiveCfg = Debug|Win32 + {C2EF3694-6CB6-4F5E-B52F-65988796420E}.Debug|Win32.Build.0 = Debug|Win32 + {C2EF3694-6CB6-4F5E-B52F-65988796420E}.Release|Win32.ActiveCfg = Release|Win32 + {C2EF3694-6CB6-4F5E-B52F-65988796420E}.Release|Win32.Build.0 = Release|Win32 + {4D15FAB9-1CAF-4FF2-B8CB-1464A3E6F751}.Debug|Win32.ActiveCfg = Debug|Win32 + {4D15FAB9-1CAF-4FF2-B8CB-1464A3E6F751}.Debug|Win32.Build.0 = Debug|Win32 + {4D15FAB9-1CAF-4FF2-B8CB-1464A3E6F751}.Release|Win32.ActiveCfg = Release|Win32 + {4D15FAB9-1CAF-4FF2-B8CB-1464A3E6F751}.Release|Win32.Build.0 = Release|Win32 + {AD2C2839-CCC5-4C8E-926C-730C3CF25599}.Debug|Win32.ActiveCfg = Debug|Win32 + {AD2C2839-CCC5-4C8E-926C-730C3CF25599}.Debug|Win32.Build.0 = Debug|Win32 + {AD2C2839-CCC5-4C8E-926C-730C3CF25599}.Release|Win32.ActiveCfg = Release|Win32 + {AD2C2839-CCC5-4C8E-926C-730C3CF25599}.Release|Win32.Build.0 = Release|Win32 + {95DD4B1A-9B00-493D-B235-3FF01DA0FB5E}.Debug|Win32.ActiveCfg = Debug|Win32 + {95DD4B1A-9B00-493D-B235-3FF01DA0FB5E}.Debug|Win32.Build.0 = Debug|Win32 + {95DD4B1A-9B00-493D-B235-3FF01DA0FB5E}.Release|Win32.ActiveCfg = Release|Win32 + {95DD4B1A-9B00-493D-B235-3FF01DA0FB5E}.Release|Win32.Build.0 = Release|Win32 + {3541A485-9A15-4DA6-B63C-A0977E90E7BC}.Debug|Win32.ActiveCfg = Debug|Win32 + {3541A485-9A15-4DA6-B63C-A0977E90E7BC}.Debug|Win32.Build.0 = Debug|Win32 + {3541A485-9A15-4DA6-B63C-A0977E90E7BC}.Release|Win32.ActiveCfg = Release|Win32 + {3541A485-9A15-4DA6-B63C-A0977E90E7BC}.Release|Win32.Build.0 = Release|Win32 + {CF524335-9B40-45A3-85EB-3F266CA9ADB9}.Debug|Win32.ActiveCfg = Debug|Win32 + {CF524335-9B40-45A3-85EB-3F266CA9ADB9}.Debug|Win32.Build.0 = Debug|Win32 + {CF524335-9B40-45A3-85EB-3F266CA9ADB9}.Release|Win32.ActiveCfg = Release|Win32 + {CF524335-9B40-45A3-85EB-3F266CA9ADB9}.Release|Win32.Build.0 = Release|Win32 + {A63B1A00-728A-48D5-B7EB-E2A29C1721AF}.Debug|Win32.ActiveCfg = Debug|Win32 + {A63B1A00-728A-48D5-B7EB-E2A29C1721AF}.Debug|Win32.Build.0 = Debug|Win32 + {A63B1A00-728A-48D5-B7EB-E2A29C1721AF}.Release|Win32.ActiveCfg = Release|Win32 + {A63B1A00-728A-48D5-B7EB-E2A29C1721AF}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.v12.suo b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.v12.suo new file mode 100644 index 0000000..b2c7a65 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称.v12.suo differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.c b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.c new file mode 100644 index 0000000..62ccc8c --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.c @@ -0,0 +1,63 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +void printArray( int arr[], int len )// int arr[] ȼ int * arr +{ + for (int i = 0; i < len;i++) + { + //printf("%d\n", arr[i]); // ˿ + + printf("%d\n", *(arr + i)); // + + } + +} + +void test01() +{ + int arr[5] = { 1, 2, 3, 4, 5 }; + + //һά Dzָ + + printf("sizeof arr = %d\n", sizeof (arr)); + + //£һάƶָԪصĵַ + + //1 sizeof + + //2 ȡַ + + //int * p = &arr; + + printf("%d\n", &arr); + printf("%d\n", &arr + 1); + + + + // ָ볣 ָָ򲻿޸ĵ int * const p; + /*arr = NULL; + arr[0] = 100;*/ + + int len = sizeof(arr) / sizeof(int); + printArray(arr, len); + + + int * p = arr; + p = p + 3; + // []ɲԷŸ ԣ + printf("%d\n", p[-1]); + printf("%d\n", *(p - 1)); + + +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.vcxproj b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.vcxproj new file mode 100644 index 0000000..9c56fa0 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {C2EF3694-6CB6-4F5E-B52F-65988796420E} + Win32Proj + My01一维数组名称 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.vcxproj.filters new file mode 100644 index 0000000..289d3ed --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/01 一维数组名称.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.Build.CppClean.log b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.Build.CppClean.log new file mode 100644 index 0000000..b2a379e --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\vc120.pdb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\vc120.idb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.obj +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\01 一维数组名称.ilk +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\01 一维数组名称.exe +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\01 一维数组名称.pdb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.tlog\link.command.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.tlog\link.read.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\01 一维数组名称\debug\01 一维数组名称.tlog\link.write.1.tlog diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.log b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.log new file mode 100644 index 0000000..34492d8 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.log @@ -0,0 +1,2 @@ + 01 一维数组名称.c + 01 一维数组名称.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\01 一维数组名称.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.obj b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.obj new file mode 100644 index 0000000..d0e4483 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/01 一维数组名称.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/01 一维数组名称.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/01 一维数组名称.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/CL.read.1.tlog new file mode 100644 index 0000000..5c3861c Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/CL.write.1.tlog new file mode 100644 index 0000000..f2c1590 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/cl.command.1.tlog new file mode 100644 index 0000000..418b0e0 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.command.1.tlog new file mode 100644 index 0000000..e175a3f Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.read.1.tlog new file mode 100644 index 0000000..25775de Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.write.1.tlog new file mode 100644 index 0000000..07e21fe Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/01 一维数组名称.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/vc120.idb new file mode 100644 index 0000000..3777c3f Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/vc120.pdb new file mode 100644 index 0000000..3b15b90 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/01 一维数组名称/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.c b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.c new file mode 100644 index 0000000..9fe30ae --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.c @@ -0,0 +1,64 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//ȶͣͨʹָ + +void test01() +{ + int arr[5] = { 1, 2, 3, 4, 5 }; + + typedef int(ARRAY_TYPE)[5]; // ARRAY_TYPEһͣ5intԪص + + ARRAY_TYPE *arrP = &arr; + + + //printf("%d\n", arrP); + //printf("%d\n", arrP+1); + + // *arrP ȼ arr + + for (int i = 0; i < 5;i++) + { + printf("%d\n", (*arrP)[i]); + + } +} + + +//ȶָͣٴָ +void test02() +{ + int arr[5] = { 1, 2, 3, 4, 5 }; + + typedef int(*ARRAY_TYPE)[5]; + + ARRAY_TYPE arrP = &arr; +} + + +//ֱӴָ +void test03() +{ + + int arr[5] = { 1, 2, 3, 4, 5 }; + + int(*pArr)[5] = &arr; + + for (int i = 0; i < 5; i++) + { + printf("%d\n", (*pArr)[i]); + + } + +} + + +int main(){ + + //test01(); + test03(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.vcxproj b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.vcxproj new file mode 100644 index 0000000..ec5203e --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4D15FAB9-1CAF-4FF2-B8CB-1464A3E6F751} + Win32Proj + My02定义数组指针 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.vcxproj.filters new file mode 100644 index 0000000..5b10c72 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/02 定义数组指针.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.Build.CppClean.log b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.Build.CppClean.log new file mode 100644 index 0000000..db9f03e --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\vc120.pdb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\vc120.idb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.obj +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\02 定义数组指针.ilk +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\02 定义数组指针.exe +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\02 定义数组指针.pdb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.tlog\link.command.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.tlog\link.read.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\02 定义数组指针\debug\02 定义数组指针.tlog\link.write.1.tlog diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.log b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.log new file mode 100644 index 0000000..7ff2854 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.log @@ -0,0 +1,2 @@ + 02 定义数组指针.c + 02 定义数组指针.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\02 定义数组指针.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.obj b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.obj new file mode 100644 index 0000000..6fb32a5 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/02 定义数组指针.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/02 定义数组指针.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/02 定义数组指针.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/CL.read.1.tlog new file mode 100644 index 0000000..1730c29 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/CL.write.1.tlog new file mode 100644 index 0000000..421f07b Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/cl.command.1.tlog new file mode 100644 index 0000000..d190dc2 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.command.1.tlog new file mode 100644 index 0000000..0e811d3 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.read.1.tlog new file mode 100644 index 0000000..dacfda9 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.write.1.tlog new file mode 100644 index 0000000..e3bf022 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/02 定义数组指针.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/vc120.idb new file mode 100644 index 0000000..846b7b3 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/vc120.pdb new file mode 100644 index 0000000..ff07e8d Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/02 定义数组指针/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.c b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.c new file mode 100644 index 0000000..6228eb9 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.c @@ -0,0 +1,76 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void test01() +{ + //ɶԸ + int arr[3][3] = + { + {1,2,3}, + {4,5,6}, + {7,8,9} + }; + + //int arr2[3][3] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; + + //int arr3[][3] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; + + int(*p)[3] = arr; //ά ָ һһάָ + + + // + + printf("sizeof arr = %d\n", sizeof(arr)); //ͳƶά鳤 + + int(*p2)[3][3] = &arr; // ȡַ άָ + + + //ʶάе6 + printf("%d\n", arr[1][2]); //˿ + printf("%d\n", *(*(arr + 1)+2) ); // + +} + +//ά + + +//void printArray( int p[][3] , int row, int col) +void printArray(int p[3][3], int row, int col) +//void printArray( int(*p)[3] , int row ,int col) +{ + for (int i = 0; i < row; i ++) + { + for (int j = 0; j < col; j++) + { + //printf("%d ", p[i][j]); + + printf("%d ", *(*(p + i) + j)); + + } + printf("\n"); + } +} + +void test02() +{ + int arr[3][3] = + { + { 1, 2, 3 }, + { 4, 5, 6 }, + { 7, 8, 9 } + }; + + printArray(arr, 3, 3); + +} + + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.vcxproj b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.vcxproj new file mode 100644 index 0000000..dd5cd54 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {AD2C2839-CCC5-4C8E-926C-730C3CF25599} + Win32Proj + My03二维数组名称 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.vcxproj.filters new file mode 100644 index 0000000..9a0defa --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/03 二维数组名称.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.Build.CppClean.log b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.Build.CppClean.log new file mode 100644 index 0000000..d174330 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\vc120.pdb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\vc120.idb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.obj +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\03 二维数组名称.ilk +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\03 二维数组名称.exe +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\debug\03 二维数组名称.pdb +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.tlog\link.command.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.tlog\link.read.1.tlog +e:\0504\sendtostudent\day4_c\code\01 一维数组名称\03 二维数组名称\debug\03 二维数组名称.tlog\link.write.1.tlog diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.log b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.log new file mode 100644 index 0000000..23f52c5 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.log @@ -0,0 +1,2 @@ + 03 二维数组名称.c + 03 二维数组名称.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\03 二维数组名称.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.obj b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.obj new file mode 100644 index 0000000..c00e79a Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/03 二维数组名称.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/03 二维数组名称.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/03 二维数组名称.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/CL.read.1.tlog new file mode 100644 index 0000000..99c19b4 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b37f07a Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/cl.command.1.tlog new file mode 100644 index 0000000..0c65d27 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.command.1.tlog new file mode 100644 index 0000000..88f490e Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.read.1.tlog new file mode 100644 index 0000000..3c12373 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.write.1.tlog new file mode 100644 index 0000000..5dada58 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/03 二维数组名称.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/vc120.idb new file mode 100644 index 0000000..f55c5a9 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/vc120.pdb new file mode 100644 index 0000000..e058cc7 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/03 二维数组名称/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.c b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.c new file mode 100644 index 0000000..0e2808b --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.c @@ -0,0 +1,106 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +//С ѡ +void selectSort01(int arr[] , int len) +{ + for (int i = 0; i < len;i++) + { + int min = i; //Сֵ± + for (int j = i + 1; j < len;j++) + { + if (arr[min] > arr[j]) + { + //ʵСֵ± + min = j; + } + } + + if (min != i) + { + // + int temp = arr[i]; + arr[i] = arr[min]; + arr[min] = temp; + } + } + +} + +void printArray(int arr[], int len) +{ + for (int i = 0; i < len;i++) + { + printf("%d\n", arr[i]); + } + +} + +void test01() +{ + int arr[] = { 3, 2, 5, 1, 4 }; + int len = sizeof(arr) / sizeof(int); + selectSort01(arr, len); + + printArray(arr, len); + + +} + + +//ͨѡ㷨ʵֶָݵĽ ӴС +void selectSort( char ** pArr , int len ) +{ + for (int i = 0; i < len;i++) + { + int max = i; //϶ֵ±Ϊi + for (int j = i + 1; j < len;j++) + { + //if (pArr[max] < pArr[j]) + if (strcmp( pArr[max] , pArr[j] ) == -1) + { + //ֵ± + max = j; + } + } + if (i != max) + { + //imax±Ԫ + char * temp = pArr[max]; + pArr[max] = pArr[i]; + pArr[i] = temp; + } + + } + +} + +void printCharArray(char ** pArr, int len) +{ + for (int i = 0; i < len;i++) + { + printf("%s\n", pArr[i]); + } +} + +void test02() +{ + char * pArr[] = { "aaa", "bbb","fff" , "ddd", "eee", "ccc" }; + int len = sizeof(pArr) / sizeof(char *); + selectSort(pArr, len); + + printCharArray(pArr, len); + +} + + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.vcxproj b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.vcxproj new file mode 100644 index 0000000..e908b77 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {95DD4B1A-9B00-493D-B235-3FF01DA0FB5E} + Win32Proj + My04指针数组的排序 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.vcxproj.filters new file mode 100644 index 0000000..473a1b4 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/04 指针数组的排序.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.log b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.log new file mode 100644 index 0000000..3be87ca --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.log @@ -0,0 +1,2 @@ + 04 指针数组的排序.c + 04 指针数组的排序.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\04 指针数组的排序.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.obj b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.obj new file mode 100644 index 0000000..888936b Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/04 指针数组的排序.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/04 指针数组的排序.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/04 指针数组的排序.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3c073e8 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/CL.write.1.tlog new file mode 100644 index 0000000..666c4ea Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/cl.command.1.tlog new file mode 100644 index 0000000..10b62ec Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.command.1.tlog new file mode 100644 index 0000000..d2d7306 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.read.1.tlog new file mode 100644 index 0000000..5d61896 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.write.1.tlog new file mode 100644 index 0000000..080ba7a Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/04 指针数组的排序.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/vc120.idb new file mode 100644 index 0000000..5eb4d03 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/vc120.pdb new file mode 100644 index 0000000..222d1cf Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/04 指针数组的排序/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.c b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.c new file mode 100644 index 0000000..88c5b3d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.c @@ -0,0 +1,108 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +typedef struct Person +{ + char name[64]; + int age; //Ҫڶṹʱ򸳳ֵ +} myPerson;//myPersonstruct Person ͵ı + +void test01() +{ + myPerson p = { "aa", 10 }; +} + + +struct Person2 +{ + char name[64]; + int age; +} myPerson2 = {"bbb" , 200}; //myPersonһṹ + +void test02() +{ + printf(" %s 䣺 %d\n", myPerson2.name, myPerson2.age); + myPerson2.age = 100; + strcpy(myPerson2.name, "aaa"); + + printf(" %s 䣺 %d\n", myPerson2.name, myPerson2.age); +} + + +//ͣ޷ʹ +struct +{ + char name[64]; + int age; +}myPerson3 = {"ccc" , 30}; + +void test03() +{ + printf(" %s 䣺 %d\n", myPerson3.name, myPerson3.age); +} + + + +void test04() +{ + //ջϴṹ + struct Person p1 = { "aaa", 10 }; + + //ڶṹ + struct Person *p2 = malloc(sizeof(struct Person)); + p2->age = 100; + strcpy(p2->name, "bbb"); +} + +void printArray( struct Person persons[] , int len) +{ + for (int i = 0; i < len;i++) + { + printf("%s %d\n", persons[i].name, persons[i].age); + } +} + +void test05() +{ + //ṹ + //ջϴ + struct Person persons[] = + { + { "aaa", 10 }, + { "bbb", 20 }, + { "ccc", 30 }, + { "ddd", 40 }, + }; + + /*int len = sizeof(persons) / sizeof(struct Person); + printArray(persons, len);*/ + + + //ڶ + struct Person * personArr = malloc(sizeof(struct Person) * 4); + for (int i = 0; i < 4;i++) + { + sprintf(personArr[i].name, "name_%d", i); + personArr[i].age = i + 18; + } + printArray(personArr, 4); + + if (personArr != NULL) + { + free(personArr); + personArr = NULL; + } + +} + + + +int main(){ + //test02(); + //test03(); + test05(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.vcxproj b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.vcxproj new file mode 100644 index 0000000..844f351 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {3541A485-9A15-4DA6-B63C-A0977E90E7BC} + Win32Proj + My05结构体基本概念 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.vcxproj.filters new file mode 100644 index 0000000..eee08b2 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/05 结构体基本概念.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.log b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.log new file mode 100644 index 0000000..e5f0699 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.log @@ -0,0 +1,2 @@ + 05 结构体基本概念.c + 05 结构体基本概念.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\05 结构体基本概念.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.obj b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.obj new file mode 100644 index 0000000..632bb5e Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/05 结构体基本概念.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/05 结构体基本概念.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/05 结构体基本概念.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/CL.read.1.tlog new file mode 100644 index 0000000..fd24f86 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/CL.write.1.tlog new file mode 100644 index 0000000..27a0e32 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/cl.command.1.tlog new file mode 100644 index 0000000..24d69bf Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.command.1.tlog new file mode 100644 index 0000000..f90b10c Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.read.1.tlog new file mode 100644 index 0000000..48acf17 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.write.1.tlog new file mode 100644 index 0000000..f821601 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/05 结构体基本概念.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/vc120.idb new file mode 100644 index 0000000..73d99fe Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/vc120.pdb new file mode 100644 index 0000000..db84a60 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/05 结构体基本概念/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.c b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.c new file mode 100644 index 0000000..f9e6bb4 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.c @@ -0,0 +1,89 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +struct Person +{ + char name[64]; + int age; +}; + +void test01() +{ + struct Person p1 = { "Tom", 18 }; + + struct Person p2 = { "Jerry", 20 }; + + p1 = p2; + + printf("p1 %s 䣺 %d\n", p1.name, p1.age); + + printf("p2 %s 䣺 %d\n", p2.name, p2.age); + +} + + + + +struct Person2 +{ + char * name; + int age; +}; +void test02() +{ + struct Person2 p1; + p1.age = 18; + p1.name = malloc(sizeof(char)* 64); + strcpy(p1.name, "Tom"); + + + struct Person2 p2; + p2.age = 20; + p2.name = malloc(sizeof(char)* 128); + strcpy(p2.name, "Jerry"); + + + //p1 = p2; + + //Լṩֵ  + //ͷԭ + if (p1.name != NULL) + { + free(p1.name); + p1.name = NULL; + } + + p1.name = malloc(strlen(p2.name) + 1); + strcpy(p1.name, p2.name); + + p1.age = p2.age; + + + + printf("p1 %s 䣺 %d\n", p1.name, p1.age); + + printf("p2 %s 䣺 %d\n", p2.name, p2.age); + + if (p1.name != NULL) + { + free(p1.name); + p1.name = NULL; + } + if (p2.name != NULL) + { + free(p2.name); + p2.name = NULL; + } + +} + + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.vcxproj b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.vcxproj new file mode 100644 index 0000000..79345ce --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {CF524335-9B40-45A3-85EB-3F266CA9ADB9} + Win32Proj + My06结构体赋值的问题以及解决 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.vcxproj.filters new file mode 100644 index 0000000..e25ace6 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/06 结构体赋值的问题以及解决.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.log b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.log new file mode 100644 index 0000000..b9fd918 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.log @@ -0,0 +1,2 @@ + 06 结构体赋值的问题以及解决.c + 06 结构体赋值的问题以及解决.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\06 结构体赋值的问题以及解决.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.obj b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.obj new file mode 100644 index 0000000..3393452 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/06 结构体赋值的问题以及解决.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/06 结构体赋值的问题以及解决.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/06 结构体赋值的问题以及解决.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/CL.read.1.tlog new file mode 100644 index 0000000..c3fa748 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/CL.write.1.tlog new file mode 100644 index 0000000..49c986e Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/cl.command.1.tlog new file mode 100644 index 0000000..760ce78 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.command.1.tlog new file mode 100644 index 0000000..8523b61 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.read.1.tlog new file mode 100644 index 0000000..4d28c2f Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.write.1.tlog new file mode 100644 index 0000000..fb601d8 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/06 结构体赋值的问题以及解决.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/vc120.idb new file mode 100644 index 0000000..5e324be Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/vc120.pdb new file mode 100644 index 0000000..540f833 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/06 结构体赋值的问题以及解决/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.c b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.c new file mode 100644 index 0000000..0188d78 --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.c @@ -0,0 +1,83 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +struct Person +{ + char * name; + int age; +}; + + +struct Person ** allocateSpace() +{ + struct Person ** pArray = malloc(sizeof(struct Person *) * 3); + + for (int i = 0; i < 3; i ++) + { + //ÿṹ忪ڴ + pArray[i] = malloc(sizeof(struct Person)); + + //ÿṹ ڴ + pArray[i]->name = malloc(sizeof(char)* 64); + + sprintf(pArray[i]->name, "name_%d", i + 1); + + pArray[i]->age = i + 20; + } + + return pArray; +} + +void printArray(struct Person ** pArray , int len ) +{ + for (int i = 0; i < len;i++) + { + printf(" %s 䣺 %d\n", pArray[i]->name, pArray[i]->age); + } +} + +void freeSpace(struct Person ** pArray , int len) +{ + for (int i = 0; i < len;i++) + { + //ͷ + if (pArray[i]->name != NULL) + { + printf("%sͷ\n", pArray[i]->name); + free(pArray[i]->name); + pArray[i]->name = NULL; + } + + //ͷŽṹ + free(pArray[i]); + pArray[i] = NULL; + } + + //ͷ + free(pArray); + pArray = NULL; + +} + +void test01() +{ + struct Person ** pArray = NULL; //malloc(sizeof(struct Person *) * 3); + + pArray = allocateSpace(); + printArray(pArray, 3); + + //ͷڴ + freeSpace(pArray,3); + pArray = NULL; +} + + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.vcxproj b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.vcxproj new file mode 100644 index 0000000..ef0831d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {A63B1A00-728A-48D5-B7EB-E2A29C1721AF} + Win32Proj + My07结构体嵌套一级指针练习 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.vcxproj.filters b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.vcxproj.filters new file mode 100644 index 0000000..e2b8cfb --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/07 结构体嵌套一级指针练习.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.log b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.log new file mode 100644 index 0000000..b1a6e2f --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.log @@ -0,0 +1,2 @@ + 07 结构体嵌套一级指针练习.c + 07 结构体嵌套一级指针练习.vcxproj -> E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\Debug\07 结构体嵌套一级指针练习.exe diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.obj b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.obj new file mode 100644 index 0000000..0b971c0 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.obj differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/07 结构体嵌套一级指针练习.lastbuildstate b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/07 结构体嵌套一级指针练习.lastbuildstate new file mode 100644 index 0000000..05cce1d --- /dev/null +++ b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/07 结构体嵌套一级指针练习.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day4_C\Code\01 一维数组名称\| diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/CL.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/CL.read.1.tlog new file mode 100644 index 0000000..e48f583 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/CL.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/CL.write.1.tlog new file mode 100644 index 0000000..d0cfdd0 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/cl.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/cl.command.1.tlog new file mode 100644 index 0000000..db798df Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.command.1.tlog b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.command.1.tlog new file mode 100644 index 0000000..c77c8f3 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.command.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.read.1.tlog b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.read.1.tlog new file mode 100644 index 0000000..525d425 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.read.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.write.1.tlog b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.write.1.tlog new file mode 100644 index 0000000..ec66aa5 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/07 结构体嵌套一级指针练习.tlog/link.write.1.tlog differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/vc120.idb b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/vc120.idb new file mode 100644 index 0000000..869ff5f Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/vc120.idb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/vc120.pdb b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/vc120.pdb new file mode 100644 index 0000000..24710e5 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/07 结构体嵌套一级指针练习/Debug/vc120.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.exe new file mode 100644 index 0000000..5321751 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.ilk new file mode 100644 index 0000000..505979d Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.pdb new file mode 100644 index 0000000..6eb2487 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/01 一维数组名称.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.exe new file mode 100644 index 0000000..ce86d7d Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.ilk new file mode 100644 index 0000000..8bd3ff0 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.pdb new file mode 100644 index 0000000..9853045 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/02 定义数组指针.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.exe new file mode 100644 index 0000000..b898f0c Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.ilk new file mode 100644 index 0000000..4961236 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.pdb new file mode 100644 index 0000000..9a04790 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/03 二维数组名称.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.exe new file mode 100644 index 0000000..5ec479f Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.ilk new file mode 100644 index 0000000..8e8d38e Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.pdb new file mode 100644 index 0000000..c25bcbf Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/04 指针数组的排序.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.exe new file mode 100644 index 0000000..b512dcd Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.ilk new file mode 100644 index 0000000..a56f81c Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.pdb new file mode 100644 index 0000000..9d48bf2 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/05 结构体基本概念.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.exe new file mode 100644 index 0000000..89772fd Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.ilk new file mode 100644 index 0000000..2ba961f Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.pdb new file mode 100644 index 0000000..3d7b35a Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/06 结构体赋值的问题以及解决.pdb differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.exe b/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.exe new file mode 100644 index 0000000..547b623 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.exe differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.ilk b/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.ilk new file mode 100644 index 0000000..b1016d7 Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.ilk differ diff --git a/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.pdb b/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.pdb new file mode 100644 index 0000000..bfc850a Binary files /dev/null and b/C语言提高/days04/Code/01 一维数组名称/Debug/07 结构体嵌套一级指针练习.pdb differ diff --git a/C语言提高/days04/Doc/Day4笔记.docx b/C语言提高/days04/Doc/Day4笔记.docx new file mode 100644 index 0000000..a760218 Binary files /dev/null and b/C语言提高/days04/Doc/Day4笔记.docx differ diff --git a/C语言提高/days04/Doc/结构体变量属性在堆区结构图.png b/C语言提高/days04/Doc/结构体变量属性在堆区结构图.png new file mode 100644 index 0000000..0103c01 Binary files /dev/null and b/C语言提高/days04/Doc/结构体变量属性在堆区结构图.png differ diff --git a/C语言提高/days04/Doc/结构体变量赋值属性在栈上结构图.png b/C语言提高/days04/Doc/结构体变量赋值属性在栈上结构图.png new file mode 100644 index 0000000..5c201b4 Binary files /dev/null and b/C语言提高/days04/Doc/结构体变量赋值属性在栈上结构图.png differ diff --git a/C语言提高/days04/Doc/结构体嵌套一级指针的内存结构图.png b/C语言提高/days04/Doc/结构体嵌套一级指针的内存结构图.png new file mode 100644 index 0000000..2b06a2b Binary files /dev/null and b/C语言提高/days04/Doc/结构体嵌套一级指针的内存结构图.png differ diff --git a/C语言提高/days04/Doc/选择排序解析图.png b/C语言提高/days04/Doc/选择排序解析图.png new file mode 100644 index 0000000..30fd842 Binary files /dev/null and b/C语言提高/days04/Doc/选择排序解析图.png differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.sdf b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.sdf new file mode 100644 index 0000000..5f9b9bd Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.sdf differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.sln b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.sln new file mode 100644 index 0000000..c08e955 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.sln @@ -0,0 +1,52 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 结构体嵌套二级指针练习", "01 结构体嵌套二级指针练习\01 结构体嵌套二级指针练习.vcxproj", "{32CFD770-EF0B-45ED-AAB2-110F87D59D64}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 结构体偏移量", "02 结构体偏移量\02 结构体偏移量.vcxproj", "{64FE4358-D8F0-4B1B-932D-7D966530AD19}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 内存对齐", "03 内存对齐\03 内存对齐.vcxproj", "{382891D8-C9C0-42DC-969C-C8FB761A7693}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 文件读写回顾", "04 文件读写回顾\04 文件读写回顾.vcxproj", "{0C2FB6AF-DD3C-4FB1-8EFA-94BF59FC83CE}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 文件读写注意事项", "05 文件读写注意事项\05 文件读写注意事项.vcxproj", "{4052180E-163D-49A4-BE01-01E4BA989E24}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06 配置文件读写", "06 配置文件读写\06 配置文件读写.vcxproj", "{2F04A59C-2FE6-4D3A-B36E-B4E3D64871CC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {32CFD770-EF0B-45ED-AAB2-110F87D59D64}.Debug|Win32.ActiveCfg = Debug|Win32 + {32CFD770-EF0B-45ED-AAB2-110F87D59D64}.Debug|Win32.Build.0 = Debug|Win32 + {32CFD770-EF0B-45ED-AAB2-110F87D59D64}.Release|Win32.ActiveCfg = Release|Win32 + {32CFD770-EF0B-45ED-AAB2-110F87D59D64}.Release|Win32.Build.0 = Release|Win32 + {64FE4358-D8F0-4B1B-932D-7D966530AD19}.Debug|Win32.ActiveCfg = Debug|Win32 + {64FE4358-D8F0-4B1B-932D-7D966530AD19}.Debug|Win32.Build.0 = Debug|Win32 + {64FE4358-D8F0-4B1B-932D-7D966530AD19}.Release|Win32.ActiveCfg = Release|Win32 + {64FE4358-D8F0-4B1B-932D-7D966530AD19}.Release|Win32.Build.0 = Release|Win32 + {382891D8-C9C0-42DC-969C-C8FB761A7693}.Debug|Win32.ActiveCfg = Debug|Win32 + {382891D8-C9C0-42DC-969C-C8FB761A7693}.Debug|Win32.Build.0 = Debug|Win32 + {382891D8-C9C0-42DC-969C-C8FB761A7693}.Release|Win32.ActiveCfg = Release|Win32 + {382891D8-C9C0-42DC-969C-C8FB761A7693}.Release|Win32.Build.0 = Release|Win32 + {0C2FB6AF-DD3C-4FB1-8EFA-94BF59FC83CE}.Debug|Win32.ActiveCfg = Debug|Win32 + {0C2FB6AF-DD3C-4FB1-8EFA-94BF59FC83CE}.Debug|Win32.Build.0 = Debug|Win32 + {0C2FB6AF-DD3C-4FB1-8EFA-94BF59FC83CE}.Release|Win32.ActiveCfg = Release|Win32 + {0C2FB6AF-DD3C-4FB1-8EFA-94BF59FC83CE}.Release|Win32.Build.0 = Release|Win32 + {4052180E-163D-49A4-BE01-01E4BA989E24}.Debug|Win32.ActiveCfg = Debug|Win32 + {4052180E-163D-49A4-BE01-01E4BA989E24}.Debug|Win32.Build.0 = Debug|Win32 + {4052180E-163D-49A4-BE01-01E4BA989E24}.Release|Win32.ActiveCfg = Release|Win32 + {4052180E-163D-49A4-BE01-01E4BA989E24}.Release|Win32.Build.0 = Release|Win32 + {2F04A59C-2FE6-4D3A-B36E-B4E3D64871CC}.Debug|Win32.ActiveCfg = Debug|Win32 + {2F04A59C-2FE6-4D3A-B36E-B4E3D64871CC}.Debug|Win32.Build.0 = Debug|Win32 + {2F04A59C-2FE6-4D3A-B36E-B4E3D64871CC}.Release|Win32.ActiveCfg = Release|Win32 + {2F04A59C-2FE6-4D3A-B36E-B4E3D64871CC}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.v12.suo b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.v12.suo new file mode 100644 index 0000000..577d08b Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.v12.suo differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.c new file mode 100644 index 0000000..6e205ad --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.c @@ -0,0 +1,116 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +struct Teacher +{ + char * name; + char ** Students; +}; + + +void allocateSpace( struct Teacher *** teachers) +{ + + struct Teacher ** pArray = malloc(sizeof(struct Teacher *) * 3); + + for (int i = 0; i < 3;i++) + { + //ÿʦռ + pArray[i] = malloc(sizeof(struct Teacher)); + + //ÿʦ ռ + pArray[i]->name = malloc(sizeof(char)* 64); + sprintf(pArray[i]->name, "Teacher_%d", i + 1); + + //ʦѧռ + pArray[i]->Students = malloc(sizeof(char *)* 4); + + //4ѧڷڴ棬Ҹֵ + for (int j = 0; j < 4;j++) + { + pArray[i]->Students[j] = malloc(sizeof(char)* 64); + sprintf(pArray[i]->Students[j], "%s_Student_%d", pArray[i]->name, j + 1); + } + } + + + *teachers = pArray; +} + + +void showArray(struct Teacher ** pArray, int len) +{ + for (int i = 0; i < len;i++) + { + printf("%s\n", pArray[i]->name); + for (int j = 0; j < 4;j++) + { + printf(" %s\n", pArray[i]->Students[j]); + } + } +} + +void freeSpace(struct Teacher ** pArray , int len) +{ + for (int i = 0; i < len;i++) + { + //ͷʦ + if (pArray[i]->name != NULL) + { + free(pArray[i]->name); + pArray[i]->name = NULL; + } + + //ͷÿѧ + for (int j = 0; j < 4;j++) + { + if (pArray[i]->Students[j] != NULL) + { + free(pArray[i]->Students[j]); + pArray[i]->Students[j] = NULL; + } + } + + //ͷѧ + free(pArray[i]->Students); + pArray[i]->Students = NULL; + + + //ͷʦ + free(pArray[i]); + pArray[i] = NULL; + } + + + //ͷʦ + free(pArray); + pArray = NULL; +} + +void test01() +{ + + struct Teacher ** pArray = NULL; + //ڴ + allocateSpace(&pArray); + + //ӡ + showArray(pArray , 3); + + + //ͷڴ + freeSpace(pArray,3); + pArray = NULL; + +} + + +int main(){ + test01(); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.vcxproj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.vcxproj new file mode 100644 index 0000000..bbad5ca --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {32CFD770-EF0B-45ED-AAB2-110F87D59D64} + Win32Proj + My01结构体嵌套二级指针练习 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.vcxproj.filters b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.vcxproj.filters new file mode 100644 index 0000000..b44e24f --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.log new file mode 100644 index 0000000..ea98fc4 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.log @@ -0,0 +1,2 @@ + 01 结构体嵌套二级指针练习.c + 01 结构体嵌套二级指针练习.vcxproj -> E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\Debug\01 结构体嵌套二级指针练习.exe diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.obj new file mode 100644 index 0000000..91a0e5e Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/01 结构体嵌套二级指针练习.lastbuildstate b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/01 结构体嵌套二级指针练习.lastbuildstate new file mode 100644 index 0000000..277b0cf --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/01 结构体嵌套二级指针练习.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\| diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/CL.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/CL.read.1.tlog new file mode 100644 index 0000000..72911d7 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/CL.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b1913c5 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/cl.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/cl.command.1.tlog new file mode 100644 index 0000000..6215414 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.command.1.tlog new file mode 100644 index 0000000..0d7fc4b Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.read.1.tlog new file mode 100644 index 0000000..9b3c7e9 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.write.1.tlog new file mode 100644 index 0000000..4ea1c40 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.tlog/link.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/vc120.idb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/vc120.idb new file mode 100644 index 0000000..7b79f35 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/vc120.idb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/vc120.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/vc120.pdb new file mode 100644 index 0000000..96afb71 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/01 结构体嵌套二级指针练习/Debug/vc120.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.c new file mode 100644 index 0000000..86b0a97 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.c @@ -0,0 +1,61 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include +struct Person +{ + char a; // 0 ~ 3 + int b; // 4 ~ 7 +}; + + +void test01() +{ + struct Person p1; + struct Person * p = &p1; + + printf("bƫΪ %d\n", (int)&(p->b) - (int)p ); + printf("bƫΪ %d\n", offsetof(struct Person, b)); + +} + +//ͨƫ ȡ +void test02() +{ + struct Person p1 = {'a' , 10}; + + printf("p.b = %d\n", *(int *)((char*)&p1 + offsetof(struct Person, b))); + + printf("p.b = %d\n", *(int *)((int*)&p1 + 1 )); +} + + +//ṹǶ׽ṹ +struct Person2 +{ + char a; + int b; + struct Person c; +}; +void test03() +{ + struct Person2 p = { 'a', 10, 'b', 20 }; + + int offset1 = offsetof(struct Person2, c); + int offset2 = offsetof(struct Person, b); + + printf("%d\n", *(int*)((char*)&p + offset1 + offset2)); + + + printf("%d\n", ((struct Person*) ((char*)&p + offset1))->b ); +} + +int main(){ + + //test01(); + //test02(); + test03(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.vcxproj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.vcxproj new file mode 100644 index 0000000..0381f02 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {64FE4358-D8F0-4B1B-932D-7D966530AD19} + Win32Proj + My02结构体偏移量 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.vcxproj.filters b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.vcxproj.filters new file mode 100644 index 0000000..0a845db --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/02 结构体偏移量.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.log new file mode 100644 index 0000000..e52933e --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.log @@ -0,0 +1,2 @@ + 02 结构体偏移量.c + 02 结构体偏移量.vcxproj -> E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\Debug\02 结构体偏移量.exe diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.obj new file mode 100644 index 0000000..86b3c1c Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/02 结构体偏移量.lastbuildstate b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/02 结构体偏移量.lastbuildstate new file mode 100644 index 0000000..277b0cf --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/02 结构体偏移量.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\| diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/CL.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ba00a58 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/CL.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ca78017 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/cl.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/cl.command.1.tlog new file mode 100644 index 0000000..bf08621 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.command.1.tlog new file mode 100644 index 0000000..eddf17c Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.read.1.tlog new file mode 100644 index 0000000..56f1ff4 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.write.1.tlog new file mode 100644 index 0000000..74c9982 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/02 结构体偏移量.tlog/link.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/vc120.idb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/vc120.idb new file mode 100644 index 0000000..0f7a9c9 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/vc120.idb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/vc120.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/vc120.pdb new file mode 100644 index 0000000..aef9fed Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/02 结构体偏移量/Debug/vc120.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.c new file mode 100644 index 0000000..52b0f6c --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.c @@ -0,0 +1,53 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + + +#pragma pack(show) //鿴ģ +//#pragma pack(1) //Ĭ϶ģΪ 8 ģԸΪ 2nη + + +//Զ ڴ £ +//1ӵһԿʼ ƫΪ0 +//2ڶԿʼַҪ ģ ȡСֵ +//3еԶζ룬Ҫ ģ ȡСֵ +typedef struct _STUDENT{ + // ģ8 ģ1 + int a; // 0 ~ 3 0 ~ 3 + char b; // 4 ~ 7 4 + double c;// 8 ~ 15 5 ~ 12 + float d; // 16 ~ 19 13 ~ 16 +}Student; + + +void test01() +{ + + printf("size of = %d\n", sizeof(Student)); + +} + + +//ṹǶ׽ṹʱֻҪӽṹ;Ϳ +typedef struct _STUDENT2{ + char a; // 0 ~ 7 + Student b; // 8 ~ 31 + double c; // 32 ~ 39 +}Student2; + + +void test02() +{ + printf("size of = %d\n", sizeof(Student2)); + +} + + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.vcxproj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.vcxproj new file mode 100644 index 0000000..b2fc52c --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {382891D8-C9C0-42DC-969C-C8FB761A7693} + Win32Proj + My03内存对齐 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.vcxproj.filters b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.vcxproj.filters new file mode 100644 index 0000000..1a66023 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/03 内存对齐.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.Build.CppClean.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.Build.CppClean.log new file mode 100644 index 0000000..f1bb902 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\vc120.pdb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\vc120.idb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.obj +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\03 内存对齐.ilk +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\03 内存对齐.exe +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\03 内存对齐.pdb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.tlog\link.command.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.tlog\link.read.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\debug\03 内存对齐.tlog\link.write.1.tlog diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.log new file mode 100644 index 0000000..e7d9e39 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.log @@ -0,0 +1,3 @@ + 03 内存对齐.c +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\03 内存对齐\03 内存对齐.c(7): warning C4810: 杂注 pack(show) 的值 == 8 + 03 内存对齐.vcxproj -> E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\Debug\03 内存对齐.exe diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.obj new file mode 100644 index 0000000..92aba62 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/03 内存对齐.lastbuildstate b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/03 内存对齐.lastbuildstate new file mode 100644 index 0000000..277b0cf --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/03 内存对齐.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\| diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/CL.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/CL.read.1.tlog new file mode 100644 index 0000000..4da0e91 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/CL.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/CL.write.1.tlog new file mode 100644 index 0000000..782ed22 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/cl.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/cl.command.1.tlog new file mode 100644 index 0000000..9aa34b0 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.command.1.tlog new file mode 100644 index 0000000..2e01ae5 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.read.1.tlog new file mode 100644 index 0000000..1558e05 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.write.1.tlog new file mode 100644 index 0000000..a97291a Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/03 内存对齐.tlog/link.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/vc120.idb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/vc120.idb new file mode 100644 index 0000000..1054e19 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/vc120.idb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/vc120.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/vc120.pdb new file mode 100644 index 0000000..8842b18 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/03 内存对齐/Debug/vc120.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.c new file mode 100644 index 0000000..2ae3671 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.c @@ -0,0 +1,243 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1ַĶдع fgetc(), fputc() +void test01() +{ + //дļ + FILE * f_write = fopen("./test1.txt", "w"); + + if (f_write == NULL) + { + return; + } + + + char buf[] = "hello world"; + + for (int i = 0; i < strlen(buf);i++) + { + fputc(buf[i], f_write); + } + + fclose(f_write); + + //ļ + FILE * f_read = fopen("./test1.txt", "r"); + if (f_read == NULL) + { + return; + } + + char ch; + + while ( (ch = fgetc(f_read)) != EOF) // EOF END OF FILE + { + printf("%c", ch); + } + + fclose(f_read); +} + + + +//2нжд +void test02() +{ + //дļ + FILE * f_write = fopen("./test2.txt", "w+"); + + if (f_write == NULL) + { + return; + } + + char * buf[]= + { + "յ\n", + "κ\n", + "˭֪в\n", + "\n" + }; + + for (int i = 0; i < 4;i++) + { + fputs(buf[i], f_write); + } + + fclose(f_write); + + + //ļ + FILE * f_read = fopen("./test2.txt", "r"); + if (f_read == NULL) + { + return; + } + while ( !feof(f_read)) + { + char temp[1024] = { 0 }; + + fgets(temp, 1024, f_read); + + printf("%s", temp); + + } + + fclose(f_read); + +} + + +//3жд + +struct Hero +{ + char name[64]; + int age; +}; +void test03() +{ + //дļ + FILE * f_wirte = fopen("./test3.txt", "wb"); + if (f_wirte == NULL) + { + return; + } + + struct Hero heros[] = + { + { "", 999 }, + { "ɪ", 20 }, + { "ܲ", 80 }, + { "³", 5 }, + }; + + for (int i = 0; i < 4;i++) + { + //1 ݵַ 2 С 3 4 ļָ + fwrite(&heros[i], sizeof(struct Hero), 1, f_wirte); + } + + fclose(f_wirte); + + + //ļ + FILE * f_read = fopen("./test3.txt", "rb"); + + if (f_read == NULL) + { + return; + } + + struct Hero temp[4]; + fread(&temp, sizeof(struct Hero), 4, f_read); + for (int i = 0; i < 4;i++) + { + printf(" %s 䣺%d\n", temp[i].name, temp[i].age); + } + + fclose(f_read); + +} + +//4ʽдع +void test04() +{ + + //дļ + FILE *f_write = fopen("./test4.txt", "w"); + if (f_write == NULL) + { + return; + } + + fprintf(f_write, "hello world %s", "abcd"); + + fclose(f_write); + + + //ļ + FILE * f_read = fopen("./test4.txt", "r"); + if (f_read == NULL) + { + return; + } + char temp[1204] = { 0 }; + while (! feof(f_read )) + { + fscanf(f_read, "%s", temp); + printf("%s\n", temp); + } + + fclose(f_read); +} + +void test05() +{ + //дļ + FILE * f_wirte = fopen("./test5.txt", "wb"); + if (f_wirte == NULL) + { + return; + } + + struct Hero heros[] = + { + { "", 999 }, + { "ɪ", 20 }, + { "ܲ", 80 }, + { "³", 5 }, + }; + + for (int i = 0; i < 4; i++) + { + //1 ݵַ 2 С 3 4 ļָ + fwrite(&heros[i], sizeof(struct Hero), 1, f_wirte); + } + + fclose(f_wirte); + + + //ļ + FILE * f_read = fopen("./test51.txt", "rb"); + if (f_read == NULL) + { + //error + //printf("ļʧ\n"); + perror("ļʧ"); //ûʾϢ + ϵͳʾϢ + + return; + } + struct Hero tempHero; + //ƶ + // 1 ļָ 2 ƫƴС 3 ʼλ + // SEEK_SET ӿʼ SEEK_END ӽβ SEEK_CUR ӵǰλ + //fseek(f_read, sizeof(struct Hero) * 2, SEEK_SET); + + fseek(f_read, - (long)sizeof(struct Hero) * 2, SEEK_END); + + rewind(f_read); //ļ + + fread(&tempHero, sizeof(struct Hero), 1, f_read); + + printf(" %s , 䣺 %d\n", tempHero.name, tempHero.age); + + + fclose(f_read); +} + + +int main(){ + //test01(); + //test02(); + //test03(); + //test04(); + test05(); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.vcxproj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.vcxproj new file mode 100644 index 0000000..4ee982e --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {0C2FB6AF-DD3C-4FB1-8EFA-94BF59FC83CE} + Win32Proj + My04文件读写回顾 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.vcxproj.filters b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.vcxproj.filters new file mode 100644 index 0000000..a66f03d --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/04 文件读写回顾.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.Build.CppClean.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.Build.CppClean.log new file mode 100644 index 0000000..41e602f --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\vc120.pdb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\vc120.idb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.obj +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\04 文件读写回顾.ilk +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\04 文件读写回顾.exe +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\04 文件读写回顾.pdb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.tlog\link.command.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.tlog\link.read.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\debug\04 文件读写回顾.tlog\link.write.1.tlog diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.log new file mode 100644 index 0000000..4637e1a --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.log @@ -0,0 +1,3 @@ + 04 文件读写回顾.c +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\04 文件读写回顾.c(20): warning C4018: “<”: 有符号/无符号不匹配 + 04 文件读写回顾.vcxproj -> E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\Debug\04 文件读写回顾.exe diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.nativecodeanalysis.xml b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.nativecodeanalysis.xml new file mode 100644 index 0000000..d23813e --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.nativecodeanalysis.xml @@ -0,0 +1,2 @@ + +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\04 文件读写回顾.c17186031返回值被忽略: “fscanf”。test04test04147 \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.obj new file mode 100644 index 0000000..1a25af7 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/04 文件读写回顾.lastbuildstate b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/04 文件读写回顾.lastbuildstate new file mode 100644 index 0000000..277b0cf --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/04 文件读写回顾.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\| diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/CL.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/CL.read.1.tlog new file mode 100644 index 0000000..e4351b2 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/CL.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/CL.write.1.tlog new file mode 100644 index 0000000..813e880 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/cl.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/cl.command.1.tlog new file mode 100644 index 0000000..89489c3 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.command.1.tlog new file mode 100644 index 0000000..46a2324 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.read.1.tlog new file mode 100644 index 0000000..a6b063e Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.write.1.tlog new file mode 100644 index 0000000..434967c Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/04 文件读写回顾.tlog/link.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/NativeCodeAnalysis.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/NativeCodeAnalysis.read.1.tlog new file mode 100644 index 0000000..7a5e0ec --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/NativeCodeAnalysis.read.1.tlog @@ -0,0 +1 @@ +C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\TEAM TOOLS\STATIC ANALYSIS TOOLS\\RULE SETS\NATIVERECOMMENDEDRULES.RULESET diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc.nativecodeanalysis.all.xml b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc.nativecodeanalysis.all.xml new file mode 100644 index 0000000..c2bc851 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc.nativecodeanalysis.all.xml @@ -0,0 +1 @@ +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\04 文件读写回顾\04 文件读写回顾.c17186031返回值被忽略: “fscanf”。test04test04147 \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc120.idb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc120.idb new file mode 100644 index 0000000..754efdc Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc120.idb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc120.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc120.pdb new file mode 100644 index 0000000..eadb1bf Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/Debug/vc120.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test1.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test1.txt new file mode 100644 index 0000000..95d09f2 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test1.txt @@ -0,0 +1 @@ +hello world \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test2.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test2.txt new file mode 100644 index 0000000..61d09df --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test2.txt @@ -0,0 +1,4 @@ +յ +κ +˭֪в + diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test3.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test3.txt new file mode 100644 index 0000000..7017abf Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test3.txt differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test4.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test4.txt new file mode 100644 index 0000000..f5513cc --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test4.txt @@ -0,0 +1 @@ +hello world abcd \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test5.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test5.txt new file mode 100644 index 0000000..7017abf Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/04 文件读写回顾/test5.txt differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.c new file mode 100644 index 0000000..87bd0e9 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.c @@ -0,0 +1,58 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void test01() +{ + FILE * file = fopen("./test.txt", "r"); + + if (file == NULL) + { + return; + } + +#if 0 + char ch; + while ( !feof (file)) + { + ch = fgetc(file); + + //ͺ + if (feof(file)) + { + break; + } + + printf("%c", ch); + } +#endif + + + char ch; + + while ((ch = fgetc(file)) != EOF) + { + printf("%c", ch); + } + + fclose(file); +} + + +//ע2 +struct Person +{ + char * name; //Ҫָ д뵽ļ + int age; +}; + + +int main(){ + test01(); + + //printf("%c",EOF); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.vcxproj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.vcxproj new file mode 100644 index 0000000..dc1bed7 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4052180E-163D-49A4-BE01-01E4BA989E24} + Win32Proj + My05文件读写注意事项 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.vcxproj.filters b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.vcxproj.filters new file mode 100644 index 0000000..3bdc5fc --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/05 文件读写注意事项.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.log new file mode 100644 index 0000000..b4dbcae --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.log @@ -0,0 +1,2 @@ + 05 文件读写注意事项.c + 05 文件读写注意事项.vcxproj -> E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\Debug\05 文件读写注意事项.exe diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.obj new file mode 100644 index 0000000..ffe8eea Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/05 文件读写注意事项.lastbuildstate b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/05 文件读写注意事项.lastbuildstate new file mode 100644 index 0000000..277b0cf --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/05 文件读写注意事项.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\| diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/CL.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/CL.read.1.tlog new file mode 100644 index 0000000..38bc072 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/CL.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/CL.write.1.tlog new file mode 100644 index 0000000..360c40a Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/cl.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/cl.command.1.tlog new file mode 100644 index 0000000..6528664 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.command.1.tlog new file mode 100644 index 0000000..e8dd159 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.read.1.tlog new file mode 100644 index 0000000..966c2e1 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.write.1.tlog new file mode 100644 index 0000000..40c0f61 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/05 文件读写注意事项.tlog/link.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/vc120.idb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/vc120.idb new file mode 100644 index 0000000..4d0ebfc Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/vc120.idb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/vc120.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/vc120.pdb new file mode 100644 index 0000000..1bc43f4 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/Debug/vc120.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/test.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/test.txt new file mode 100644 index 0000000..ee9808d --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/05 文件读写注意事项/test.txt @@ -0,0 +1 @@ +aaaaaa \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.c new file mode 100644 index 0000000..c671752 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.c @@ -0,0 +1,61 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include "config.h" + +struct Person +{ + char a; + int b; +}; + +void test01() +{ + char * filePath = "./config.txt"; + + int line = getFileLine(filePath); + + printf("ļЧΪ%d\n", line); + + struct ConfigInfo * pArray = NULL; + + parseFile(filePath, line, &pArray); + + // key value + printf("heroId = %s\n", getInfoByKey("heroId", pArray, line)); + printf("heroName = %s\n", getInfoByKey("heroName", pArray, line)); + printf("heroAtk = %s\n", getInfoByKey("heroAtk", pArray, line)); + printf("heroDef = %s\n", getInfoByKey("heroDef", pArray, line)); + printf("heroInfo = %s\n", getInfoByKey("heroInfo", pArray, line)); + + + //ͷڴ + freeSpace(pArray); + pArray = NULL; + + + + //ļ codeFile( sourceFile , destFile ) + // # 35 תΪ short + // 0000 0000 0010 0011 << 4 + // 0000 0010 0011 0000 + // 1000 0000 0000 0000 | + + // 1000 0010 0011 0000 + 0000 ~ 1111 rand()%16 0~ 15 + // 1000 0010 0011 1010 + + + // decodeFile ( sourceFile , destFile ) + // 1000 0010 0011 1010 <<1 + // 000 0010 0011 10100 >> 5 + // 0000 0000 0010 0011 +} + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.vcxproj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.vcxproj new file mode 100644 index 0000000..d86b5c3 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.vcxproj @@ -0,0 +1,90 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {2F04A59C-2FE6-4D3A-B36E-B4E3D64871CC} + Win32Proj + My06配置文件读写 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.vcxproj.filters b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.vcxproj.filters new file mode 100644 index 0000000..cad114f --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/06 配置文件读写.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + + + 头文件 + + + \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.Build.CppClean.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.Build.CppClean.log new file mode 100644 index 0000000..e6d9a5f --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.Build.CppClean.log @@ -0,0 +1,13 @@ +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\vc120.pdb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\vc120.idb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.obj +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\config.obj +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\06 配置文件读写.ilk +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\06 配置文件读写.exe +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\debug\06 配置文件读写.pdb +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.tlog\link.command.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.tlog\link.read.1.tlog +e:\0504\sendtostudent\day5_c\code\01 结构体嵌套二级指针练习\06 配置文件读写\debug\06 配置文件读写.tlog\link.write.1.tlog diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.log b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.log new file mode 100644 index 0000000..aee5a53 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.log @@ -0,0 +1,4 @@ + config.c + 06 配置文件读写.c + 正在生成代码... + 06 配置文件读写.vcxproj -> E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\Debug\06 配置文件读写.exe diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.obj new file mode 100644 index 0000000..c103bca Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/06 配置文件读写.lastbuildstate b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/06 配置文件读写.lastbuildstate new file mode 100644 index 0000000..277b0cf --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/06 配置文件读写.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day5_C\Code\01 结构体嵌套二级指针练习\| diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/CL.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/CL.read.1.tlog new file mode 100644 index 0000000..3009096 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/CL.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/CL.write.1.tlog new file mode 100644 index 0000000..3593865 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/cl.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/cl.command.1.tlog new file mode 100644 index 0000000..42d611b Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.command.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.command.1.tlog new file mode 100644 index 0000000..2cd089d Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.command.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.read.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.read.1.tlog new file mode 100644 index 0000000..862f9cb Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.read.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.write.1.tlog b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.write.1.tlog new file mode 100644 index 0000000..bcdae84 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/06 配置文件读写.tlog/link.write.1.tlog differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/config.obj b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/config.obj new file mode 100644 index 0000000..502bb40 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/config.obj differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/vc120.idb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/vc120.idb new file mode 100644 index 0000000..51f4a13 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/vc120.idb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/vc120.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/vc120.pdb new file mode 100644 index 0000000..d9c8b51 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/Debug/vc120.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.c b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.c new file mode 100644 index 0000000..dd4e0c4 --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.c @@ -0,0 +1,106 @@ +#include "config.h" + +//ȡЧ +int getFileLine(char * fileName) +{ + FILE * file = fopen(fileName, "r"); + if (file == NULL) + { + return -1 ; + } + + char buf[1024] = { 0 }; + int lines = 0; + while (fgets(buf, 1024, file) != NULL) + { + //Ч ͳ + if (isValidLine(buf)) + { + lines++; + } + + } + fclose(file); + + return lines; +} + +//жϵǰǷЧ +int isValidLine(char * str) +{ + if (str[0] == ' ' || str[0] == '\0' || strchr(str,':') == NULL) + { + return 0; //Ч ؼ + } + return 1; +} + + +//ļ +void parseFile(char * filePath, int lines, struct ConfigInfo ** configInfo) +{ + + struct ConfigInfo * info = malloc(sizeof(struct ConfigInfo) * lines); + + if (info == NULL) + { + return; + } + + FILE * file = fopen(filePath, "r"); + + char buf[1024] = { 0 }; + int index = 0; + while ( fgets(buf,1024,file ) != NULL) + { + // ЧݲŽ + // heroName:aaaa\n + if (isValidLine(buf)) + { + memset(info[index].key, 0, 64); + memset(info[index].value, 0, 64); + + char * pos = strchr(buf, ':'); //posðλ + + strncpy(info[index].key, buf, pos - buf); //keyȡ ṹ -1ԭDzҪȡз + strncpy(info[index].value, pos + 1, strlen(pos + 1) - 1); + + /*printf("key = %s\n", info[index].key); + printf("value = %s", info[index].value);*/ + index++; + + } + + memset(buf, 0, 1024); + + } + + + *configInfo = info; +} + + +//ֵ ȡ ʵֵ +char * getInfoByKey(char * key, struct ConfigInfo * configInfo, int line) +{ + for (int i = 0; i < line;i++) + { + if ( strcmp (key, configInfo[i].key ) == 0) + { + return configInfo[i].value; + } + } + return NULL; +} + + +//ͷϢ +void freeSpace(struct ConfigInfo * configInfo) +{ + if (configInfo != NULL) + { + free(configInfo); + configInfo = NULL; + } + +} \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.h b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.h new file mode 100644 index 0000000..e8c7b8b --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.h @@ -0,0 +1,27 @@ +#pragma once +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +struct ConfigInfo +{ + char key[64]; //ֵ + char value[64]; //ʵֵ +}; + + +//ȡЧ +int getFileLine( char * fileName ); + +//жϵǰǷЧ +int isValidLine(char * str); + +//ļ +void parseFile(char * filePath, int lines, struct ConfigInfo ** configInfo); + +//ֵ ȡ ʵֵ +char * getInfoByKey(char * key, struct ConfigInfo * configInfo, int line); + +//ͷϢ +void freeSpace(struct ConfigInfo * configInfo); diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.txt b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.txt new file mode 100644 index 0000000..0d5442e --- /dev/null +++ b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/06 配置文件读写/config.txt @@ -0,0 +1,22 @@ +#Ӣ۵Id +heroId:1 +#Ӣ۵ +heroName: +#Ӣ۹ +heroAtk:1000 +#Ӣ۷ +heroDef:9999 +#Ӣۼ +heroInfo:޵ + + + +aaaaaaaaaaaaa +struct ConfigInfo +{ + char key[64]; + char value[64]; +} + + + struct ConfigInfo * pArray = malloc( sizeof(struct ConfigInfo) * 5 ) \ No newline at end of file diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.exe b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.exe new file mode 100644 index 0000000..ac034c3 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.exe differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.ilk b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.ilk new file mode 100644 index 0000000..f0e884d Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.ilk differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.pdb new file mode 100644 index 0000000..4ea9235 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/01 结构体嵌套二级指针练习.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.exe b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.exe new file mode 100644 index 0000000..90ea4ea Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.exe differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.ilk b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.ilk new file mode 100644 index 0000000..993f389 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.ilk differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.pdb new file mode 100644 index 0000000..72033a3 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/02 结构体偏移量.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.exe b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.exe new file mode 100644 index 0000000..bf4b456 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.exe differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.ilk b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.ilk new file mode 100644 index 0000000..9fa68bb Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.ilk differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.pdb new file mode 100644 index 0000000..5f2d341 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/03 内存对齐.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.exe b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.exe new file mode 100644 index 0000000..c6ddeaa Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.exe differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.ilk b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.ilk new file mode 100644 index 0000000..78eae87 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.ilk differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.pdb new file mode 100644 index 0000000..17ffdaf Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/04 文件读写回顾.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.exe b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.exe new file mode 100644 index 0000000..3e39fd7 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.exe differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.ilk b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.ilk new file mode 100644 index 0000000..62c825e Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.ilk differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.pdb new file mode 100644 index 0000000..44400de Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/05 文件读写注意事项.pdb differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.exe b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.exe new file mode 100644 index 0000000..27a90dc Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.exe differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.ilk b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.ilk new file mode 100644 index 0000000..34a650b Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.ilk differ diff --git a/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.pdb b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.pdb new file mode 100644 index 0000000..f0eb9e9 Binary files /dev/null and b/C语言提高/days05/Code/01 结构体嵌套二级指针练习/Debug/06 配置文件读写.pdb differ diff --git a/C语言提高/days05/Doc/Day5笔记.docx b/C语言提高/days05/Doc/Day5笔记.docx new file mode 100644 index 0000000..5f09457 Binary files /dev/null and b/C语言提高/days05/Doc/Day5笔记.docx differ diff --git a/C语言提高/days05/Doc/内存对齐的好处.png b/C语言提高/days05/Doc/内存对齐的好处.png new file mode 100644 index 0000000..d7afba7 Binary files /dev/null and b/C语言提高/days05/Doc/内存对齐的好处.png differ diff --git a/C语言提高/days05/Doc/文件缓冲区解析图.png b/C语言提高/days05/Doc/文件缓冲区解析图.png new file mode 100644 index 0000000..77fc695 Binary files /dev/null and b/C语言提高/days05/Doc/文件缓冲区解析图.png differ diff --git a/C语言提高/days05/Doc/结构体嵌套二级指针练习.png b/C语言提高/days05/Doc/结构体嵌套二级指针练习.png new file mode 100644 index 0000000..6a74718 Binary files /dev/null and b/C语言提高/days05/Doc/结构体嵌套二级指针练习.png differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.sdf b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.sdf new file mode 100644 index 0000000..fd67083 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.sdf differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.sln b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.sln new file mode 100644 index 0000000..47bb058 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.sln @@ -0,0 +1,46 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 静态链表和动态链表", "01 静态链表和动态链表\01 静态链表和动态链表.vcxproj", "{5EB8F26D-E11A-4361-AB3F-32443ADAB496}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 链表的基本使用", "02 链表的基本使用\02 链表的基本使用.vcxproj", "{D6681674-70E3-4AA9-8BA4-3908FD887453}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 函数指针的定义", "03 函数指针的定义\03 函数指针的定义.vcxproj", "{BBD32CD1-4099-442E-AFD0-5E4C2D8EFA46}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 函数指针做函数参数", "04 函数指针做函数参数\04 函数指针做函数参数.vcxproj", "{448E21F9-79FE-49F5-ACA0-9F32D9AC35C1}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 回调函数案例", "05 回调函数案例\05 回调函数案例.vcxproj", "{C564D31E-A263-45AF-8553-4F3C4872E423}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5EB8F26D-E11A-4361-AB3F-32443ADAB496}.Debug|Win32.ActiveCfg = Debug|Win32 + {5EB8F26D-E11A-4361-AB3F-32443ADAB496}.Debug|Win32.Build.0 = Debug|Win32 + {5EB8F26D-E11A-4361-AB3F-32443ADAB496}.Release|Win32.ActiveCfg = Release|Win32 + {5EB8F26D-E11A-4361-AB3F-32443ADAB496}.Release|Win32.Build.0 = Release|Win32 + {D6681674-70E3-4AA9-8BA4-3908FD887453}.Debug|Win32.ActiveCfg = Debug|Win32 + {D6681674-70E3-4AA9-8BA4-3908FD887453}.Debug|Win32.Build.0 = Debug|Win32 + {D6681674-70E3-4AA9-8BA4-3908FD887453}.Release|Win32.ActiveCfg = Release|Win32 + {D6681674-70E3-4AA9-8BA4-3908FD887453}.Release|Win32.Build.0 = Release|Win32 + {BBD32CD1-4099-442E-AFD0-5E4C2D8EFA46}.Debug|Win32.ActiveCfg = Debug|Win32 + {BBD32CD1-4099-442E-AFD0-5E4C2D8EFA46}.Debug|Win32.Build.0 = Debug|Win32 + {BBD32CD1-4099-442E-AFD0-5E4C2D8EFA46}.Release|Win32.ActiveCfg = Release|Win32 + {BBD32CD1-4099-442E-AFD0-5E4C2D8EFA46}.Release|Win32.Build.0 = Release|Win32 + {448E21F9-79FE-49F5-ACA0-9F32D9AC35C1}.Debug|Win32.ActiveCfg = Debug|Win32 + {448E21F9-79FE-49F5-ACA0-9F32D9AC35C1}.Debug|Win32.Build.0 = Debug|Win32 + {448E21F9-79FE-49F5-ACA0-9F32D9AC35C1}.Release|Win32.ActiveCfg = Release|Win32 + {448E21F9-79FE-49F5-ACA0-9F32D9AC35C1}.Release|Win32.Build.0 = Release|Win32 + {C564D31E-A263-45AF-8553-4F3C4872E423}.Debug|Win32.ActiveCfg = Debug|Win32 + {C564D31E-A263-45AF-8553-4F3C4872E423}.Debug|Win32.Build.0 = Debug|Win32 + {C564D31E-A263-45AF-8553-4F3C4872E423}.Release|Win32.ActiveCfg = Release|Win32 + {C564D31E-A263-45AF-8553-4F3C4872E423}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.v12.suo b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.v12.suo new file mode 100644 index 0000000..bf93d82 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表.v12.suo differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.c b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.c new file mode 100644 index 0000000..d68b572 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.c @@ -0,0 +1,93 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1̬ + +//ڵ +struct LinkNode +{ + int num; // + struct LinkNode * next; //ָ +}; + + +void test01() +{ + //ڵ + struct LinkNode node1 = { 10, NULL }; + struct LinkNode node2 = { 20, NULL }; + struct LinkNode node3 = { 30, NULL }; + struct LinkNode node4 = { 40, NULL }; + struct LinkNode node5 = { 50, NULL }; + + //ϵ + node1.next = &node2; + node2.next = &node3; + node3.next = &node4; + node4.next = &node5; + + //α + + //һָ ָһڵ + struct LinkNode * pCurrent = &node1; + + while ( pCurrent != NULL) + { + printf("%d\n", pCurrent->num); + + pCurrent = pCurrent->next; + } + +} + + + +//2̬ + +void test02() +{ + struct LinkNode * node1 = malloc(sizeof(struct LinkNode)); + struct LinkNode * node2 = malloc(sizeof(struct LinkNode)); + struct LinkNode * node3 = malloc(sizeof(struct LinkNode)); + struct LinkNode * node4 = malloc(sizeof(struct LinkNode)); + struct LinkNode * node5 = malloc(sizeof(struct LinkNode)); + + node1->num = 10; + node2->num = 20; + node3->num = 30; + node4->num = 40; + node5->num = 50; + + //ϵ + node1->next = node2; + node2->next = node3; + node3->next = node4; + node4->next = node5; + node5->next = NULL; + + + // + struct LinkNode * pCurrent = node1; + while (pCurrent != NULL) + { + printf(":::%d\n", pCurrent->num); + pCurrent = pCurrent->next; + } + + //ͷŽڵ + free(node1); + free(node2); + free(node3); + free(node4); + free(node5); +} + +int main(){ + //test01(); + test02(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.vcxproj b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.vcxproj new file mode 100644 index 0000000..324f213 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {5EB8F26D-E11A-4361-AB3F-32443ADAB496} + Win32Proj + My01静态链表和动态链表 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.vcxproj.filters b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.vcxproj.filters new file mode 100644 index 0000000..8818260 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/01 静态链表和动态链表.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.log b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.log new file mode 100644 index 0000000..d9c2800 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.log @@ -0,0 +1,2 @@ + 01 静态链表和动态链表.c + 01 静态链表和动态链表.vcxproj -> E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\Debug\01 静态链表和动态链表.exe diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.obj b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.obj new file mode 100644 index 0000000..788089f Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.obj differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/01 静态链表和动态链表.lastbuildstate b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/01 静态链表和动态链表.lastbuildstate new file mode 100644 index 0000000..032e223 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/01 静态链表和动态链表.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\| diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/CL.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/CL.read.1.tlog new file mode 100644 index 0000000..40e8509 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/CL.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/CL.write.1.tlog new file mode 100644 index 0000000..145e1b4 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/cl.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/cl.command.1.tlog new file mode 100644 index 0000000..95fcb50 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.command.1.tlog new file mode 100644 index 0000000..c9a13d3 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.read.1.tlog new file mode 100644 index 0000000..550fbd7 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.write.1.tlog new file mode 100644 index 0000000..0dc01df Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/01 静态链表和动态链表.tlog/link.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/vc120.idb b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/vc120.idb new file mode 100644 index 0000000..3a8fa93 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/vc120.idb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/vc120.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/vc120.pdb new file mode 100644 index 0000000..df31ee6 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/01 静态链表和动态链表/Debug/vc120.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.c b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.c new file mode 100644 index 0000000..ba046da --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.c @@ -0,0 +1,63 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include "linkList.h" + + +void test01() +{ + //ʼ + struct LinkNode * pHeader = init_LinkList(); + + // + printf("ĽΪ\n"); + foreach_LinkList(pHeader); + + + // + // 100 10 200 20 30 300 + insert_LinkList(pHeader, 10, 100); + insert_LinkList(pHeader, 20, 200); + insert_LinkList(pHeader, -1, 300); + + printf("ݺ󣬱ĽΪ\n"); + foreach_LinkList(pHeader); + + + // ɾ + delete_LinkList(pHeader, 30); + delete_LinkList(pHeader, 100); + delete_LinkList(pHeader, 1000); + + // 10 200 20 300 + printf("ɾݺ󣬱ĽΪ\n"); + foreach_LinkList(pHeader); + + + // + clear_LinkList(pHeader); + printf("ݺ󣬱ĽΪ\n"); + foreach_LinkList(pHeader); + + + insert_LinkList(pHeader, 111, 111); + insert_LinkList(pHeader, 222, 222); + insert_LinkList(pHeader, 333, 333); + + printf("պٴʹĽΪ\n"); + foreach_LinkList(pHeader); + + // + destroy_LinkList(pHeader); + pHeader = NULL; +} + + +int main(){ + + test01(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.vcxproj b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.vcxproj new file mode 100644 index 0000000..cf5b173 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.vcxproj @@ -0,0 +1,90 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {D6681674-70E3-4AA9-8BA4-3908FD887453} + Win32Proj + My02链表的基本使用 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.vcxproj.filters b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.vcxproj.filters new file mode 100644 index 0000000..54b2983 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/02 链表的基本使用.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + + + 头文件 + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.log b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.log new file mode 100644 index 0000000..94c35fb --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.log @@ -0,0 +1,2 @@ + 02 链表的基本使用.c + 02 链表的基本使用.vcxproj -> E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\Debug\02 链表的基本使用.exe diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.obj b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.obj new file mode 100644 index 0000000..b72c6ae Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.obj differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/02 链表的基本使用.lastbuildstate b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/02 链表的基本使用.lastbuildstate new file mode 100644 index 0000000..032e223 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/02 链表的基本使用.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\| diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/CL.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/CL.read.1.tlog new file mode 100644 index 0000000..7ef9bd7 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/CL.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/CL.write.1.tlog new file mode 100644 index 0000000..82e3254 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/cl.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/cl.command.1.tlog new file mode 100644 index 0000000..2398c03 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.command.1.tlog new file mode 100644 index 0000000..be7e2dc Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.read.1.tlog new file mode 100644 index 0000000..844dff1 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.write.1.tlog new file mode 100644 index 0000000..0b57246 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/02 链表的基本使用.tlog/link.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/linkList.obj b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/linkList.obj new file mode 100644 index 0000000..ba6d20e Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/linkList.obj differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/vc120.idb b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/vc120.idb new file mode 100644 index 0000000..741b633 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/vc120.idb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/vc120.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/vc120.pdb new file mode 100644 index 0000000..a789179 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/Debug/vc120.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/linkList.c b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/linkList.c new file mode 100644 index 0000000..e260c1b --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/linkList.c @@ -0,0 +1,176 @@ +#include "linkList.h" + +//ʼ +struct LinkNode * init_LinkList() +{ + struct LinkNode * pHeader = malloc(sizeof(struct LinkNode)); + + if (pHeader == NULL) + { + return NULL; + } + + //pHeader->num = -1; ͷڵ㲻ά + pHeader->next = NULL; //ͷڵʼָΪNULL + + //һβڵ㣬úµ + struct LinkNode * pTail = pHeader; + + int val = -1; + + while (1) + { + printf(" -1\n"); + + scanf("%d", &val); + + if (val == -1) + { + break; + } + + //½ڵ + struct LinkNode * newNode = malloc(sizeof(struct LinkNode)); + newNode->num = val; + newNode->next = NULL; + + //ϵ + pTail->next = newNode; + //µβڵ + pTail = newNode; + + } + return pHeader; +} + +// +void foreach_LinkList(struct LinkNode * pHeader) +{ + if (pHeader == NULL) + { + return; + } + //pCurrent ʼָǵһʵݵĽڵ + struct LinkNode * pCurrent = pHeader->next; + + + while (pCurrent != NULL) + { + printf("%d\n", pCurrent->num); + pCurrent = pCurrent->next; + } +} + + +// +void insert_LinkList(struct LinkNode * pHeader, int oldVal, int newVal) +{ + if (pHeader == NULL) + { + return; + } + + //ָ + struct LinkNode * pPrev = pHeader; + struct LinkNode * pCurrent = pHeader->next; + + while ( pCurrent != NULL) + { + if (pCurrent->num == oldVal) //ҵλ + { + break; + } + + //ûҵλãøָ + pPrev = pCurrent; + pCurrent = pCurrent->next; + } + + //½ڵ + struct LinkNode * newNode = malloc(sizeof(struct LinkNode)); + newNode->num = newVal; + newNode->next = NULL; + + + //ϵ ָָ + newNode->next = pCurrent; + pPrev->next = newNode; +} + + +//ɾ +void delete_LinkList(struct LinkNode * pHeader, int val) +{ + if (pHeader == NULL) + { + return; + } + + //ָ + struct LinkNode * pPrve = pHeader; + struct LinkNode * pCurrent = pHeader->next; + + + while (pCurrent != NULL) + { + if (pCurrent->num == val) + { + break; + } + pPrve = pCurrent; + pCurrent = pCurrent->next; + } + + //Ч ֱreturn + if ( pCurrent == NULL) + { + return; + } + + //ָָ + pPrve->next = pCurrent->next; + + //ɾڵ + free(pCurrent); + pCurrent = NULL; +} + + +// +void clear_LinkList(struct LinkNode * pHeader) +{ + if (pHeader == NULL) + { + return; + } + + //ʱָ + struct LinkNode * pCurrent = pHeader->next; + + while ( pCurrent !=NULL ) + { + //ȱסɾڵĺĽڵ + struct LinkNode * nextNode = pCurrent->next; + + free(pCurrent); + pCurrent = nextNode; + } + + //ͷڵnextÿ + pHeader->next = NULL; +} + +// +void destroy_LinkList(struct LinkNode * pHeader) +{ + if (pHeader == NULL) + { + return; + } + + // + clear_LinkList(pHeader); + //ͷͷڵ + free(pHeader); + pHeader = NULL; +} \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/linkList.h b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/linkList.h new file mode 100644 index 0000000..43abf64 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/02 链表的基本使用/linkList.h @@ -0,0 +1,32 @@ +#pragma once +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//ڵ +struct LinkNode +{ + int num; + struct LinkNode * next; +}; + + +//ʼ +struct LinkNode * init_LinkList(); + +// +void foreach_LinkList( struct LinkNode * pHeader ); + + +// +void insert_LinkList(struct LinkNode * pHeader, int oldVal, int newVal); + +//ɾ +void delete_LinkList(struct LinkNode * pHeader, int val); + +// +void clear_LinkList(struct LinkNode * pHeader); + +// +void destroy_LinkList(struct LinkNode * pHeader); \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.c b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.c new file mode 100644 index 0000000..0b6f488 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.c @@ -0,0 +1,91 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void func() +{ + + printf("hello world\n"); +} + +//ָĶ巽ʽ +void test01() +{ + + //ȶͣͨͶָ + typedef void(FUNC_TYPE)(); + + FUNC_TYPE * pFunc = func; + + pFunc(); + +} + +void test02() +{ + //ȶָͣٶ庯ָ + typedef void(*FUNC_TYPE)(); + + FUNC_TYPE pFunc = func; + + pFunc(); +} + + +void test03() +{ + //ֱӶ庯ָ + void(* pFunc )() = func; + + pFunc(); + +} + + +//ָ + +void func1() +{ + printf("func1ĵ\n"); +} +void func2() +{ + printf("func2ĵ\n"); +} +void func3() +{ + printf("func3ĵ\n"); +} + + +void test04() +{ + //ָĶ + void(*pFunc[3])(); + pFunc[0] = func1; + pFunc[1] = func2; + pFunc[2] = func3; + + for (int i = 0; i < 3;i++) + { + pFunc[i](); + } + +} + +// ָ ָ뺯 𣿣 +//ָ ָ ָ +//ָ뺯 ķֵһָ + +int main(){ + + //test01(); + //test02(); + + //test03(); + test04(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.vcxproj b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.vcxproj new file mode 100644 index 0000000..c456e56 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {BBD32CD1-4099-442E-AFD0-5E4C2D8EFA46} + Win32Proj + My03函数指针的定义 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.vcxproj.filters b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.vcxproj.filters new file mode 100644 index 0000000..9a323b0 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/03 函数指针的定义.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.Build.CppClean.log b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.Build.CppClean.log new file mode 100644 index 0000000..5126595 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\vc120.pdb +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\vc120.idb +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.obj +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\debug\03 函数指针的定义.ilk +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\debug\03 函数指针的定义.exe +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\debug\03 函数指针的定义.pdb +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.tlog\link.command.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.tlog\link.read.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\03 函数指针的定义\debug\03 函数指针的定义.tlog\link.write.1.tlog diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.log b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.log new file mode 100644 index 0000000..9d6edd3 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.log @@ -0,0 +1,2 @@ + 03 函数指针的定义.c + 03 函数指针的定义.vcxproj -> E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\Debug\03 函数指针的定义.exe diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.obj b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.obj new file mode 100644 index 0000000..968ee02 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.obj differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/03 函数指针的定义.lastbuildstate b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/03 函数指针的定义.lastbuildstate new file mode 100644 index 0000000..032e223 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/03 函数指针的定义.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\| diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/CL.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/CL.read.1.tlog new file mode 100644 index 0000000..c629881 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/CL.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b260371 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/cl.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/cl.command.1.tlog new file mode 100644 index 0000000..4fe4886 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.command.1.tlog new file mode 100644 index 0000000..ea4b5f0 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.read.1.tlog new file mode 100644 index 0000000..7492666 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.write.1.tlog new file mode 100644 index 0000000..a3aca74 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/03 函数指针的定义.tlog/link.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/vc120.idb b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/vc120.idb new file mode 100644 index 0000000..072af2c Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/vc120.idb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/vc120.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/vc120.pdb new file mode 100644 index 0000000..e4d0645 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/03 函数指针的定义/Debug/vc120.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.c b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.c new file mode 100644 index 0000000..f8c0b6e --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.c @@ -0,0 +1,48 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//ṩһԽ ӡ +void printText( void * a , void(*myPrint)(void *) ) +{ + myPrint(a); +} + + +void myPrintInt(void * data) +{ + int * num = data; + printf("%d\n", *num); +} +void test01() +{ + int a = 100; + printText(&a, myPrintInt); +} + +struct Person +{ + char name[64]; + int age; +}; + +void myPrintPerson(void * data) +{ + struct Person * p = data; + printf(" %s 䣺 %d\n", p->name, p->age); +} + +void test02() +{ + struct Person p = { "aaa", 10 }; + printText(&p, myPrintPerson); +} + +int main(){ + + //test01(); + test02(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.vcxproj b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.vcxproj new file mode 100644 index 0000000..5016526 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {448E21F9-79FE-49F5-ACA0-9F32D9AC35C1} + Win32Proj + My04函数指针做函数参数 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.vcxproj.filters b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.vcxproj.filters new file mode 100644 index 0000000..47f5285 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/04 函数指针做函数参数.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.log b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.log new file mode 100644 index 0000000..da30480 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.log @@ -0,0 +1,2 @@ + 04 函数指针做函数参数.c + 04 函数指针做函数参数.vcxproj -> E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\Debug\04 函数指针做函数参数.exe diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.obj b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.obj new file mode 100644 index 0000000..71f0017 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.obj differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/04 函数指针做函数参数.lastbuildstate b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/04 函数指针做函数参数.lastbuildstate new file mode 100644 index 0000000..032e223 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/04 函数指针做函数参数.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\| diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/CL.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/CL.read.1.tlog new file mode 100644 index 0000000..2f20bb1 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/CL.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/CL.write.1.tlog new file mode 100644 index 0000000..9a3b7f5 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/cl.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/cl.command.1.tlog new file mode 100644 index 0000000..4ed0db4 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.command.1.tlog new file mode 100644 index 0000000..8bf3bcd Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.read.1.tlog new file mode 100644 index 0000000..258e856 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.write.1.tlog new file mode 100644 index 0000000..67c83a0 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/04 函数指针做函数参数.tlog/link.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/vc120.idb b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/vc120.idb new file mode 100644 index 0000000..4324852 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/vc120.idb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/vc120.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/vc120.pdb new file mode 100644 index 0000000..9cacafd Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/04 函数指针做函数参数/Debug/vc120.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.c b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.c new file mode 100644 index 0000000..fa0ad31 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.c @@ -0,0 +1,127 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1ṩһԴӡ͵ +void printAllArray( void * arr , int eleSize, int len , void(*myFunc)(void *) ) +{ + char * p = arr; + for (int i = 0; i < len; i++) + { + char * eleAddr = p + i * eleSize; //ÿԪ׵ַ + //printf("%d\n", *(int*)eleAddr); + + myFunc(eleAddr); + + } +} + + + + +void myPrintInt(void * data) +{ + int * num = data; + printf("%d\n", *num); +} + +void test01() +{ + int arr[6] = { 1,2, 3, 4, 5, 6 }; + int len = sizeof(arr) / sizeof(int); + printAllArray(arr, sizeof(int), len, myPrintInt); +} + + +struct Person +{ + char name[64]; + int age; +}; + +void myPrintPerson(void * data) +{ + struct Person * p = data; + printf(" %s 䣺 %d\n", p->name, p->age); +} +void test02() +{ + struct Person pArray[] = + { + { "aaa", 10 }, + { "bbb", 20 }, + { "ccc", 30 }, + { "ddd", 40 }, + }; + int len = sizeof(pArray) / sizeof(struct Person); + printAllArray(pArray, sizeof(struct Person), len, myPrintPerson); +} + + + +// 1 ׵ַ 2 ÿԪռڴռ 3 Ԫظ 4 ҵԪصĵַ 5 ص +int myFindPerson(void * arr, int eleSize, int len , void * data , int (*myCompare)( void * , void * ) ) +{ + char * p = arr; + for (int i = 0; i < len;i++) + { + char * eleAddr = p + i * eleSize; //ȡÿԪص׵ַ + + //if ( eleAddr data Ԫ ) + if ( myCompare(eleAddr , data )) + { + return 1; + } + } + return 0; +} + + +int myComparePerson(void * data1, void * data2) +{ + struct Person * p1 = data1; + struct Person * p2 = data2; + + if ( strcmp( p1->name, p2->name ) == 0 && p1->age == p2->age) + { + return 1; + } + return 0; + +} + +void test03() +{ + struct Person pArray[] = + { + { "aaa", 10 }, + { "bbb", 20 }, + { "ccc", 30 }, + { "ddd", 40 }, + }; + + struct Person p = { "ccc", 30 }; + int len = sizeof(pArray) / sizeof(struct Person); + //еԪأҵ1 Ҳ0 + int ret = myFindPerson(pArray, sizeof(struct Person), len, &p, myComparePerson); + + if (ret) + { + printf("ҵԪ\n"); + } + else + { + printf("δҵԪ\n"); + } +} + + +int main(){ + + //test01(); + //test02(); + test03(); + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.vcxproj b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.vcxproj new file mode 100644 index 0000000..ae462a0 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {C564D31E-A263-45AF-8553-4F3C4872E423} + Win32Proj + My05回调函数案例 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.vcxproj.filters b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.vcxproj.filters new file mode 100644 index 0000000..ef914c0 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/05 回调函数案例.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.Build.CppClean.log b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.Build.CppClean.log new file mode 100644 index 0000000..9b770bd --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\vc120.pdb +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\vc120.idb +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.obj +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\debug\05 回调函数案例.ilk +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\debug\05 回调函数案例.exe +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\debug\05 回调函数案例.pdb +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.tlog\link.command.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.tlog\link.read.1.tlog +e:\0504\sendtostudent\day6_c\code\01 静态链表和动态链表\05 回调函数案例\debug\05 回调函数案例.tlog\link.write.1.tlog diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.log b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.log new file mode 100644 index 0000000..cc2d21d --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.log @@ -0,0 +1,2 @@ + 05 回调函数案例.c + 05 回调函数案例.vcxproj -> E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\Debug\05 回调函数案例.exe diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.obj b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.obj new file mode 100644 index 0000000..676a6e0 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.obj differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/05 回调函数案例.lastbuildstate b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/05 回调函数案例.lastbuildstate new file mode 100644 index 0000000..032e223 --- /dev/null +++ b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/05 回调函数案例.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day6_C\Code\01 静态链表和动态链表\| diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/CL.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/CL.read.1.tlog new file mode 100644 index 0000000..fa25c76 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/CL.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/CL.write.1.tlog new file mode 100644 index 0000000..6b85ff9 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/cl.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/cl.command.1.tlog new file mode 100644 index 0000000..345a756 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.command.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.command.1.tlog new file mode 100644 index 0000000..ae3b95c Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.command.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.read.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.read.1.tlog new file mode 100644 index 0000000..447c96b Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.read.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.write.1.tlog b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.write.1.tlog new file mode 100644 index 0000000..fe64faa Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/05 回调函数案例.tlog/link.write.1.tlog differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/vc120.idb b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/vc120.idb new file mode 100644 index 0000000..aa0fd7a Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/vc120.idb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/vc120.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/vc120.pdb new file mode 100644 index 0000000..823b5b6 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/05 回调函数案例/Debug/vc120.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.exe b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.exe new file mode 100644 index 0000000..21f93d0 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.exe differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.ilk b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.ilk new file mode 100644 index 0000000..e1e4cd0 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.ilk differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.pdb new file mode 100644 index 0000000..4f07c11 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/01 静态链表和动态链表.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.exe b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.exe new file mode 100644 index 0000000..7829e45 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.exe differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.ilk b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.ilk new file mode 100644 index 0000000..f7f1911 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.ilk differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.pdb new file mode 100644 index 0000000..400b4f5 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/02 链表的基本使用.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.exe b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.exe new file mode 100644 index 0000000..2644268 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.exe differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.ilk b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.ilk new file mode 100644 index 0000000..7a82dcf Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.ilk differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.pdb new file mode 100644 index 0000000..98fc4a9 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/03 函数指针的定义.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.exe b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.exe new file mode 100644 index 0000000..413daea Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.exe differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.ilk b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.ilk new file mode 100644 index 0000000..99e9240 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.ilk differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.pdb new file mode 100644 index 0000000..777674e Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/04 函数指针做函数参数.pdb differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.exe b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.exe new file mode 100644 index 0000000..038a75f Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.exe differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.ilk b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.ilk new file mode 100644 index 0000000..8747723 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.ilk differ diff --git a/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.pdb b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.pdb new file mode 100644 index 0000000..4615337 Binary files /dev/null and b/C语言提高/days06/Code/01 静态链表和动态链表/Debug/05 回调函数案例.pdb differ diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile new file mode 100644 index 0000000..1a85aed --- /dev/null +++ b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile @@ -0,0 +1,360 @@ +############################################################################# +# Makefile for building: functionPointer +# Generated by qmake (3.0) (Qt 5.6.0) +# Project: ..\functionPointer\functionPointer.pro +# Template: app +# Command: C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\functionPointer\functionPointer.pro +############################################################################# + +MAKEFILE = Makefile + +first: debug +install: debug-install +uninstall: debug-uninstall +QMAKE = C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe +DEL_FILE = del +CHK_DIR_EXISTS= if not exist +MKDIR = mkdir +COPY = copy /y +COPY_FILE = copy /y +COPY_DIR = xcopy /s /q /y /i +INSTALL_FILE = copy /y +INSTALL_PROGRAM = copy /y +INSTALL_DIR = xcopy /s /q /y /i +DEL_FILE = del +SYMLINK = $(QMAKE) -install ln -f -s +DEL_DIR = rmdir +MOVE = move +SUBTARGETS = \ + debug \ + release + + +debug: FORCE + $(MAKE) -f $(MAKEFILE).Debug +debug-make_first: FORCE + $(MAKE) -f $(MAKEFILE).Debug +debug-all: FORCE + $(MAKE) -f $(MAKEFILE).Debug all +debug-clean: FORCE + $(MAKE) -f $(MAKEFILE).Debug clean +debug-distclean: FORCE + $(MAKE) -f $(MAKEFILE).Debug distclean +debug-install: FORCE + $(MAKE) -f $(MAKEFILE).Debug install +debug-uninstall: FORCE + $(MAKE) -f $(MAKEFILE).Debug uninstall +release: FORCE + $(MAKE) -f $(MAKEFILE).Release +release-make_first: FORCE + $(MAKE) -f $(MAKEFILE).Release +release-all: FORCE + $(MAKE) -f $(MAKEFILE).Release all +release-clean: FORCE + $(MAKE) -f $(MAKEFILE).Release clean +release-distclean: FORCE + $(MAKE) -f $(MAKEFILE).Release distclean +release-install: FORCE + $(MAKE) -f $(MAKEFILE).Release install +release-uninstall: FORCE + $(MAKE) -f $(MAKEFILE).Release uninstall + +Makefile: ../functionPointer/functionPointer.pro C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++/qmake.conf C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_pre.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qdevice.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/device_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/common/angle.conf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qconfig.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bootstrap_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_clucene_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designercomponents_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labscontrols_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labstemplates_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_platformsupport_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmldevtools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickparticles_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uiplugin.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns_private.pri \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_functions.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/qt_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++/qmake.conf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_post.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_pre.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/default_pre.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resolve_config.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds_post.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_post.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qml_debug.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/rtti.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/precompile_header.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/warn_on.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resources.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/moc.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/opengl.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/uic.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/windows.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/testcase_targets.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exceptions.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/yacc.prf \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/lex.prf \ + ../functionPointer/functionPointer.pro \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/qtmaind.prl \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Widgets.prl \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Gui.prl \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Core.prl + $(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\functionPointer\functionPointer.pro +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_pre.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qdevice.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/device_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/common/angle.conf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/qconfig.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dcore_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dinput_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dlogic_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquick_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickinput_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3dquickrender_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_3drender_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axbase_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axcontainer_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_axserver_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bluetooth_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_bootstrap_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_clucene_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_concurrent_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_core_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_dbus_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designer_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_designercomponents_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_gui_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_help_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labscontrols_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_labstemplates_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_location_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimedia_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_multimediawidgets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_network_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_nfc_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_opengl_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_openglextensions_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_platformsupport_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_positioning_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_printsupport_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qml_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmldevtools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qmltest_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quick_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickparticles_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_quickwidgets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_script_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_scripttools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sensors_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialbus_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_serialport_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_sql_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_svg_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_testlib_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uiplugin.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_uitools_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_webchannel_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_websockets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_widgets_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_winextras_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xml_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/modules/qt_lib_xmlpatterns_private.pri: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_functions.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/qt_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++/qmake.conf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/spec_post.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_pre.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/default_pre.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resolve_config.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exclusive_builds_post.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/default_post.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qml_debug.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/rtti.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/precompile_header.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/warn_on.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/qt.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/resources.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/moc.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/opengl.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/uic.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/win32/windows.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/testcase_targets.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/exceptions.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/yacc.prf: +C:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/features/lex.prf: +../functionPointer/functionPointer.pro: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/qtmaind.prl: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Widgets.prl: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Gui.prl: +C:/Qt/Qt5.6.0/5.6/mingw49_32/lib/Qt5Core.prl: +qmake: FORCE + @$(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile ..\functionPointer\functionPointer.pro + +qmake_all: FORCE + +make_first: debug-make_first release-make_first FORCE +all: debug-all release-all FORCE +clean: debug-clean release-clean FORCE +distclean: debug-distclean release-distclean FORCE + -$(DEL_FILE) Makefile + +debug-mocclean: + $(MAKE) -f $(MAKEFILE).Debug mocclean +release-mocclean: + $(MAKE) -f $(MAKEFILE).Release mocclean +mocclean: debug-mocclean release-mocclean + +debug-mocables: + $(MAKE) -f $(MAKEFILE).Debug mocables +release-mocables: + $(MAKE) -f $(MAKEFILE).Release mocables +mocables: debug-mocables release-mocables + +check: first +FORCE: + +$(MAKEFILE).Debug: Makefile +$(MAKEFILE).Release: Makefile diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Debug b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Debug new file mode 100644 index 0000000..b6cf413 --- /dev/null +++ b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Debug @@ -0,0 +1,463 @@ +############################################################################# +# Makefile for building: functionPointer +# Generated by qmake (3.0) (Qt 5.6.0) +# Project: ..\functionPointer\functionPointer.pro +# Template: app +############################################################################# + +MAKEFILE = Makefile.Debug + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN +CFLAGS = -pipe -fno-keep-inline-dllexport -g -Wall -Wextra $(DEFINES) +CXXFLAGS = -pipe -fno-keep-inline-dllexport -g -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES) +INCPATH = -I..\functionPointer -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtWidgets -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtGui -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtANGLE -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtCore -Idebug -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++ +LINKER = g++ +LFLAGS = -Wl,-subsystem,windows -mthreads +LIBS = -lmingw32 -LC:\Qt\Qt5.6.0\5.6\mingw49_32\lib C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libqtmaind.a -LC:\utils\postgresql\pgsql\lib -LC:\utils\my_sql\my_sql\lib -lshell32 C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Widgetsd.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Guid.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Cored.a +QMAKE = C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe +IDC = idc +IDL = midl +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = +COPY = copy /y +SED = $(QMAKE) -install sed +COPY_FILE = copy /y +COPY_DIR = xcopy /s /q /y /i +DEL_FILE = del +DEL_DIR = rmdir +MOVE = move +CHK_DIR_EXISTS= if not exist +MKDIR = mkdir +INSTALL_FILE = copy /y +INSTALL_PROGRAM = copy /y +INSTALL_DIR = xcopy /s /q /y /i + +####### Output directory + +OBJECTS_DIR = debug + +####### Files + +SOURCES = ..\functionPointer\main.cpp \ + ..\functionPointer\mainwindow.cpp debug\moc_mainwindow.cpp +OBJECTS = debug/main.o \ + debug/mainwindow.o \ + debug/moc_mainwindow.o + +DIST = ..\functionPointer\mainwindow.h ..\functionPointer\main.cpp \ + ..\functionPointer\mainwindow.cpp +QMAKE_TARGET = functionPointer +DESTDIR = debug\ #avoid trailing-slash linebreak +TARGET = functionPointer.exe +DESTDIR_TARGET = debug\functionPointer.exe + +####### Build rules + +first: all +all: Makefile.Debug $(DESTDIR_TARGET) + +$(DESTDIR_TARGET): ui_mainwindow.h $(OBJECTS) + $(LINKER) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS) + +qmake: FORCE + @$(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile.Debug ..\functionPointer\functionPointer.pro + +qmake_all: FORCE + +dist: + $(ZIP) functionPointer.zip $(SOURCES) $(DIST) ..\functionPointer\functionPointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qdevice.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\device_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\common\angle.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qconfig.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bootstrap_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_clucene_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designercomponents_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labscontrols_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labstemplates_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_platformsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmldevtools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qtmultimediaquicktools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickparticles_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uiplugin.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_functions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++\qmake.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resolve_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\build_pass.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qml_debug.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\rtti.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\precompile_header.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\warn_on.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resources.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\moc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\opengl.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\uic.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\windows.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\testcase_targets.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exceptions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\yacc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\lex.prf ..\functionPointer\functionPointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\qtmaind.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Widgetsd.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Guid.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Cored.prl NO_PCH_SOURCES RESOURCES HEADERS SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES + +clean: compiler_clean + -$(DEL_FILE) debug\main.o debug\mainwindow.o debug\moc_mainwindow.o + +distclean: clean + -$(DEL_FILE) $(DESTDIR_TARGET) + -$(DEL_FILE) Makefile.Debug + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +check: first + +compiler_no_pch_compiler_make_all: +compiler_no_pch_compiler_clean: +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_moc_header_make_all: debug/moc_mainwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) debug\moc_mainwindow.cpp +debug/moc_mainwindow.cpp: C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ../functionPointer/mainwindow.h + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\moc.exe $(DEFINES) -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++ -IE:/0504/sendToStudent/Day6_C/Code/functionPointer -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtANGLE -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore -I. ..\functionPointer\mainwindow.h -o debug\moc_mainwindow.cpp + +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_mainwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_mainwindow.h +ui_mainwindow.h: ../functionPointer/mainwindow.ui + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\uic.exe ..\functionPointer\mainwindow.ui -o ui_mainwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + + + +####### Compile + +debug/main.o: ../functionPointer/main.cpp ../functionPointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QApplication \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qeventloop.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qdesktopwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qguiapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qinputmethod.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\main.o ..\functionPointer\main.cpp + +debug/mainwindow.o: ../functionPointer/mainwindow.cpp ../functionPointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ui_mainwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\mainwindow.o ..\functionPointer\mainwindow.cpp + +debug/moc_mainwindow.o: debug/moc_mainwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o debug\moc_mainwindow.o debug\moc_mainwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Release b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Release new file mode 100644 index 0000000..800fa24 --- /dev/null +++ b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/Makefile.Release @@ -0,0 +1,463 @@ +############################################################################# +# Makefile for building: functionPointer +# Generated by qmake (3.0) (Qt 5.6.0) +# Project: ..\functionPointer\functionPointer.pro +# Template: app +############################################################################# + +MAKEFILE = Makefile.Release + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DUNICODE -DQT_QML_DEBUG -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN +CFLAGS = -pipe -fno-keep-inline-dllexport -O2 -Wall -Wextra $(DEFINES) +CXXFLAGS = -pipe -fno-keep-inline-dllexport -O2 -std=gnu++0x -frtti -Wall -Wextra -fexceptions -mthreads $(DEFINES) +INCPATH = -I..\functionPointer -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtWidgets -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtGui -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtANGLE -IC:\Qt\Qt5.6.0\5.6\mingw49_32\include\QtCore -Irelease -I. -IC:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++ +LINKER = g++ +LFLAGS = -Wl,-s -Wl,-subsystem,windows -mthreads +LIBS = -lmingw32 -LC:\Qt\Qt5.6.0\5.6\mingw49_32\lib C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libqtmain.a -LC:\utils\postgresql\pgsql\lib -LC:\utils\my_sql\my_sql\lib -lshell32 C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Widgets.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Gui.a C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\libQt5Core.a +QMAKE = C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\qmake.exe +IDC = idc +IDL = midl +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = +COPY = copy /y +SED = $(QMAKE) -install sed +COPY_FILE = copy /y +COPY_DIR = xcopy /s /q /y /i +DEL_FILE = del +DEL_DIR = rmdir +MOVE = move +CHK_DIR_EXISTS= if not exist +MKDIR = mkdir +INSTALL_FILE = copy /y +INSTALL_PROGRAM = copy /y +INSTALL_DIR = xcopy /s /q /y /i + +####### Output directory + +OBJECTS_DIR = release + +####### Files + +SOURCES = ..\functionPointer\main.cpp \ + ..\functionPointer\mainwindow.cpp release\moc_mainwindow.cpp +OBJECTS = release/main.o \ + release/mainwindow.o \ + release/moc_mainwindow.o + +DIST = ..\functionPointer\mainwindow.h ..\functionPointer\main.cpp \ + ..\functionPointer\mainwindow.cpp +QMAKE_TARGET = functionPointer +DESTDIR = release\ #avoid trailing-slash linebreak +TARGET = functionPointer.exe +DESTDIR_TARGET = release\functionPointer.exe + +####### Build rules + +first: all +all: Makefile.Release $(DESTDIR_TARGET) + +$(DESTDIR_TARGET): ui_mainwindow.h $(OBJECTS) + $(LINKER) $(LFLAGS) -o $(DESTDIR_TARGET) $(OBJECTS) $(LIBS) + +qmake: FORCE + @$(QMAKE) -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug" -o Makefile.Release ..\functionPointer\functionPointer.pro + +qmake_all: FORCE + +dist: + $(ZIP) functionPointer.zip $(SOURCES) $(DIST) ..\functionPointer\functionPointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qdevice.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\device_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\common\angle.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\qconfig.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dcore_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dlogic_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickinput_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3dquickrender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_3drender_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axbase_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axcontainer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_axserver_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bluetooth_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_bootstrap_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_clucene_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_concurrent_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_core_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_dbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designer_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_designercomponents_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_gui_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_help_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labscontrols_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_labstemplates_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_location_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimedia_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_multimediawidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_network_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_nfc_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_opengl_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_openglextensions_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_platformsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_positioning_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_printsupport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmldevtools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qmltest_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_qtmultimediaquicktools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quick_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickparticles_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_quickwidgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_script_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_scripttools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sensors_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialbus_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_serialport_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_sql_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_svg_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_testlib_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uiplugin.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_uitools_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_webchannel_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_websockets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_widgets_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_winextras_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xml_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\modules\qt_lib_xmlpatterns_private.pri C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_functions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\qt_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\win32-g++\qmake.conf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\spec_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\default_pre.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resolve_config.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exclusive_builds_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\default_post.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\build_pass.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qml_debug.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\rtti.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\precompile_header.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\warn_on.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\qt.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\resources.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\moc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\opengl.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\uic.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\win32\windows.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\testcase_targets.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\exceptions.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\yacc.prf C:\Qt\Qt5.6.0\5.6\mingw49_32\mkspecs\features\lex.prf ..\functionPointer\functionPointer.pro C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\qtmain.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Widgets.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Gui.prl C:\Qt\Qt5.6.0\5.6\mingw49_32\lib\Qt5Core.prl NO_PCH_SOURCES RESOURCES HEADERS SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES + +clean: compiler_clean + -$(DEL_FILE) release\main.o release\mainwindow.o release\moc_mainwindow.o + +distclean: clean + -$(DEL_FILE) $(DESTDIR_TARGET) + -$(DEL_FILE) Makefile.Release + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +check: first + +compiler_no_pch_compiler_make_all: +compiler_no_pch_compiler_clean: +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_moc_header_make_all: release/moc_mainwindow.cpp +compiler_moc_header_clean: + -$(DEL_FILE) release\moc_mainwindow.cpp +release/moc_mainwindow.cpp: C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ../functionPointer/mainwindow.h + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\moc.exe $(DEFINES) -D__GNUC__ -DWIN32 -IC:/Qt/Qt5.6.0/5.6/mingw49_32/mkspecs/win32-g++ -IE:/0504/sendToStudent/Day6_C/Code/functionPointer -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtANGLE -IC:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore -I. ..\functionPointer\mainwindow.h -o release\moc_mainwindow.cpp + +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: ui_mainwindow.h +compiler_uic_clean: + -$(DEL_FILE) ui_mainwindow.h +ui_mainwindow.h: ../functionPointer/mainwindow.ui + C:\Qt\Qt5.6.0\5.6\mingw49_32\bin\uic.exe ..\functionPointer\mainwindow.ui -o ui_mainwindow.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + + + +####### Compile + +release/main.o: ../functionPointer/main.cpp ../functionPointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QApplication \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qeventloop.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qdesktopwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qguiapplication.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qinputmethod.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o ..\functionPointer\main.cpp + +release/mainwindow.o: ../functionPointer/mainwindow.cpp ../functionPointer/mainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/QMainWindow \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qmainwindow.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobal.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qconfig.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfeatures.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsystemdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qprocessordetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcompilerdetection.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypeinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtypetraits.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qisenum.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsysinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlogging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qflags.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbasicatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_bootstrap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qgenericatomic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_cxx11.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_gcc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_msvc.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv7.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv6.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_armv5.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_ia64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_x86.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qatomic_unix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qglobalstatic.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmutex.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnumeric.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qversiontagging.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qnamespace.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobjectdefs_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qwindowdefs_win.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstring.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qchar.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrefcount.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qarraydata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringbuilder.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qalgorithms.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiterator.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhashfunctions.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpair.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qbytearraylist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringlist.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qregexp.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qstringmatcher.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcoreevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qscopedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmetatype.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvarlengtharray.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontainerfwd.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qobject_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmargins.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpaintdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qrect.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsize.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qpoint.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpalette.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcolor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgb.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qrgba64.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qbrush.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvector.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qmatrix.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpolygon.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qregion.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdatastream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qiodevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qline.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtransform.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpainterpath.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qimage.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixelformat.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qpixmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qshareddata.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qhash.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qsharedpointer_impl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfont.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontmetrics.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qfontinfo.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qsizepolicy.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qcursor.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qkeysequence.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qevent.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qvariant.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qmap.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qdebug.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qtextstream.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qlocale.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qset.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qcontiguouscache.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurl.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qurlquery.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfile.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtCore/qfiledevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qvector2d.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qtouchdevice.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtWidgets/qtabwidget.h \ + C:/Qt/Qt5.6.0/5.6/mingw49_32/include/QtGui/qicon.h \ + ui_mainwindow.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\mainwindow.o ..\functionPointer\mainwindow.cpp + +release/moc_mainwindow.o: release/moc_mainwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_mainwindow.o release\moc_mainwindow.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: + diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/functionPointer.exe b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/functionPointer.exe new file mode 100644 index 0000000..2d3fce3 Binary files /dev/null and b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/functionPointer.exe differ diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/main.o b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/main.o new file mode 100644 index 0000000..0e4c8ad Binary files /dev/null and b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/main.o differ diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/mainwindow.o b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/mainwindow.o new file mode 100644 index 0000000..ffd3ff3 Binary files /dev/null and b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/mainwindow.o differ diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.cpp b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.cpp new file mode 100644 index 0000000..fdeed11 --- /dev/null +++ b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.cpp @@ -0,0 +1,89 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'mainwindow.h' +** +** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.0) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "../../functionPointer/mainwindow.h" +#include +#include +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'mainwindow.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 67 +#error "This file was generated using the moc from 5.6.0. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +struct qt_meta_stringdata_MainWindow_t { + QByteArrayData data[1]; + char stringdata0[11]; +}; +#define QT_MOC_LITERAL(idx, ofs, len) \ + Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ + qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \ + - idx * sizeof(QByteArrayData)) \ + ) +static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { + { +QT_MOC_LITERAL(0, 0, 10) // "MainWindow" + + }, + "MainWindow" +}; +#undef QT_MOC_LITERAL + +static const uint qt_meta_data_MainWindow[] = { + + // content: + 7, // revision + 0, // classname + 0, 0, // classinfo + 0, 0, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + 0 // eod +}; + +void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) +{ + Q_UNUSED(_o); + Q_UNUSED(_id); + Q_UNUSED(_c); + Q_UNUSED(_a); +} + +const QMetaObject MainWindow::staticMetaObject = { + { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data, + qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR} +}; + + +const QMetaObject *MainWindow::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; +} + +void *MainWindow::qt_metacast(const char *_clname) +{ + if (!_clname) return Q_NULLPTR; + if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) + return static_cast(const_cast< MainWindow*>(this)); + return QMainWindow::qt_metacast(_clname); +} + +int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QMainWindow::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.o b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.o new file mode 100644 index 0000000..b7f4228 Binary files /dev/null and b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug/moc_mainwindow.o differ diff --git a/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/ui_mainwindow.h b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/ui_mainwindow.h new file mode 100644 index 0000000..f09670a --- /dev/null +++ b/C语言提高/days06/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug/ui_mainwindow.h @@ -0,0 +1,69 @@ +/******************************************************************************** +** Form generated from reading UI file 'mainwindow.ui' +** +** Created by: Qt User Interface Compiler version 5.6.0 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_MAINWINDOW_H +#define UI_MAINWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_MainWindow +{ +public: + QMenuBar *menuBar; + QToolBar *mainToolBar; + QWidget *centralWidget; + QStatusBar *statusBar; + + void setupUi(QMainWindow *MainWindow) + { + if (MainWindow->objectName().isEmpty()) + MainWindow->setObjectName(QStringLiteral("MainWindow")); + MainWindow->resize(400, 300); + menuBar = new QMenuBar(MainWindow); + menuBar->setObjectName(QStringLiteral("menuBar")); + MainWindow->setMenuBar(menuBar); + mainToolBar = new QToolBar(MainWindow); + mainToolBar->setObjectName(QStringLiteral("mainToolBar")); + MainWindow->addToolBar(mainToolBar); + centralWidget = new QWidget(MainWindow); + centralWidget->setObjectName(QStringLiteral("centralWidget")); + MainWindow->setCentralWidget(centralWidget); + statusBar = new QStatusBar(MainWindow); + statusBar->setObjectName(QStringLiteral("statusBar")); + MainWindow->setStatusBar(statusBar); + + retranslateUi(MainWindow); + + QMetaObject::connectSlotsByName(MainWindow); + } // setupUi + + void retranslateUi(QMainWindow *MainWindow) + { + MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0)); + } // retranslateUi + +}; + +namespace Ui { + class MainWindow: public Ui_MainWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_MAINWINDOW_H diff --git a/C语言提高/days06/Code/functionPointer/functionPointer.pro b/C语言提高/days06/Code/functionPointer/functionPointer.pro new file mode 100644 index 0000000..a234e64 --- /dev/null +++ b/C语言提高/days06/Code/functionPointer/functionPointer.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2018-05-13T15:35:59 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = functionPointer +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui diff --git a/C语言提高/days06/Code/functionPointer/functionPointer.pro.user b/C语言提高/days06/Code/functionPointer/functionPointer.pro.user new file mode 100644 index 0000000..3d8376d --- /dev/null +++ b/C语言提高/days06/Code/functionPointer/functionPointer.pro.user @@ -0,0 +1,316 @@ + + + + + + EnvironmentId + {0c64c320-1675-4f2e-bd9b-2833d63962f9} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.6.0 MinGW 32bit + Desktop Qt 5.6.0 MinGW 32bit + qt.56.win32_mingw49_kit + 0 + 0 + 0 + + E:/0504/sendToStudent/Day6_C/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + 构建 + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + 清理 + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + E:/0504/sendToStudent/Day6_C/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + 构建 + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + 清理 + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + E:/0504/sendToStudent/Day6_C/Code/build-functionPointer-Desktop_Qt_5_6_0_MinGW_32bit-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + 构建 + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + 清理 + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + 部署 + + ProjectExplorer.BuildSteps.Deploy + + 1 + 在本地部署 + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + functionPointer + + Qt4ProjectManager.Qt4RunConfiguration:E:/0504/sendToStudent/Day6_C/Code/functionPointer/functionPointer.pro + true + + functionPointer.pro + false + false + + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 18 + + + Version + 18 + + diff --git a/C语言提高/days06/Code/functionPointer/main.cpp b/C语言提高/days06/Code/functionPointer/main.cpp new file mode 100644 index 0000000..68e74d6 --- /dev/null +++ b/C语言提高/days06/Code/functionPointer/main.cpp @@ -0,0 +1,32 @@ +#include "mainwindow.h" +#include +#include + +//返回值 函数名 (参数列表) +void func(int a, char b) +{ + qDebug("hello world"); + +} + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + //func(); + + qDebug("%d",func); + + //4199952 + + int * p = (int*) 4199952; + + //函数指针 去指向 函数的地址 + void (*pFuncPointer)(int , char ) = (void(*)(int,char ))4199952; + + pFuncPointer(1,'a'); + + return a.exec(); +} diff --git a/C语言提高/days06/Code/functionPointer/mainwindow.cpp b/C语言提高/days06/Code/functionPointer/mainwindow.cpp new file mode 100644 index 0000000..12d07c0 --- /dev/null +++ b/C语言提高/days06/Code/functionPointer/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/C语言提高/days06/Code/functionPointer/mainwindow.h b/C语言提高/days06/Code/functionPointer/mainwindow.h new file mode 100644 index 0000000..29bb970 --- /dev/null +++ b/C语言提高/days06/Code/functionPointer/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/C语言提高/days06/Code/functionPointer/mainwindow.ui b/C语言提高/days06/Code/functionPointer/mainwindow.ui new file mode 100644 index 0000000..7de574d --- /dev/null +++ b/C语言提高/days06/Code/functionPointer/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/C语言提高/days06/Doc/Day6笔记.docx b/C语言提高/days06/Doc/Day6笔记.docx new file mode 100644 index 0000000..e88a4c2 Binary files /dev/null and b/C语言提高/days06/Doc/Day6笔记.docx differ diff --git a/C语言提高/days06/Doc/删除链表解析图以及作业布置.png b/C语言提高/days06/Doc/删除链表解析图以及作业布置.png new file mode 100644 index 0000000..91ab067 Binary files /dev/null and b/C语言提高/days06/Doc/删除链表解析图以及作业布置.png differ diff --git a/C语言提高/days06/Doc/链表基本使用解析图.png b/C语言提高/days06/Doc/链表基本使用解析图.png new file mode 100644 index 0000000..5152adb Binary files /dev/null and b/C语言提高/days06/Doc/链表基本使用解析图.png differ diff --git a/C语言提高/days06/Doc/链表的基本概念解析图.png b/C语言提高/days06/Doc/链表的基本概念解析图.png new file mode 100644 index 0000000..b3f9501 Binary files /dev/null and b/C语言提高/days06/Doc/链表的基本概念解析图.png differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.sdf b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.sdf new file mode 100644 index 0000000..70cf6dc Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.sdf differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.sln b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.sln new file mode 100644 index 0000000..53d8b58 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.sln @@ -0,0 +1,64 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "01 回调函数案例-实现对任意数组进行排序", "01 回调函数案例-实现对任意数组进行排序\01 回调函数案例-实现对任意数组进行排序.vcxproj", "{595048EE-F345-4A5E-B875-4C2A12328388}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "02 预处理的指令", "02 预处理的指令\02 预处理的指令.vcxproj", "{98269DCB-4844-4342-810D-33FFC100647E}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "staticlib", "staticlib\staticlib.vcxproj", "{D335A60B-2F1D-4B2B-8ED5-149B49D49145}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "03 静态库测试", "03 静态库测试\03 静态库测试.vcxproj", "{5172743F-0DD4-40B5-8D79-BDEC47C2561B}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mydll", "mydll\mydll.vcxproj", "{5CAB43BD-42B8-4FAE-BE9E-A07949066116}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "04 动态库测试", "04 动态库测试\04 动态库测试.vcxproj", "{C1826955-33CF-4D78-B360-9D5DFBC82FC6}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "05 递归函数", "05 递归函数\05 递归函数.vcxproj", "{4E497EFF-CB30-4892-9316-5BB4E3413AB8}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "06 面向接口编程", "06 面向接口编程\06 面向接口编程.vcxproj", "{182E49ED-F79C-45B9-8EDC-FA6779F8ED20}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {595048EE-F345-4A5E-B875-4C2A12328388}.Debug|Win32.ActiveCfg = Debug|Win32 + {595048EE-F345-4A5E-B875-4C2A12328388}.Debug|Win32.Build.0 = Debug|Win32 + {595048EE-F345-4A5E-B875-4C2A12328388}.Release|Win32.ActiveCfg = Release|Win32 + {595048EE-F345-4A5E-B875-4C2A12328388}.Release|Win32.Build.0 = Release|Win32 + {98269DCB-4844-4342-810D-33FFC100647E}.Debug|Win32.ActiveCfg = Debug|Win32 + {98269DCB-4844-4342-810D-33FFC100647E}.Debug|Win32.Build.0 = Debug|Win32 + {98269DCB-4844-4342-810D-33FFC100647E}.Release|Win32.ActiveCfg = Release|Win32 + {98269DCB-4844-4342-810D-33FFC100647E}.Release|Win32.Build.0 = Release|Win32 + {D335A60B-2F1D-4B2B-8ED5-149B49D49145}.Debug|Win32.ActiveCfg = Debug|Win32 + {D335A60B-2F1D-4B2B-8ED5-149B49D49145}.Debug|Win32.Build.0 = Debug|Win32 + {D335A60B-2F1D-4B2B-8ED5-149B49D49145}.Release|Win32.ActiveCfg = Release|Win32 + {D335A60B-2F1D-4B2B-8ED5-149B49D49145}.Release|Win32.Build.0 = Release|Win32 + {5172743F-0DD4-40B5-8D79-BDEC47C2561B}.Debug|Win32.ActiveCfg = Debug|Win32 + {5172743F-0DD4-40B5-8D79-BDEC47C2561B}.Debug|Win32.Build.0 = Debug|Win32 + {5172743F-0DD4-40B5-8D79-BDEC47C2561B}.Release|Win32.ActiveCfg = Release|Win32 + {5172743F-0DD4-40B5-8D79-BDEC47C2561B}.Release|Win32.Build.0 = Release|Win32 + {5CAB43BD-42B8-4FAE-BE9E-A07949066116}.Debug|Win32.ActiveCfg = Debug|Win32 + {5CAB43BD-42B8-4FAE-BE9E-A07949066116}.Debug|Win32.Build.0 = Debug|Win32 + {5CAB43BD-42B8-4FAE-BE9E-A07949066116}.Release|Win32.ActiveCfg = Release|Win32 + {5CAB43BD-42B8-4FAE-BE9E-A07949066116}.Release|Win32.Build.0 = Release|Win32 + {C1826955-33CF-4D78-B360-9D5DFBC82FC6}.Debug|Win32.ActiveCfg = Debug|Win32 + {C1826955-33CF-4D78-B360-9D5DFBC82FC6}.Debug|Win32.Build.0 = Debug|Win32 + {C1826955-33CF-4D78-B360-9D5DFBC82FC6}.Release|Win32.ActiveCfg = Release|Win32 + {C1826955-33CF-4D78-B360-9D5DFBC82FC6}.Release|Win32.Build.0 = Release|Win32 + {4E497EFF-CB30-4892-9316-5BB4E3413AB8}.Debug|Win32.ActiveCfg = Debug|Win32 + {4E497EFF-CB30-4892-9316-5BB4E3413AB8}.Debug|Win32.Build.0 = Debug|Win32 + {4E497EFF-CB30-4892-9316-5BB4E3413AB8}.Release|Win32.ActiveCfg = Release|Win32 + {4E497EFF-CB30-4892-9316-5BB4E3413AB8}.Release|Win32.Build.0 = Release|Win32 + {182E49ED-F79C-45B9-8EDC-FA6779F8ED20}.Debug|Win32.ActiveCfg = Debug|Win32 + {182E49ED-F79C-45B9-8EDC-FA6779F8ED20}.Debug|Win32.Build.0 = Debug|Win32 + {182E49ED-F79C-45B9-8EDC-FA6779F8ED20}.Release|Win32.ActiveCfg = Release|Win32 + {182E49ED-F79C-45B9-8EDC-FA6779F8ED20}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.v12.suo b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.v12.suo new file mode 100644 index 0000000..0de2402 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.v12.suo differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.c new file mode 100644 index 0000000..800a37a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.c @@ -0,0 +1,133 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +void selectSort(void * arr, int eleSize, int len , int(*myCompare)( void * ,void * ) ) +{ + char * temp = malloc(eleSize); + + for (int i = 0; i < len;i++) + { + int minOrMax = i; //Сֵ ֵ± + + for (int j = i + 1; j < len; j++) + { + + //j±ݵַ + char * pJ = (char *)arr + j * eleSize; + char * pMinOrMax = (char *)arr + minOrMax * eleSize; + + /* + //С + if (*num1 < *num2) + { + return 1; + } + return 0; + */ + + if (myCompare (pJ,pMinOrMax)) + { + + minOrMax = j; // ʵСֵ ֵ± + } + + //if (arr[j] < arr[minOrMax]) + + } + + if ( i != minOrMax) + { + // + char * pI = (char *)arr + i*eleSize; + char * pMinOrMax = (char *)arr + minOrMax * eleSize; + + memcpy(temp, pI, eleSize); + memcpy(pI, pMinOrMax, eleSize); + memcpy(pMinOrMax, temp, eleSize); + } + } + + if (temp != NULL) + { + free(temp); + temp = NULL; + } + + +} + + +int myCompareInt(void * data1, void * data2) +{ + int * num1 = data1; + int * num2 = data2; + + //if (*num1 < *num2) + //{ + // return 1; + //} + //return 0; + + + return *num1 < *num2; + +} + +void test01() +{ + int arr[] = { 10, 40, 30, 20, 50 }; + int len = sizeof(arr) / sizeof(int); + selectSort(arr, sizeof(int), len, myCompareInt); + + for (int i = 0; i < len;i++) + { + printf("%d\n", arr[i]); + } +} + +struct Person +{ + char name[64]; + int age; +}; + +int myComparePerson(void * data1, void * data2) +{ + struct Person * p1 = data1; + struct Person * p2 = data2; + // дӴС + return p1->age > p2->age; +} + +void test02() +{ + struct Person pArray[] = + { + { "aaa", 10 }, + { "bbb", 60 }, + { "ccc", 20 }, + { "ddd", 40 }, + { "eee", 30 }, + }; + int len = sizeof(pArray) / sizeof(struct Person); + + //ʵִӴС + selectSort(pArray, sizeof(struct Person), len, myComparePerson); + + for (int i = 0; i < len;i++) + { + printf("%s , 䣺 %d\n", pArray[i].name, pArray[i].age); + } + +} + + +int main(){ + //test01(); + test02(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.vcxproj new file mode 100644 index 0000000..2d34f29 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {595048EE-F345-4A5E-B875-4C2A12328388} + Win32Proj + My01回调函数案例实现对任意数组进行排序 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.vcxproj.filters new file mode 100644 index 0000000..3022e05 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/01 回调函数案例-实现对任意数组进行排序.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/01 回调函数案例-实现对任意数组进行排序.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/01 回调函数案例-实现对任意数组进行排序.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/CL.read.1.tlog new file mode 100644 index 0000000..f3b2143 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/CL.write.1.tlog new file mode 100644 index 0000000..e838266 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/cl.command.1.tlog new file mode 100644 index 0000000..6d4e564 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.command.1.tlog new file mode 100644 index 0000000..ec91db6 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.read.1.tlog new file mode 100644 index 0000000..a757f7f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.write.1.tlog new file mode 100644 index 0000000..1c2042f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案.595048EE.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.log new file mode 100644 index 0000000..256b88f --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.log @@ -0,0 +1,2 @@ + 01 回调函数案例-实现对任意数组进行排序.c + 01 回调函数案例-实现对任意数组进行排序.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\01 回调函数案例-实现对任意数组进行排序.exe diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.obj new file mode 100644 index 0000000..9e78ce4 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/vc120.idb new file mode 100644 index 0000000..28445be Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/vc120.pdb new file mode 100644 index 0000000..0fb6225 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/01 回调函数案例-实现对任意数组进行排序/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.c new file mode 100644 index 0000000..dcca33c --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.c @@ -0,0 +1,73 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//1 ͷļ #include "" Զͷļ <> ϵͳͷļ + + +//2 궨 +// undef жغ +// 궨ij û͵ +void test01() +{ +#define MAX 1024 +//#undef MAX +} + +//3 + + +//#define DEBUG + +#ifdef DEBUG // DEBUG汾 +void func() +{ + printf("debug汾\n"); +} +#else + + #if 0 //Զ + + void func() + { + printf("release1汾\n"); + } + #else + void func() + { + printf("release2汾\n"); + } + #endif + +#endif + + +//4 +void doWork( char * p) +{ + if (p == NULL) + { + printf(" ļ : %s %d ˣ\n", __FILE__, __LINE__); + printf("ڣ%s\n", __DATE__); + printf("ʱ䣺%s\n", __TIME__); + return; + } + +} +void test02() +{ + doWork(NULL); +} + +int main(){ + + //printf("MAX = %d\n", MAX); + + //func(); + + test02(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.vcxproj new file mode 100644 index 0000000..4006b4f --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {98269DCB-4844-4342-810D-33FFC100647E} + Win32Proj + My02预处理的指令 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.vcxproj.filters new file mode 100644 index 0000000..65cd4e1 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/02 预处理的指令.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.log new file mode 100644 index 0000000..14dec14 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.log @@ -0,0 +1,2 @@ + 02 预处理的指令.c + 02 预处理的指令.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\02 预处理的指令.exe diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.obj new file mode 100644 index 0000000..2d3d65c Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/02 预处理的指令.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/02 预处理的指令.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/02 预处理的指令.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/CL.read.1.tlog new file mode 100644 index 0000000..c2bf980 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/CL.write.1.tlog new file mode 100644 index 0000000..25fa0d0 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/cl.command.1.tlog new file mode 100644 index 0000000..df6c462 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.command.1.tlog new file mode 100644 index 0000000..6d4884a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.read.1.tlog new file mode 100644 index 0000000..0ff6263 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.write.1.tlog new file mode 100644 index 0000000..ca7bb0a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/02 预处理的指令.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/vc120.idb new file mode 100644 index 0000000..dc27e58 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/vc120.pdb new file mode 100644 index 0000000..2d5c6aa Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/02 预处理的指令/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.c new file mode 100644 index 0000000..589447c --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.c @@ -0,0 +1,16 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include "mylib.h" + +int main(){ + + int ret = myAdd(10, 20); + + printf("%d\n", ret); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.vcxproj new file mode 100644 index 0000000..1300f86 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.vcxproj @@ -0,0 +1,92 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {5172743F-0DD4-40B5-8D79-BDEC47C2561B} + Win32Proj + My03静态库测试 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.vcxproj.filters new file mode 100644 index 0000000..be643c3 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/03 静态库测试.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + + + 头文件 + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.Build.CppClean.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.Build.CppClean.log new file mode 100644 index 0000000..1aa07d5 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.Build.CppClean.log @@ -0,0 +1,12 @@ +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\vc120.pdb +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\vc120.idb +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.obj +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\debug\03 静态库测试.ilk +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\debug\03 静态库测试.exe +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\debug\03 静态库测试.pdb +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.tlog\link.command.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.tlog\link.read.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\03 静态库测试\debug\03 静态库测试.tlog\link.write.1.tlog diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.log new file mode 100644 index 0000000..5df68d4 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.log @@ -0,0 +1,2 @@ + 03 静态库测试.c + 03 静态库测试.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\03 静态库测试.exe diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.obj new file mode 100644 index 0000000..10f7545 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/03 静态库测试.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/03 静态库测试.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/03 静态库测试.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/CL.read.1.tlog new file mode 100644 index 0000000..767ec66 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/CL.write.1.tlog new file mode 100644 index 0000000..b72b524 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/cl.command.1.tlog new file mode 100644 index 0000000..ee35b2b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.command.1.tlog new file mode 100644 index 0000000..7efaf4d Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.read.1.tlog new file mode 100644 index 0000000..18c4951 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.write.1.tlog new file mode 100644 index 0000000..942d91b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/03 静态库测试.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/vc120.idb new file mode 100644 index 0000000..dc81c12 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/vc120.pdb new file mode 100644 index 0000000..1f0b9ca Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/mylib.h b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/mylib.h new file mode 100644 index 0000000..a70e38b --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/mylib.h @@ -0,0 +1,5 @@ +#include + +//ӷ ʵ +int myAdd(int a, int b); + diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/staticlib.lib b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/staticlib.lib new file mode 100644 index 0000000..394c7c2 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/03 静态库测试/staticlib.lib differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.c new file mode 100644 index 0000000..4d956aa --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.c @@ -0,0 +1,16 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +#pragma comment(lib,"./mydll.lib") + +int main(){ + + int ret = mySub(10, 10); + printf("%d\n", ret); + + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.vcxproj new file mode 100644 index 0000000..92434a4 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {C1826955-33CF-4D78-B360-9D5DFBC82FC6} + Win32Proj + My04动态库测试 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.vcxproj.filters new file mode 100644 index 0000000..b94abc0 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/04 动态库测试.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.log new file mode 100644 index 0000000..cfca6e1 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.log @@ -0,0 +1,3 @@ + 04 动态库测试.c +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\04 动态库测试\04 动态库测试.c(10): warning C4013: “mySub”未定义;假设外部返回 int + 04 动态库测试.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\04 动态库测试.exe diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.obj new file mode 100644 index 0000000..150371f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/04 动态库测试.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/04 动态库测试.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/04 动态库测试.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/CL.read.1.tlog new file mode 100644 index 0000000..8c36230 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/CL.write.1.tlog new file mode 100644 index 0000000..23bc94c Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/cl.command.1.tlog new file mode 100644 index 0000000..f99777b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.command.1.tlog new file mode 100644 index 0000000..9438a9f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.read.1.tlog new file mode 100644 index 0000000..97641cb Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.write.1.tlog new file mode 100644 index 0000000..6027bc8 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/04 动态库测试.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/vc120.idb new file mode 100644 index 0000000..1658e58 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/vc120.pdb new file mode 100644 index 0000000..3e56adf Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.dll b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.dll new file mode 100644 index 0000000..3e7cd6b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.dll differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.h b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.h new file mode 100644 index 0000000..f36ec29 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.h @@ -0,0 +1,11 @@ +#include + +// 뺯 ֻڵǰĿʹ +//int mySub(int a, int b); + + +// Ŀⲿʹ __declspec +__declspec (dllexport) int mySub(int a, int b); + +// ̬ɵ.libļ ̬ɵ.libļͬ +// ̬е.lib ֻ һЩ һЩʵ֣.dllļ \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.lib b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.lib new file mode 100644 index 0000000..8a2c421 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/04 动态库测试/mydll.lib differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.c new file mode 100644 index 0000000..a308dc7 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.c @@ -0,0 +1,57 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +//ݹ麯 н ѭ +//1ʵַ +void reversePrint(char * p) +{ + if ( *p == '\0') + { + return; //˳ + } + reversePrint(p + 1); + + printf("%c ", *p); +} + +void test01() +{ + char * str = "abcdef"; + + reversePrint(str); + +} + + + +//2쳲 1 1 2 3 5 8 13 21 34 55 + +int fibonacci(int pos) +{ + if ( pos == 1 || pos == 2) + { + return 1; + } + + return fibonacci(pos - 1) + fibonacci(pos - 2); +} + +void test02() +{ + int ret = fibonacci(10); + printf("%d\n", ret); + +} + + + + +int main(){ + //test01(); + test02(); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.vcxproj new file mode 100644 index 0000000..b7409c0 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.vcxproj @@ -0,0 +1,86 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {4E497EFF-CB30-4892-9316-5BB4E3413AB8} + Win32Proj + My05递归函数 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.vcxproj.filters new file mode 100644 index 0000000..ef40b52 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/05 递归函数.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.log new file mode 100644 index 0000000..3f079dd --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.log @@ -0,0 +1,2 @@ + 05 递归函数.c + 05 递归函数.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\05 递归函数.exe diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.obj new file mode 100644 index 0000000..d8b42aa Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/05 递归函数.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/05 递归函数.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/05 递归函数.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/CL.read.1.tlog new file mode 100644 index 0000000..980b543 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/CL.write.1.tlog new file mode 100644 index 0000000..d2b9429 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/cl.command.1.tlog new file mode 100644 index 0000000..410fee8 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.command.1.tlog new file mode 100644 index 0000000..f5fe7c2 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.read.1.tlog new file mode 100644 index 0000000..4b99350 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.write.1.tlog new file mode 100644 index 0000000..85faa89 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/05 递归函数.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/vc120.idb new file mode 100644 index 0000000..e9bcf2a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/vc120.pdb new file mode 100644 index 0000000..9ca8d1f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/05 递归函数/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.c new file mode 100644 index 0000000..f009fc7 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.c @@ -0,0 +1,78 @@ +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include +#include "GameCompany.h" +#include + +//ʼϷ +typedef void(*INIT_GAME)(void ** gameHandle, char * name); + +//Ϸս Ϸս 1 Ϸʤ 0սʧ +typedef int(*FIGHT_GAME)(void * gameHandle, int gameLevel); + +//鿴Ϣ +typedef void(*PRINT_GAME)(void * gameHandle); + +//뿪Ϸ +typedef void(*CLOSE_GAME)(void * gameHandle); + + +void playGame(INIT_GAME init, FIGHT_GAME fight, PRINT_GAME printGame, CLOSE_GAME closeGame) +{ + //ʼϷ + + void * gameHandel = NULL; + printf("ҵ\n"); + char name[64]; + scanf("%s", name); + + init(&gameHandel, name); + + //Ϸս + + int level = -1; + + while (1) + { + getchar(); + system("cls"); // + + printf("ѡϷѶȣ\n"); + printf("1ͨ\n"); + printf("2е\n"); + printf("3\n"); + + scanf("%d", &level); + getchar(); + + int ret = fight(gameHandel, level); + + if (ret == 0) + { + printf("սʧ\n"); + break; + } + else + { + printf("սɹ\n"); + printGame(gameHandel); + } + + } + + + //뿪Ϸ + closeGame(gameHandel); +} + + +int main(){ + + srand((unsigned int)time(NULL)); + + playGame(INIT_GAME_COMPANY, FIGHT_GAME_COMPANY, PRINT_GAME_COMPANY, CLOSE_GAME_COMPANY); + + system("pause"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.vcxproj new file mode 100644 index 0000000..e98aa9b --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.vcxproj @@ -0,0 +1,90 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {182E49ED-F79C-45B9-8EDC-FA6779F8ED20} + Win32Proj + My06面向接口编程 + + + + Application + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.vcxproj.filters new file mode 100644 index 0000000..d97fc69 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/06 面向接口编程.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + 源文件 + + + + + 头文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.Build.CppClean.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.Build.CppClean.log new file mode 100644 index 0000000..05ab49c --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.Build.CppClean.log @@ -0,0 +1,13 @@ +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\vc120.pdb +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\vc120.idb +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.obj +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\gamecompany.obj +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\debug\06 面向接口编程.ilk +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\debug\06 面向接口编程.exe +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\debug\06 面向接口编程.pdb +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.tlog\cl.command.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.tlog\cl.read.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.tlog\cl.write.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.tlog\link.command.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.tlog\link.read.1.tlog +e:\0504\sendtostudent\day7_c\code\01 回调函数案例-实现对任意数组进行排序\06 面向接口编程\debug\06 面向接口编程.tlog\link.write.1.tlog diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.log new file mode 100644 index 0000000..aeb8900 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.log @@ -0,0 +1,4 @@ + GameCompany.c + 06 面向接口编程.c + 正在生成代码... + 06 面向接口编程.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\06 面向接口编程.exe diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.obj new file mode 100644 index 0000000..29c406d Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/06 面向接口编程.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/06 面向接口编程.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/06 面向接口编程.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/CL.read.1.tlog new file mode 100644 index 0000000..045c303 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/CL.write.1.tlog new file mode 100644 index 0000000..d42420a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/cl.command.1.tlog new file mode 100644 index 0000000..0882c5f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.command.1.tlog new file mode 100644 index 0000000..7d2a90c Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.read.1.tlog new file mode 100644 index 0000000..aaa3ef0 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.write.1.tlog new file mode 100644 index 0000000..d4c6fe6 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/06 面向接口编程.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/GameCompany.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/GameCompany.obj new file mode 100644 index 0000000..624b231 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/GameCompany.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/vc120.idb new file mode 100644 index 0000000..bda2f73 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/vc120.pdb new file mode 100644 index 0000000..4fca76a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/GameCompany.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/GameCompany.c new file mode 100644 index 0000000..728a2a9 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/GameCompany.c @@ -0,0 +1,95 @@ +#include "GameCompany.h" + + +//ʼϷ +void INIT_GAME_COMPANY(void ** gameHandle, char * name) +{ + struct Player * player = malloc(sizeof(struct Player)); + + if (player == NULL) + { + return; + } + + //ҽгʼ + strcpy(player->name, name); + player->level = 0; + player->exp = 0; + + *gameHandle = player; +} + +//Ϸս Ϸս 1 Ϸʤ 0սʧ +int FIGHT_GAME_COMPANY(void * gameHandle, int gameLevel) +{ + struct Player * player = gameHandle; + + int addExp = 0; //ۻľֵ + switch (gameLevel) + { + case 1: + //ڲṩһ жϷǷʤ + addExp = isWin(90, 1); + + break; + case 2: + addExp = isWin(50, 2); + + break; + case 3: + addExp = isWin(30, 3); + break; + default: + break; + } + + //ȡľ + player->exp += addExp; + + player->level = player->exp / 10; + + if (addExp == 0) + { + return 0; //սʧ + } + else + { + return 1; //սʤ + } + +} + +//鿴Ϣ +void PRINT_GAME_COMPANY(void * gameHandle) +{ + struct Player * player = gameHandle; + printf(" <%s> --------- ǰȼ <%d> ------ ǰ ------ <%d>\n", player->name, player->level, player->exp); +} + +//뿪Ϸ +void CLOSE_GAME_COMPANY(void * gameHandle) +{ + if (gameHandle == NULL) + { + return; + } + free(gameHandle); + gameHandle = NULL; +} + +//жϷǷʤ 1 ʤ 2 Ѷ ֵ ʤľ飬ص0 սʧ +int isWin(int winRate, int diff) +{ + int random = rand() % 100 + 1; // 1 ~ 100 + if (random <= winRate) + { + //ʤ + return 10 * diff; + } + else + { + //սʧ 0 + return 0; + } + +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/GameCompany.h b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/GameCompany.h new file mode 100644 index 0000000..19462b7 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/06 面向接口编程/GameCompany.h @@ -0,0 +1,29 @@ +#pragma once +#define _CRT_SECURE_NO_WARNINGS +#include +#include +#include + +struct Player +{ + char name[64]; // + int level; //ҵȼ + int exp; //Ҿ +}; + +//ʼϷ +void INIT_GAME_COMPANY(void ** gameHandle, char * name); + +//Ϸս Ϸս 1 Ϸʤ 0սʧ +int FIGHT_GAME_COMPANY(void * gameHandle, int gameLevel); + +//鿴Ϣ +void PRINT_GAME_COMPANY(void * gameHandle); + +//뿪Ϸ +void CLOSE_GAME_COMPANY(void * gameHandle); + + +//жϷǷʤ 1 ʤ 2 Ѷ ֵ ʤľ飬ص0 սʧ +int isWin(int winRate, int diff); + diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.exe b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.exe new file mode 100644 index 0000000..7c9a84b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.exe differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.ilk new file mode 100644 index 0000000..9b7ccb8 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.pdb new file mode 100644 index 0000000..3b15f73 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/01 回调函数案例-实现对任意数组进行排序.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.exe b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.exe new file mode 100644 index 0000000..194aeaf Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.exe differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.ilk new file mode 100644 index 0000000..5e29c65 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.pdb new file mode 100644 index 0000000..3cb893c Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/02 预处理的指令.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.exe b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.exe new file mode 100644 index 0000000..fa4052a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.exe differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.ilk new file mode 100644 index 0000000..43f14d0 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.pdb new file mode 100644 index 0000000..e45e1dd Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/03 静态库测试.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.exe b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.exe new file mode 100644 index 0000000..ba2a3a1 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.exe differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.ilk new file mode 100644 index 0000000..a64665b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.pdb new file mode 100644 index 0000000..950bde9 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/04 动态库测试.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.exe b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.exe new file mode 100644 index 0000000..598c645 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.exe differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.ilk new file mode 100644 index 0000000..a91000f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.pdb new file mode 100644 index 0000000..169d220 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/05 递归函数.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.exe b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.exe new file mode 100644 index 0000000..0d6a34e Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.exe differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.ilk new file mode 100644 index 0000000..c259bd0 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.pdb new file mode 100644 index 0000000..782104b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/06 面向接口编程.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.dll b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.dll new file mode 100644 index 0000000..3e7cd6b Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.dll differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.exp b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.exp new file mode 100644 index 0000000..bd961f4 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.exp differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.ilk b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.ilk new file mode 100644 index 0000000..e9296cb Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.ilk differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.lib b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.lib new file mode 100644 index 0000000..8a2c421 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.lib differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.pdb new file mode 100644 index 0000000..894d76a Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/Debug/mydll.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.log new file mode 100644 index 0000000..5632594 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.log @@ -0,0 +1,3 @@ + mydll.c + 正在创建库 E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\mydll.lib 和对象 E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\mydll.exp + mydll.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\mydll.dll diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.obj new file mode 100644 index 0000000..2fe369e Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/CL.read.1.tlog new file mode 100644 index 0000000..6e04be6 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/CL.write.1.tlog new file mode 100644 index 0000000..c15af6e Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/cl.command.1.tlog new file mode 100644 index 0000000..10bdf04 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.command.1.tlog new file mode 100644 index 0000000..2312f06 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.read.1.tlog new file mode 100644 index 0000000..5cccea5 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.write.1.tlog new file mode 100644 index 0000000..9b2fbde Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/mydll.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/mydll.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/mydll.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/mydll.write.1u.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/mydll.write.1u.tlog new file mode 100644 index 0000000..990b5e7 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/mydll.tlog/mydll.write.1u.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/vc120.idb new file mode 100644 index 0000000..8dab89f Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/vc120.pdb new file mode 100644 index 0000000..c8e1b5e Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.c new file mode 100644 index 0000000..06cf85f --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.c @@ -0,0 +1,6 @@ +#include "mydll.h" + +int mySub(int a, int b) +{ + return a - b; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.h b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.h new file mode 100644 index 0000000..f36ec29 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.h @@ -0,0 +1,11 @@ +#include + +// 뺯 ֻڵǰĿʹ +//int mySub(int a, int b); + + +// Ŀⲿʹ __declspec +__declspec (dllexport) int mySub(int a, int b); + +// ̬ɵ.libļ ̬ɵ.libļͬ +// ̬е.lib ֻ һЩ һЩʵ֣.dllļ \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.vcxproj new file mode 100644 index 0000000..793f20e --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.vcxproj @@ -0,0 +1,89 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {5CAB43BD-42B8-4FAE-BE9E-A07949066116} + Win32Proj + mydll + + + + DynamicLibrary + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.vcxproj.filters new file mode 100644 index 0000000..e85f9de --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/mydll/mydll.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 头文件 + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/mylib.obj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/mylib.obj new file mode 100644 index 0000000..da32b71 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/mylib.obj differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.log b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.log new file mode 100644 index 0000000..f9b2b48 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.log @@ -0,0 +1,2 @@ + mylib.c + staticlib.vcxproj -> E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\Debug\staticlib.lib diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/CL.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/CL.read.1.tlog new file mode 100644 index 0000000..66b507d Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/CL.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/CL.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/CL.write.1.tlog new file mode 100644 index 0000000..5f62e10 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/CL.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/Lib-link.read.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/Lib-link.read.1.tlog new file mode 100644 index 0000000..fc42d70 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/Lib-link.read.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/Lib-link.write.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/Lib-link.write.1.tlog new file mode 100644 index 0000000..f871393 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/Lib-link.write.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/cl.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/cl.command.1.tlog new file mode 100644 index 0000000..06c72f5 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/cl.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/lib.command.1.tlog b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/lib.command.1.tlog new file mode 100644 index 0000000..69b2ad1 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/lib.command.1.tlog differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/staticlib.lastbuildstate b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/staticlib.lastbuildstate new file mode 100644 index 0000000..6b56b3a --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/staticlib.tlog/staticlib.lastbuildstate @@ -0,0 +1,2 @@ +#TargetFrameworkVersion=v4.0:PlatformToolSet=v120:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit +Debug|Win32|E:\0504\sendToStudent\Day7_C\Code\01 回调函数案例-实现对任意数组进行排序\| diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/vc120.idb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/vc120.idb new file mode 100644 index 0000000..02ec3b1 Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/vc120.idb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/vc120.pdb b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/vc120.pdb new file mode 100644 index 0000000..333ffbe Binary files /dev/null and b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/Debug/vc120.pdb differ diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/mylib.c b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/mylib.c new file mode 100644 index 0000000..db19025 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/mylib.c @@ -0,0 +1,7 @@ +#include "mylib.h" + + +int myAdd(int a, int b) +{ + return a + b; +} \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/mylib.h b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/mylib.h new file mode 100644 index 0000000..a70e38b --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/mylib.h @@ -0,0 +1,5 @@ +#include + +//ӷ ʵ +int myAdd(int a, int b); + diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/staticlib.vcxproj b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/staticlib.vcxproj new file mode 100644 index 0000000..72257e4 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/staticlib.vcxproj @@ -0,0 +1,89 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {D335A60B-2F1D-4B2B-8ED5-149B49D49145} + Win32Proj + staticlib + + + + StaticLibrary + true + v120 + Unicode + + + Application + false + v120 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + \ No newline at end of file diff --git a/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/staticlib.vcxproj.filters b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/staticlib.vcxproj.filters new file mode 100644 index 0000000..0f524e7 --- /dev/null +++ b/C语言提高/days07/Code/01 回调函数案例-实现对任意数组进行排序/staticlib/staticlib.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 头文件 + + + + + 源文件 + + + \ No newline at end of file diff --git a/C语言提高/days07/Doc/Day7笔记.docx b/C语言提高/days07/Doc/Day7笔记.docx new file mode 100644 index 0000000..06a1a54 Binary files /dev/null and b/C语言提高/days07/Doc/Day7笔记.docx differ diff --git a/C语言提高/days07/Doc/回调函数案例-对任意类型数组进行排序解析图.png b/C语言提高/days07/Doc/回调函数案例-对任意类型数组进行排序解析图.png new file mode 100644 index 0000000..01ff620 Binary files /dev/null and b/C语言提高/days07/Doc/回调函数案例-对任意类型数组进行排序解析图.png differ diff --git a/C语言提高/days07/Doc/数据结构教程.doc b/C语言提高/days07/Doc/数据结构教程.doc new file mode 100644 index 0000000..fd45288 Binary files /dev/null and b/C语言提高/days07/Doc/数据结构教程.doc differ diff --git a/C语言提高/days07/Doc/递归函数解析图.png b/C语言提高/days07/Doc/递归函数解析图.png new file mode 100644 index 0000000..1cb190b Binary files /dev/null and b/C语言提高/days07/Doc/递归函数解析图.png differ diff --git a/C语言提高/days07/Doc/链表反转解析图.png b/C语言提高/days07/Doc/链表反转解析图.png new file mode 100644 index 0000000..df07520 Binary files /dev/null and b/C语言提高/days07/Doc/链表反转解析图.png differ