c언어 강좌2번째! / C language course second!

in #kr7 years ago

흐 요즘 인공지능에 푹빠져 살아서
강좌 올리는걸 까맣게 잊고 있었네요 죄송합니다 ㅠㅠ
오늘은 시간도 늦은만큼 간단한 출력 부분만 알아볼겁니다
우선 c언어를 처음 배울 때 우리가 프로그램을 볼 때처럼
자기가 꾸민 창이 나와 막 실행되고 하는걸 상상하면 안돼요

우선 기초는 보통 콘솔부터 시작하는데요
출력은 그 콘솔 기능 중에서도 가장 기초입니다

출력은 말 그대로 숫자라든지 문자라든지를 써서 보여주는걸 의미해요

자 그럼 말은 이쯤하고 코드를 짜볼까요?

우선 저번 시간에 다운받았던 프로그램을 켜줍시다

2017-07-15 15;44;17_0.png

이런 창이 뜨실텐데요 왼쪽 위에 보시면 하얀색 종이처럼 생긴 버튼이 있을거에요
클릭 하셔서 source file 또는 소스파일을 클릭해줍시다

2017-07-15 15;46;01_0.png

이렇게 나오셨죠?

텍스트를 넣을수있게 만들어지는데 우린 여기에다가
직접 코딩을 해볼거에요

2017-07-15 15;48;18_0.png

이렇게 작성해보시고 F11을 누르시면 저장을 하라고 뜰꺼에요 원하는 폴더에 저장하시면

2017-07-15 15;49;40_0.png

이런식으로 시커먼 창에 "Hello Wolrd"라고 출력이 되는 것을 확인할수 있습니다

자 그럼 이제 저 의미를 파악해 봅시다
우선 #include<stdio.h> include는 말 그대로 포함한다는 의미인데요
헤더파일이라고하는 파일들이 이 프로그램을 다운 받으면 저절로 다운이 됩니다
그 중에서 가장 기본이되는 standard input output의 줄임말인 stdio.h(h는 헤더파일의 확장자명)을
가져오겠다는 뜻입니다

그 다음으로 int main(){}이건 메인함수라고 하여 프로그램이 실행되면 이 {}안에있는 명령어들을
차례대로 실행합니다

printf("Hello Wolrd"); 이건 딱 감이 오시지 않나요?
세미콜론은 문장의 끝맡침으로써 대부분의 명령어들 뒤에 붙여줍니다

printf는 말 그대로 ""안에 있는 내용을 출력해줍니다

생각보다 간단하죠? 우선 오늘 강좌는 여기까지하고 마치겠습니다~

다음에는 이 출력에 대해서 더 깊게 알아보죠

Nowadays, living in artificial intelligence
I completely forgot to raise lecture.
Today, I'll be checking the simple output section as time goes by.
First, when we first learn c language,
You can not imagine that your window is just running out.

First of all, we start with a console.
The output is the most basic of its console functions

The output literally means showingnumbers or letters.

So let's just say this and write the code.

First let's turn on the program that was downloaded last time.

2017-07-15 15;44;17_0.png

There's a window like this. There's a white paper-like button on the left.
Click on the source file or the source file.

2017-07-15 15;46;01_0.png

You came out like this?

It's made to contain text.
I'll try coding myself.

2017-07-15 15;48;18_0.png

If you press F11, you will be asked to save it.

2017-07-15 15;49;40_0.png

If you save it in the desired folder, you can see that "Hello Wolrd"

Now let's figure that out.
First, the #include <stdio.h> include means literally.
Header files are downloaded automatically when you download this program
Stdio.h (h is the extension of the header file), which is the abbreviation of standard input output
It means to import.

Next, int main () {} This is the main function, so when the program is executed,
Run in order

Printf ("Hello Wolrd"); Is not this just going to feel good?
The semicolon is followed by the end of the sentence, followed by most commands

Printf literally prints the contents inside ""

Is it simpler than you think? First of all, I will finish the lecture today.

Next, let's take a closer look at this output.

Sort:  

Congratulations @schch020! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

뉴비는 언제나 환영!/응원!이에요.
팁! : 자신의 스팀파워와 내역은 https://steemd.com/@본인아이디 사이트에 들어가시면 알 수 있다네요.
0.6944444% 보팅

  • kr-newbie 보안관 봇! (beta v0.2.0 - 2017/07/10)

인공지능에 푹 빠지셨다니!!! 인공지능 이야기도 너무 궁금합니다!!!

Well done post thanks for sharing

영어 번역이 직접 하셨나요?

아뇨 갓구글의 힘을 빌렸죠 ㅋㅋ
중간에 문법 이상한거 보이면 고치고

네! 알겠습니다.

Coin Marketplace

STEEM 0.20
TRX 0.15
JST 0.030
BTC 64884.95
ETH 2619.31
USDT 1.00
SBD 2.82