• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
GeT.òuT。
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年12月11日
反序输出
摘要: 1、#include<iostream.h>void main(){ unsigned int x; int y1,y2,y3,y4; cout<<"输入一个4位无号符整数"<<endl; cin>>x; y1=x%10; y2=x/10%10; y3=x/100%10; y4=x/1000%10; cout<<"反序输出:"<<y1<<y2<<y3<<y4<<endl;}2、#include<iostream.h>int 阅读全文
posted @ 2012-12-11 14:01 GeT.òuT。 阅读(107) 评论(1) 推荐(0)
2012年12月10日
考试那些事~~
摘要: #include <iostream.h>#include <time.h>#include <stdlib.h>#include <stdio.h>void readarray(int arr[][5]){ int i,j; srand (time(NULL)); for(i=0;i<4;i++) { for(j=0;j<5;j++) arr[i][j]=rand()%100+1; }}void printarray(int arr[][5]){ int i,j; for(i=0;i<4;i++) { for(j=0;j< 阅读全文
posted @ 2012-12-10 20:06 GeT.òuT。 阅读(118) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3