\r和\n的区别

#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

static float test_equation = 0;
static char  letter_A = '\r';

int main()
{	
	
	//while (1)
	{
		//printf(" hello");
		//printf(" hello%c", letter_A);
		printf("Hello\n");
		getchar();
	}

	return 0;
} 

  

posted @ 2020-02-27 20:35  卷哭你  阅读(153)  评论(0编辑  收藏  举报