登录
首页 » c++ » C++代码 简单的入门代码

C++代码 简单的入门代码

于 2023-01-20 发布 文件大小:27.87 kB
0 142
下载积分: 2 下载次数: 1

代码说明:

C++学习代码,本代码中首先是对键盘输入的两个整数进行简单的加减乘除运算,并且编写自定义函数实现。第二部分是排序的学习,对于输入的一串数字进行从小到大排序后输出检验。

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

发表评论

0 个回复

  • chouxianggongchang
    三层架构+抽象工厂 实现不同数据库的转换(Three-tier architecture+ abstract factory to achieve the conversion of different databases)
    2011-06-20 20:13:17下载
    积分:1
  • 8个按键控制8个LED灯
    该程序功能是8个按键控制8个LED灯,非常适合单片机初学者加深对单片机I/O口的理解(The program function is 8 buttons to control 8 LED lights, which is very suitable for beginners of MCU to deepen the understanding of the I/O port of the MCU.)
    2020-06-20 08:00:01下载
    积分:1
  • 简易的视频播放(无声)
    读取每一帧图片进行播放视频的
    2022-05-17 19:53:45下载
    积分:1
  • account
    设计一个名为Account类。这个类包含: (1)一个名为id的int型数据域,表示账户的身份号(默认值为0)。 (2)一个名为balance的double型数据域,表示账户余额(默认值为0)。 (3)一个名为annualInterestRate的double型数据域,保存当前年利率(默认值为0)。 (4)一个无实参构造函数,创建一个默认账户。 (5)id、balance和annualInterestRate的访问器和更改器函数。 (6)一个名为getMonthlyInterestRate()的函数,返回月利率。 (7)一个名为withDraw的函数,从账户中支取指定金额。 (8)一个名为deposit的函数,向账户中存入指定金额。 画出类的UML图,实现类。编写一个测试程序,它创建一个Account对象,其ID为1122,账户余额为20000,年利率为4.5 。使用withDraw函数取出2500美元,使用deposit函数存入3000美元,然后输出账户余额、月利率和账户创建时间。(Design a class named Account. This class includes: (a) a named data type int id field that indicates the account identification number (default is 0). (2) a double-called balance of data fields, which means that the account balance (default is 0). (3) a double type named annualInterestRate of data fields, save the current interest rate (default is 0). (4) a no-argument constructor creates a default account. (5) id, balance and annualInterestRate access control and change control functions. (6) a named getMonthlyInterestRate () function returns a monthly rate. (7) a function named withDraw, drawn from the account specified amount. (8) a function called deposit to the account into a designated amount. Draw a UML class diagram, the implementation class. Write a test program that creates an Account object, its ID is 1122, the account balance is 20,000, an interest rate of 4.5 . Use withDraw function out $ 2,500, $ 3,000 deposit with deposit function, and then outputs the account balance, m)
    2013-06-01 13:21:54下载
    积分:1
  • 直流无刷电机 无感 FOC磁场定向控制源码,实测可转
    本代码采用英飞凌的 TLE9879, 完整的代码,希望需要的同仁能得到帮助!
    2022-09-07 04:25:03下载
    积分:1
  • shengji
    升级组件源代码,需要的朋友可以参考一下。包含客户端和服务端。(Upgrade components of the source code, need a friend for reference. Contains client and server.)
    2008-08-19 16:29:29下载
    积分:1
  • Matlab与Vc的接口转换程序
    在Vc中调用Matlab源文件的调试程序!(in Vc Calling Matlab source debugging procedures!)
    2005-07-08 10:41:16下载
    积分:1
  • Snake
    这个资料是贪吃蛇游戏在Visual C++环境下实现的源代码(This information is Snake game source code under the Visual C++ environment)
    2012-07-26 20:40:45下载
    积分:1
  • codestatistical
    一个实现在代码行数的统计,非常全面,各种信息都可以统计!(An implementation in the line of code number statistics, very comprehensive, all kinds of information can be statistical!)
    2012-10-14 15:35:38下载
    积分:1
  • wince系统导航仪wifi设置-连接程序
    wince系统导航仪wifi设置-连接程序,拷贝在导航仪的flash中,启动后会有
    2022-06-02 23:58:55下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载