C/C++ 언어 printf() 출력 방법


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
 
int main() {
  printf("------------------------\n");
  printf("one");
  printf("two");
  printf("three\n");
  printf("------------------------\n");
  printf("one \ntwo \nthree \n");
  printf("------------------------\n");
  printf("one \rtwo \rthree \n");
  printf("------------------------\n");
  printf("one \ttwo \tthree \n");
  printf("------------------------\n");
  printf("one \b\b\b\ntwo \n");
  printf("------------------------\n");
  printf("one \\two \\three \n");
  printf("------------------------\n");
  printf("one \"two \"three \n");
  printf("------------------------\n");
  printf("one \'two \'three \n");
  return 0;
}
cs


C/C++ 언어 printf() 출력 방법



+ Recent posts