...不知道说什么

2022.03.31
main
lensfrex 3 years ago
parent 73498b9b57
commit 0f10a88a6b
Signed by: lensfrex
GPG Key ID: 0F69A0A2FBEE98A0
  1. 25
      pure-c-test/20220331/test2-4.c
  2. 23
      pure-c-test/20220331/text2-2.c
  3. 0
      work20220330/t3/.idea/.gitignore
  4. 0
      work20220330/t3/.idea/deployment.xml
  5. 0
      work20220330/t3/.idea/misc.xml
  6. 8
      work20220330/t3/.idea/modules.xml
  7. 0
      work20220330/t3/.idea/t3.iml
  8. 6
      work20220330/t3/.idea/vcs.xml
  9. 6
      work20220330/t3/CMakeLists.txt
  10. 6
      work20220330/t3/main.cpp
  11. 8
      work20220330/t4/.idea/.gitignore
  12. 1
      work20220330/t4/.idea/.name
  13. 14
      work20220330/t4/.idea/deployment.xml
  14. 0
      work20220330/t4/.idea/encodings.xml
  15. 4
      work20220330/t4/.idea/misc.xml
  16. 0
      work20220330/t4/.idea/modules.xml
  17. 1
      work20220330/t4/.idea/vcs.xml
  18. 2
      work20220330/t4/.idea/work20220330.iml
  19. 0
      work20220330/t4/CMakeLists.txt
  20. 0
      work20220330/t4/DbTeacher.cpp
  21. 0
      work20220330/t4/DbTeacher.h
  22. 0
      work20220330/t4/Leader.cpp
  23. 0
      work20220330/t4/Leader.h
  24. 0
      work20220330/t4/Staff.cpp
  25. 0
      work20220330/t4/Staff.h
  26. 0
      work20220330/t4/Teacher.cpp
  27. 0
      work20220330/t4/Teacher.h
  28. 0
      work20220330/t4/date/Date.cpp
  29. 0
      work20220330/t4/date/Date.h
  30. 0
      work20220330/t4/main.cpp

@ -0,0 +1,25 @@
#include <stdio.h>
int main() {
int score = 0;
scanf("%d", &score);
int level = score / 10;
switch (level) {
case 10:
case 9:
printf("甲等");
break;
case 8:
printf("乙等");
break;
case 7:
printf("丙等");
break;
default:
printf("没有奖金~");
break;
}
}

@ -0,0 +1,23 @@
#include <stdio.h>
#define PI 3.1415926
int main() {
double x = 0.0, y = 0.0, z = 0.0;
scanf("%lf", &x);
if (x <= 2.5) {
y = x*x - 1;
} else {
y = x*x - 1;
}
if (x < 0) {
z = -PI/2.0 + 3.0;
} else if (x == 0) {
z = 0;
} else {
z = PI/2.0 - 5.0;
}
printf("y=%lf, z=%lf", y, z);
}

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/t3.iml" filepath="$PROJECT_DIR$/.idea/t3.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.21)
project(t3)
set(CMAKE_CXX_STANDARD 14)
add_executable(t3 main.cpp)

@ -0,0 +1,6 @@
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
<serverData>
<paths name="remote_linux (563cc454-127a-4c53-a847-5bf281087bb1)">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
</serverData>
</component>
</project>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
</project>

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
<mapping directory="$PROJECT_DIR$/.." vcs="Git" /> <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component> </component>
</project> </project>

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
Loading…
Cancel
Save