ZIPccf书籍-基础篇-第一章源代码 5.75MB

Zhou2010_

资源文件列表:

基础篇——第1章.zip 大约有27个文件
  1. 第1章/
  2. 第1章/1.1-1.cpp 251B
  3. 第1章/1.1-1.exe 1.89MB
  4. 第1章/1.2-2.cpp 267B
  5. 第1章/1.2-2.exe 1.89MB
  6. 第1章/1.2-3.cpp 307B
  7. 第1章/1.2-3.exe 1.89MB
  8. 第1章/1.3-4.cpp 185B
  9. 第1章/1.3-4.exe 1.89MB
  10. 第1章/1.4-5.cpp 293B
  11. 第1章/1.4-5.exe 1.89MB
  12. 第1章/1.5-6.cpp 371B
  13. 第1章/1.5-6.exe 1.9MB
  14. 第1章/1.5-7.cpp 886B
  15. 第1章/1.5-7.exe 1.89MB
  16. 第1章/1.5-8.cpp 915B
  17. 第1章/1.5-8.exe 1.91MB
  18. 第1章/1.6-10.cpp 308B
  19. 第1章/1.6-10.exe 1.89MB
  20. 第1章/1.6-11.cpp 391B
  21. 第1章/1.6-11.exe 1.9MB
  22. 第1章/1.6-12.cpp 276B
  23. 第1章/1.6-12.exe 1.92MB
  24. 第1章/1.6-9.0.cpp 175B
  25. 第1章/1.6-9.0.exe 1.89MB
  26. 第1章/1.6-9.cpp 177B
  27. 第1章/1.6-9.exe 1.89MB

资源介绍:

ccf书籍——基础篇——第一章(编程如此简单)源代码 共13个源代码 介绍基本的顺序结构 1.1程序设计概念 1.2整数算术运算 1.3实数算术运算 源代码均为本人编写
#include<iostream> #include<string> #include<algorithm> using namespace std; const int N=110; int n,m,a[N][N],b[N][N]; string s; void input() { cin>>m>>n; for(int i=1;i<=m;i++) { for(int j=1;j<=n;j++)cin>>a[i][j]; } cin>>s; } int f(char a,int x,int y,int g) { if(a=='A')if(!g)return y;else return m-x+1; if(a=='B')if(!g)return n-y+1;else return x; if(a=='C')if(!g)return x;else return n-y+1; if(!g)return m-x+1;else return y; } void work() { for(int k=0;k<s.length();k++) { for(int i=1;i<=m;i++) { for(int j=1;j<=n;j++) { b[f(s[k],i,j,0)][f(s[k],i,j,1)]=a[i][j]; } } if(s[k]=='A'||s[k]=='B')swap(m,n); for(int i=1;i<=m;i++)for(int j=1;j<=n;j++)a[i][j]=b[i][j]; } } void output() { for(int i=1;i<=m;i++) { for(int j=1;j<=n;j++)cout<<a[i][j]<<" "; cout<<endl; } } int main() { input(); work(); output(); return 0; }
100+评论
captcha
    类型标题大小时间
    ZIP独家开发thinkPHP付费资源网站源码 php视频课程网站源码 php知识付费网站源码89.1MB8月前
    ZIPthinkPHP付费资源网站源码 php视频课程网站源码 php知识付费网站源码306B8月前
    ZIPnovelreaderls.zip961.19KB8月前
    ZIPRANSAC 和最小二乘法实现雷达自我速度估计5.77MB8月前
    ZIP仿真练习文件(对外) 2024-08-06 16_39.zip22.66MB8月前
    ZIPModbus-串口通讯极简版小程序19.3MB8月前
    ZIPNTHUCC.apk.1.zip65.71MB8月前
    ZIPAT24CXX-模拟IIC13.39MB8月前