spoon

第三章

纵饮孤独 提交于 2020-12-28 15:46:42
1. #include <stdio.h> int main(void) { int input; printf("Enter a value of char int ASCII:"); scanf("%d",&input); printf("You input value is %d,and char is %c\n",input,input); getchar(); return 0; } 2. #include <stdio.h> int main(void) { char ch = '\a'; printf("%c",ch); printf("Starled by the sudden sound,Sally shouted, \n"); printf("\"By the Great Pumpkin,what was that!\"\n"); getchar(); return 0; } 3. #include <stdio.h> int main(void) { float input; printf("Enter a floating-point value:"); scanf("%f",&input); printf("fixed-point notation: %f \n",input); printf("exponential notation: %f \n"

书本二三四五章

本小妞迷上赌 提交于 2020-11-25 02:02:14
#第二章1 /* * @Author:曾钰芝 * @Date: 2020-11-15 15:36:11 * @LastEditTime: 2020-11-15 15:52:09 * @LastEditors: Please set LastEditors * @Description: 书本第二章 * @FilePath: \undefinedc:\Users\wangfuren\Desktop\秃头c\。。.c */ #define NAME "曾" #define SURNAME "钰芝" int main(){ printf("%s %s\n",NAME,SURNAME); printf("%s\n%s\n",NAME,SURNAME); printf("%s ",NAME); printf("%s\n",SURNAME); return 0; } #第二章2 /* * @Author:曾钰芝 * @Date: 2020-11-15 15:36:11 * @LastEditTime: 2020-11-15 15:52:09 * @LastEditors: Please set LastEditors * @Description: 书本第三章 * @FilePath: \undefinedc:\Users\wangfuren\Desktop\秃头c\。。.c */

书本作业

谁说胖子不能爱 提交于 2020-11-24 09:39:01
2-1 * @Author : 蔡悦杰 @Date : 2020-11-08 22:57:31 @LastEditTime: 2020-11-08 23:05:02 @LastEditors: your name @Description: In User Settings Edit @FilePath: \undefinedc:\Users\xbf77\Desktop\C\书本作业\2-1.c */ #include<stdio.h> int main() { printf("蔡悦杰\n"); printf("蔡\n"); printf("悦杰\n"); printf("蔡悦杰"); printf("蔡悦杰"); getchar(); return 0; } 2-2 /* @Author: 蔡悦杰 @Date: 2020-11-08 23:05:25 @LastEditTime: 2020-11-08 23:06:07 @LastEditors: Please set LastEditors @Description: @FilePath: \undefinedc:\Users\xbf77\Desktop\C\书本作业\2-2.c */ #include<stdio.h> int main() { printf("蔡悦杰\n"); printf("浙江树人大学致和园");

第三章编程练习

*爱你&永不变心* 提交于 2020-11-24 02:21:17
第二题 #include<stdio.h> int main() { int input; printf("Enter a value of char int ASCII:"); scanf("%d",&input); printf("You input value is %d,and char is %c\n",input,input); return 0; } 第三题 #include<stdio.h> int main() { char ch = '\a'; printf("%c",ch); printf("Starled by the sudden sound, Sally shout, \n"); printf("\"By the Great Pumpkin, what was that!\"\n"); return 0; } 第四题 #include<stdio.h> int main() { float input; printf("Enter a floating-point value:"); scanf("%f",&input); printf("fixed-point notation: %f \n",input); printf("exponential notation: %e \n",input); printf("p notation: %a \n"

作业2

北慕城南 提交于 2020-11-22 04:35:19
1.通过试验(即编写带有此类问题的程序)观察系统如何处理整数上 溢、浮点数上溢和浮点数下溢的情况。 #include<stdio.h> int main (void) { int z1; float f1,f2; z1=-2147483647; f1=3.4E38; f2=-3.4E38; printf("%d,%d,%d",z1,z1-1,z1-2); printf("%f,%f,%f",f1,f1*10); printf("%f,%f",f2,f2/10); return 0; } 2.编写一个程序,发出一声警报,然后打印下面的文本:Startled by the sudden sound, Sally shouted,"By the Great Pumpkin, what was that!" #include<stdio.h> int main() { printf("\a"); printf("Startled by the sudden sound, Sally shouted,\n"); printf("\"By the Great Pumpkin, what was that!\"\n"); return 0; } 3.编写一个程序,读取一个浮点数,先打印成小数点形式,再打印成指 数形式。然后,如果系统支持,再打印成p记数法(即十六进制记数法)。 按以下格式输出

书本作业2到5章

荒凉一梦 提交于 2020-11-15 23:52:51
2-1 * * @Author: 徐博凡 * @Date: 2020-11-08 22:57:31 * @LastEditTime: 2020-11-08 23:01:02 * @LastEditors: your name * @Description: In User Settings Edit * @FilePath: \undefinedc:\Users\xbf77\Desktop\C\书本作业\2-1.c */ #include<stdio.h> int main() { printf("徐博凡\n"); printf("徐\n"); printf("博凡\n"); printf("徐博凡"); printf("徐博凡"); getchar(); return 0; } 2-2 /* * @Author: 徐博凡 * @Date: 2020-11-08 23:05:25 * @LastEditTime: 2020-11-08 23:06:07 * @LastEditors: Please set LastEditors * @Description: * @FilePath: \undefinedc:\Users\xbf77\Desktop\C\书本作业\2-2.c */ #include<stdio.h> int main() { printf("徐博凡\n");

第三章

我的未来我决定 提交于 2020-11-15 23:51:56
#2. #include<stdio.h> int main(){ int input; printf("输入ASCII码值:"); scanf_s("%d", &input); printf("You input value is %d,and char is %c\n", input, input); return 0; } #3. include<stdio.h> int main(){ char ch = ‘\a‘; printf("输入ASCII码值:"); printf("%c", ch); printf("Starled by the sudden sound,Sally shouted,\n"); printf("\"By the Great Pumkin,what was that!\"\n"); return 0; } #4. nt main(void) { float input; printf("Enter a floating-point value:"); scanf_s("%f", &input); printf("打印普通形式:%f\n", input); printf("打印指数形式:%e\n",input); printf("打印p计数法形式:%a\n", input); return 0; } ``` #5 ``` #include

kettle数据转换过程中乱码问题解决

风格不统一 提交于 2020-08-18 11:20:15
从一个utf8的postgres抽到另一个utf8的postgres里,中间除了一步python的数据脱敏,其余都是kettle流程,排查发现,数据从进入kettle开始就是乱码了, 还没有经过python的步骤,所以锁定在kettle的问题。通过修改kettle的启动文件Spoon.bat来解决之。 if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms128m" "-Xmx4096m" "-XX:MaxPermSize=256m" 用notpad++右键打开Spoon.bat,找到上边的这句话,在他后边添加指定编码即可。 if "%PENTAHO_DI_JAVA_OPTIONS%"=="" set PENTAHO_DI_JAVA_OPTIONS="-Xms128m" "-Xmx4096m" "-XX:MaxPermSize=256m" "-Dfile.encoding=UTF8" 重启kettle解决之。 参考: https://forums.pentaho.com/threads/94865-encoding-problem-utf8/ 来源: oschina 链接: https://my.oschina.net/finchxu/blog/4503451