登录
首页 » c++,c » 分别用三种语句实现循环

分别用三种语句实现循环

于 2022-07-13 发布 文件大小:461.85 kB
0 72
下载积分: 2 下载次数: 1

代码说明:

实现输入一个数,显示它的位数。分别用了for语句,while语句,do while语句来实现,方便读者比较俩俩之间的区别!

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 仿360界面
    仿360界面
    2014-06-27下载
    积分:1
  • C# 下载图片示例
    using System;using System.Web;public class DownImg : IHttpHandler { //图片下载功能 public void ProcessRequest(HttpContext context) { System.Net.WebResponse response = null; System.IO.Stream stream = null; string path = context.Request.Url.Query.Split(new string[] { "coverimg=" }, StringSplitOptions.RemoveEmptyEntries)[1]; System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(path); response = request.GetResponse(); stream = response.GetResponseStream(); System.IO.MemoryStream memStream = Txooo.Mobile.HttpTools.CloneStream(stream); byte[] bytes = new byte[memStream.Length]; memStream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 memStream.Seek(0, System.IO.SeekOrigin.Begin); context.Response.ContentType = "application/octet-stream"; //通知浏览器下载文件而不是打开 string fileName = DateTime.Now.Ticks.ToString() ".jpg"; context.Response.AddHeader("Content-Disposition", "attachment; filename=" fileName); context.Response.BinaryWrite(bytes); context.Response.Flush(); } public bool IsReusable { get { return false; } }}
    2014-05-29下载
    积分:1
  • 飞思卡尔第九届摄像组校赛代码。(OV7620摄像头,速度还行)
    飞思卡尔第九届摄像组校赛代码。基本功能都可实现,新手可以参考下
    2022-06-29 15:23:09下载
    积分:1
  • C# development of voice inquiry system for automatic answering telephone inquiri...
    C#开发语音查询系统,用于电话查询自动应答。-C# development of voice inquiry system for automatic answering telephone inquiries.
    2022-04-12 11:36:18下载
    积分:1
  • 本书主要介绍如何用最常见的设计模式编写C#程序.全书分为四个部分,首先介绍了C#语言和面向对象程序设计的一般原则,可作为C#程序设计的快速入门教程 然后分别讲述...
    本书主要介绍如何用最常见的设计模式编写C#程序.全书分为四个部分,首先介绍了C#语言和面向对象程序设计的一般原则,可作为C#程序设计的快速入门教程 然后分别讲述了创建型模式,结构型模式和行为型模式.每一类设计模式又包括若干种具体模式,共有23种.在介绍每种模式时,给出了一个或多个应用该模式的示例,以便于理解,且这些示例都是能完全运行的程序,包含在随书附带的光盘中.此外,每一章还提供了UML图,用以说明类之间的关系. 本书适用于计算机及相关专业的本科生和研究生,对于软件开发人员也是一本很好的参考书. -the book introduces how to use the most common design pattern C# preparation procedures. The entire book is divided into four parts, first introduced the C# language and object-oriented programming in general principle, C# can be used as procedures designed Quick Start Guide were then told to create a type, Structural model and the model behavior. Each category is designed to include a number of specific kinds of models A total of 23 species. In introducing each model, is the application of one or more examples of the model in order to understand it, And these examples are capable of fully operational procedures, included in the book with accompanying CD-ROM. In addition, Each chapter also provided a map UML, to illustrate the relatio
    2023-04-17 23:35:03下载
    积分:1
  • 224XP可以扩展的主机程序
    224XP可以扩展的主机程序
    2022-02-05 04:42:43下载
    积分:1
  • c#访问读写office excel的类
    用c#访问读写office excel的类-office excel helper by csharp.
    2022-04-27 02:47:37下载
    积分:1
  • c8051f320 testpanel c code
    c8051f320 testpanel c code 例程。 帮助学习8051 usb
    2022-06-26 13:07:22下载
    积分:1
  • c#程序实现换肤
    c#程序实现换肤-Program Eurocargo
    2022-03-05 16:36:14下载
    积分:1
  • C# UI界面库(SunnyUI)
    分享一个C#界面库源码 SunnyUI.Net, 基于 C# .Net WinForm 开源控件库、工具类库、扩展类库、多页面开发框架 - 源码编译环境:VS2019 - 动态库应用环境:VS2010及以上,.Net Framework 4.0及以上(不包括.Net Framework 4 Client Profile)
    2020-12-10下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载