自学第七十九天
2021-02-14 22:55
831 查看
//#include<stdio.h> //int main() //{ // float aboat = 32000.0; // double abet = 2.14e9; // long double dip = 5.32e-5; // printf("%f can be written %e\n", aboat, aboat); // printf("And it's %a in hexadecimal, powers of 2 notation\n", aboat); // printf("%f can be written %e\n", abet, abet); // printf("%Lf can be written %Le\n", dip, dip); // return 0; //} //#include<stdio.h> //int main() //{ // float salary; // printf("\aEnter your desired monthly salary:");//\a是发生一声警报 // printf("$_______\b\b\b\b\b\b\b");//\b是向左移动一格 // scanf("%f", &salary); // printf("\n\t$%.2f a month is $%.2f a year.", salary, salary * 12.0);//\t意思是水平制表符使光标移至该行的下一个制表点,一般是第9列 // printf("\rGee!\n");//\r意思是使光标回到当前行的起始处 // return 0; //} //#include<stdio.h> //#include<string.h> //#define DENSITY 62.4//定义一个宏【注意】后面没有分号。 //int main() //{ // float weight, volume; // int size, letters; // char name[40]; // printf("Hi! What's your first name?\n"); // scanf("%s", &name); // printf("%s, What's your weight in pounds?\n", name); // scanf("%f", &weight); // size = sizeof(name); // letters = strlen(name); // volume = weight / DENSITY; // printf("Well,%s,your volume is %2.2f cubic feet.\n", name, volume); // printf("Also, your first name has %d lettes,\n", letters); // printf("and we have %d bytes to store it.\n", size); // return 0; //}
相关文章推荐
- 程序员101:如何自学编程
- 自学QT之传递控件指针判断是哪个控件被操作
- 孤荷凌寒自学python那些事第一天
- Linux自学笔记
- 【Unity3D自学记录】鼠标移动三维物体
- PE文件自学笔记(二):Section Table结构解析
- 自学CE,自己做CT表!(二)
- 自学PHP有哪些书籍和教程值得推荐?
- Oracle-自学日记(3)--随笔@2nd May 2011
- 【源】从零自学Hadoop(14):Hive介绍及安装
- struts2 自学笔记(1)
- 从0自学C#03--文件流保存数据为txt/excel格式
- 自学Linux系统个人记录(二)
- 刚自学android不久,学着写了个小软件
- 自学QT之实现程序启动画面
- JAVA知识点-适合自学、面试
- lambda表达式自学笔记2
- 自学计划
- JavaSE基础自学----final关键字
- MFC自学之路(2)