Waitrud Weber’s blog

things and reminders for memories

MinGW: Print as %c and line end.

On the Powershell:

> .\main.exe
case: 0 // 

 

We could solve the print more clearly so that we could create the interface more light.

 

int main () {
	int i;

	for ( i =0; i<10; i++ ) {
		printf("case: %d // %c\r\n", i, (char)i );
	}
}

f:id:Waitrud_Weber:20220306103748p:plain

Print the word.

#MinGW