C++48

    xiaoxiao2021-11-07  78

    1601-1谢志丹2016-11-17

    连续第48天总结

    标题:代码的书写与继承学习

    关键词:作业与视频学习

    完成情况:99%

    具体内容:

    1.对于作业的3个程序我在devc++与VC6.0中都打了一遍,大体相同但部分还是有点不同的。比如vc6.0要加.h,不用using namespace std;程序如下

    #include<iostream>  using namespace std; int main() /*{  int i;  for(i=101;i<300;i++)   {    if(i*i%6==3)     cout<<i<<"\t";     system("pause");    i++;      }  return 0; } {  int s=0,n=0;  do{    s=s+n*10+2;    n++;    }while(s<=1000); cout<<n-1; }*/ {  int i,j,k,count=0;  cout<<"The result:\n";  for(int s=11;s<1000;s++)  {i=s/100;   j=s;   k=s/10;   if(i==0&&j==k||i!=0&&i==j)   {cout<<s<<"\t";    count++;    if(count%8==0)cout<<endl;   }   //cout<<"count="<<count<<endl;  }  cout<<"\ncount="<<count<<endl;  return 0; } 

    至于今天视频学习的话一张图片即可高度概括

    转载请注明原文地址: https://ju.6miu.com/read-678094.html

    最新回复(0)