1. 程式人生 > >【c程式設計語言(第二版)學習】20160326

【c程式設計語言(第二版)學習】20160326

\b 退格

printf("請輸入您的身高:______英寸\b\b\b\b\b\b\b\b\b", );

%e 用法
#include<stdio.h>

int main(void)

{
	float a;
	printf("please input how much quarts the water is :");

	scanf_s("%f",&a);

	printf("%f quarts water has %e molecules \n",a,a*950/3E-23 );
	return 0;
}

copy、

void copy(char to[], char from[]){
	int i;
	i = 0;
	while (to[i] = from[i] != '\0')i++;
}