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() 출력 방법
'C,C++ > 예제' 카테고리의 다른 글
| C/C++ 언어 파일 읽어 성적 평균, 학점, 검색, 순위 출력 예제 프로그램 (0) | 2016.02.02 |
|---|---|
| C/C++ 언어 printf()의 여러가지 출력 (0) | 2016.02.02 |
| C/C++ 언어 두 정수를 입력 받아 연산하기 (0) | 2016.02.02 |
| C/C++ 언어 scanf() 버퍼 문제 (0) | 2016.02.02 |
| C/C++ 언어 scanf() 활용 (0) | 2016.02.02 |