#include #include #include #include 使用命名空间std; 作废双时间(双L、双P双G) voidmain) { setlocale(LC_ALL-Pendulum.cpp-文件处理 - IMDN开发者社群-imdn.cn" /> #include#include#include#include使用命名空间std;作废双时间(双L、双P双G)voidmain){setlocale(LC_ALL,"RUS");双L,T;双P=3.14;//КОНСТАНТА双G=9.8;//КОНСТАНТА//ДЛЯЗАДАННЫХЗНАЧЕНИЙL=100;T=time(L,P,G);cout«"ВремяколебанийприL="«L«"равно:"«T;_getch();//ДЛЯЗНАЧЕНИЙВВОДИМЫХСКЛАВИАТУРЫsystem("cls");cout«"DведитеL=";cin»L;T=time(L,P,G);cout«"ВремяколебанийприL="«L«"равно:"«T;_getch();返回0;}作废双时间(双L、双P双G){双M;双P=3.14;//КОНСТАНТА双G=9.8;//КОНСТАНТАM=2*P*sqrt(L/G);//ПЕРИОДКОЛЕБАНИЙ返回M;}-IMDN开发者社群-imdn.cn"> #include#include#include#include使用命名空间std;作废双时间(双L、双P双G)voidmain){setlocale(LC_ALL,"RUS");双L,T;双P=3.14;//КОНСТАНТА双G=9.8;//КОНСТАНТА//ДЛЯЗАДАННЫХЗНАЧЕНИЙL=100;T=time(L,P,G);cout«"ВремяколебанийприL="«L«"равно:"«T;_getch();//ДЛЯЗНАЧЕНИЙВВОДИМЫХСКЛАВИАТУРЫsystem("cls");cout«"DведитеL=";cin»L;T=time(L,P,G);cout«"ВремяколебанийприL="«L«"равно:"«T;_getch();返回0;}作废双时间(双L、双P双G){双M;双P=3.14;//КОНСТАНТА双G=9.8;//КОНСТАНТАM=2*P*sqrt(L/G);//ПЕРИОДКОЛЕБАНИЙ返回M;} - IMDN开发者社群-imdn.cn">
登录
首页 » 文件处理 » Pendulum.cpp

Pendulum.cpp

于 2022-03-13 发布 文件大小:2.46 kB
0 110
下载积分: 2 下载次数: 1

代码说明:

#include"stdafx.h" #include < iostream > #include < conio.h > #include < locale.h > #include < stdio.h > #include < math.h > 使用命名空间 std ; 作废双时间 (双 L、 双 P 双 G) void main) { setlocale (LC_ALL,"RUS") ; 双 L,T; 双 P = 3.14 ;/ / КОНСТАНТА 双 G = 9.8 ;/ / КОНСТАНТА //ДЛЯ ЗАДАННЫХ ЗНАЧЕНИЙ L = 100 ; T=time(L,P,G) ; cout «"Время колебаний при L ="«L «"равно:"«T; _getch() ; //ДЛЯ ЗНАЧЕНИЙ ВВОДИМЫХ С КЛАВИАТУРЫ system("cls") ; cout «"Dведите L ="; cin» L; T=time(L,P,G) ; cout «"Время колебаний при L ="«L «"равно:"«T; _getch() ; 返回 0 ; } 作废双时间 (双 L、 双 P 双 G) { 双 M; 双 P = 3.14 ;/ / КОНСТАНТА 双 G = 9.8 ;/ / КОНСТАНТА M=2*P*sqrt(L/G) ;/ / ПЕРИОД КОЛЕБАНИЙ 返回 M; }

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

发表评论

0 个回复

  • RandomAccessFile对操作,很好用的哟
    RandomAccessFile 对文件操作,很好用的哟-RandomAccessFile right file manipulation, good use of yo
    2022-02-01 23:09:33下载
    积分:1
  • 朋友有一些mp3学习资料,需要刻到光盘上,可是没有目录, 我临时作了这个小程序,功能是把目录下的所有生成 一个txt,写入磁盘,然后你再打印出来...
    朋友有一些mp3学习资料,需要刻到光盘上,可是没有目录, 我临时作了这个小程序,功能是把目录下的所有文件生成 一个txt文件,写入磁盘,然后你再打印出来就OK;-Friend mp3 has some learning materials, the need for inscription to the disc, but there is no directory, I made this little temporary procedure, function is to catalog all files to generate a txt file, write to the disk, and then you print them out on the OK
    2022-03-02 03:42:33下载
    积分:1
  • The importation of a certain period of a day, this is the one to judge the first...
    输入某年某月某日,判断这一天是这一年的第几天?-The importation of a certain period of a day, this is the one to judge the first few days this year?
    2022-01-21 02:34:23下载
    积分:1
  • 可实现windows下目录和的创建、删除和更名,有界面
    可实现windows下目录和文件的创建、删除和更名,有界面-windows can be realized under the directories and files to create, delete and rename, interface
    2022-03-17 22:03:57下载
    积分:1
  • 定义的认知 -无线电应用与Matlab
    该报告包含无线电认知无线电和软件的基本信息。软件无线电是在这个领域,有望便于携带和在同一硬件上的新技术适应性的新兴技术。认知无线电技术利用此软件定义无线电智能地和高效率地利用可用频谱知道关于其他用户共享同一频谱的边带信息。 该报告谈到了认知无线电技术,利用频谱感知和认知无线电在我们目前的沟通方案,并实际硬件实现软件无线电的实用性进入其软件实现的细节(在Simulink和MATLAB)。This report contains basic information on Cognitive Radio and Software Defined Radio. Software Defined Radio is an emerging technique in this domain that promises easy portability and adaptability of new techniques on the same hardware. Cognitive Radio technique utilizes this Software Defined Radio to intelligently and efficiently utilize the available frequency spectrum knowing about the side information of other users sharing the same spectrum.The report talks about the Cognitive Radio technique and goes into details of its Software implementation (on Simulink and MATLAB) using Spectrum Sensing and the practicality of cognitive radio in our present scenario of communication and its actual hardware implementation on Software Defined Radio.
    2022-03-06 00:04:13下载
    积分:1
  • RowCounter这个东东更多时候我是作为一种好玩的工具用的。 上一版本是一年半前发布的吧?这次我更新了统计代码行的算法,速度超快,并且增加了扫描目录功...
    RowCounter这个东东更多时候我是作为一种好玩的工具用的。 上一版本是一年半前发布的吧?这次我更新了统计代码行的算法,速度超快,并且增加了扫描目录功能,哈,这下可以方便地统计Delphi所带的源码有多少行啦! RowCounter 源码公开,你可以自由使用、修改及传播,如果你有什么改进,请给我发一份,我的EMail是:iamready@eastday.com。-RowCounter this time I was more as a fun tool to use. There is a version of a year and a half before the release? This time I updated the statistics line of code algorithm, ultrafast speed and increased directory scanning function, Kazakhstan, Great statistics for the convenience of Delphi to release the source code line number! RowCounter open source, you can freely use, modify and spread if you have any improvements, please give me a fat, I was in that extension : iamready@eastday.com.
    2022-02-02 03:48:29下载
    积分:1
  • Realizes in the MFC application procedure glances over PDF, the WORD documents d...
    在MFC应用程序中实现浏览PDF,WORD文档文件,很不错的东东.- Realizes in the MFC application procedure glances over PDF, the WORD documents document, very good east east
    2023-02-11 18:25:03下载
    积分:1
  • 专营权的电信公司的控制台应用程序
    几乎所有的面向对象编程的概念一直是 此项目中使用。
    2022-01-25 19:03:41下载
    积分:1
  • 从可执行中读取版本信息 从可执行中读取版本信息
    从可执行文件中读取版本信息 从可执行文件中读取版本信息-from executable file version information read from the document read executable version
    2022-11-18 20:45:04下载
    积分:1
  • The realization of the use of ShellExt
    利用ShellExt实现 -The realization of the use of ShellExt
    2023-01-25 20:00:04下载
    积分:1
  • 696518资源总数
  • 106174会员总数
  • 31今日下载