commit 89bce3392a0cf0ac9bd483558c2303148b2a9d7d Author: 榛勯粍鑲茬殦 <1259500348@qq.com> Date: Fri Jan 11 21:04:25 2019 +0800 first commit diff --git a/Cpp2.cpp b/Cpp2.cpp new file mode 100644 index 0000000..5de6a8d --- /dev/null +++ b/Cpp2.cpp @@ -0,0 +1,148 @@ +#include +#include +#include +#include +#define M 10 //宏定义评委人数 +struct player //结构体定义选手 +{ +int num; + char name[8]; + int score[M]; +}; +void Intplayer(struct player a[],int n) //输入选手数据函数 +{ +int i; + printf("请输入参赛歌手的人数:"); + scanf("%d",&n); + printf("请输入歌手的学号和姓名:\n"); + for(i=0;ib[j]) +k=j; +if(k!=i) +{ +temp=b[i]; +b[i]=b[k]; +b[k]=temp; +strcpy(str,a[i].name); +strcpy(a[i].name,a[k].name); +strcpy(a[k].name,str); +t=a[i].num; +a[i].num=a[k].num; +a[k].num=t; +} +} +} +void main() +{ +system("color F4"); //白底红字 +int flag=1,n,i,m,j,r; + FILE *fp; + fp = fopen("data.txt","w+"); //文件写入位置 + struct player a[20]; +float aver[99]={0}; +int sum[99]={0}; +int Max[99]; +int Min[99]; +int add=2; + + + + printf(" 歌手比赛系统主菜单\n"); + printf("************************************************************\n"); + printf(" **********1.输入选手数据***********\n"); + printf(" **********2.评委打分***************\n"); + printf(" **********3.成绩排序***************\n"); + printf(" **********4.数据查询***************\n"); +printf(" **********5.追加学生数据***********\n"); +printf(" **********6.写入数据文件***********\n"); +printf(" **********7.退出系统***************\n"); +printf("*************************************************************\n\n\n\n"); +while(flag) +{ +printf("请输入你想进行的操作:"); +scanf("%d",&r); +switch(r) +{ +case 1: +Intplayer(a,n); //调用输入数据函数 +break; +case 2: +printf("请输入1中人数:"); +scanf("%d",&n); + for(i=0;ia[i].score[j]) +Min[i]=a[i].score[j]; +} + aver[i]=(float)(sum[i]-Max[i]-Min[i])/(M-2); +} +sort(a,aver,n); //调用排序函数 +for(i=0;i +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=Cpp2 - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "Cpp2.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "Cpp2.mak" CFG="Cpp2 - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "Cpp2 - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "Cpp2 - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "Cpp2 - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x804 /d "NDEBUG" +# ADD RSC /l 0x804 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 + +!ELSEIF "$(CFG)" == "Cpp2 - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD BASE RSC /l 0x804 /d "_DEBUG" +# ADD RSC /l 0x804 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "Cpp2 - Win32 Release" +# Name "Cpp2 - Win32 Debug" +# Begin Source File + +SOURCE=.\Cpp2.cpp +# End Source File +# End Target +# End Project diff --git a/Cpp2.ncb b/Cpp2.ncb new file mode 100644 index 0000000..833472d Binary files /dev/null and b/Cpp2.ncb differ diff --git a/Cpp2.opt b/Cpp2.opt new file mode 100644 index 0000000..ca10ab9 Binary files /dev/null and b/Cpp2.opt differ diff --git a/Cpp2.plg b/Cpp2.plg new file mode 100644 index 0000000..172988c --- /dev/null +++ b/Cpp2.plg @@ -0,0 +1,32 @@ + + +
+

Build Log

+

+--------------------Configuration: Cpp2 - Win32 Debug-------------------- +

+

Command Lines

+Creating temporary file "C:\Users\Uncle\AppData\Local\Temp\RSP9939.tmp" with contents +[ +/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/Cpp2.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c +"D:\2345Downloads\Cpp2.cpp" +] +Creating command line "cl.exe @C:\Users\Uncle\AppData\Local\Temp\RSP9939.tmp" +Creating temporary file "C:\Users\Uncle\AppData\Local\Temp\RSP9949.tmp" with contents +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/Cpp2.pdb" /debug /machine:I386 /out:"Debug/Cpp2.exe" /pdbtype:sept +.\Debug\Cpp2.obj +] +Creating command line "link.exe @C:\Users\Uncle\AppData\Local\Temp\RSP9949.tmp" +

Output Window

+Compiling... +Cpp2.cpp +Linking... + + + +

Results

+Cpp2.exe - 0 error(s), 0 warning(s) +
+ + diff --git a/Debug/Cpp2.exe b/Debug/Cpp2.exe new file mode 100644 index 0000000..a8d076c Binary files /dev/null and b/Debug/Cpp2.exe differ diff --git a/Debug/Cpp2.ilk b/Debug/Cpp2.ilk new file mode 100644 index 0000000..ae0deaf Binary files /dev/null and b/Debug/Cpp2.ilk differ diff --git a/Debug/Cpp2.obj b/Debug/Cpp2.obj new file mode 100644 index 0000000..be1c564 Binary files /dev/null and b/Debug/Cpp2.obj differ diff --git a/Debug/Cpp2.pch b/Debug/Cpp2.pch new file mode 100644 index 0000000..8b97256 Binary files /dev/null and b/Debug/Cpp2.pch differ diff --git a/Debug/Cpp2.pdb b/Debug/Cpp2.pdb new file mode 100644 index 0000000..7871591 Binary files /dev/null and b/Debug/Cpp2.pdb differ diff --git a/Debug/vc60.idb b/Debug/vc60.idb new file mode 100644 index 0000000..12ce5e0 Binary files /dev/null and b/Debug/vc60.idb differ diff --git a/Debug/vc60.pdb b/Debug/vc60.pdb new file mode 100644 index 0000000..455a2ad Binary files /dev/null and b/Debug/vc60.pdb differ diff --git a/QQPCMgr/Plugins/PluginsSetupBak/AppSetupInfo b/QQPCMgr/Plugins/PluginsSetupBak/AppSetupInfo new file mode 100644 index 0000000..d5c20a5 Binary files /dev/null and b/QQPCMgr/Plugins/PluginsSetupBak/AppSetupInfo differ diff --git a/data.txt b/data.txt new file mode 100644 index 0000000..e69de29