***Vote*** 해주세요! 감사합니다!^^~ 안녕하세요 nothink 입니다! 오늘은 변수를 선언하는 것을 배울겁니다. <br> <br> <br> <br>  그전에 저의 글에 댓글을 달아주신 분의 의견에 따라 사진을 잘라 더 크게 보이게 했습니다!! 조언 감사드립니다! <br> <br> 이제 시작 해봐요~~ 실행환경: Windows 10 64비트 먼저 변수라는것이 뭘까요? 흔히 수학에서 x 하고 하는 그 변수 맞습니다. 변수는 변하는 수를 뜻합니다. 즉 변수는 상황에 따라서 값이 바뀔수 있다는거죠! 저번 처럼 (https://steemit.com/c/@nothink/c-2-printf-printing-letter-in-console-2-learning-printf) Ctrl+N 을 해주시거나 왼쪽 위에를 눌러러서 아래와 같이 뜨게 합니다 .! ↓  <br> <br> 그리고 아래의 소스를 입력 합니다. ※*소스 (Source)* #include <stdio.h> int main() { int a; char b; double c; float d; a=10; b='x'; c=3.141592653589793238462643383279502884197169; d=3.141592653589793238462643383279502884197169; printf("%d", a); printf("%c", b); printf("%lf", c); printf("%lf", d); return 0; } <br> <br> <br> <br>  <br> <br> 이번에도 F11 을 눌러서 컴파일과 실행을 동시에 해줍니다. <br> <br>  <br> 이름도 정해주시고용~ <br> <br> <br> <br> <br> 실행결과는 아래와 같이 보기 어렵게 나왔습니다.↓  이것은 어떻게 해결 할까요? 그건 우리가 저번 시간에 배운 \n 을 쓰는 것입니다. \ 는 우리나라 키보드에 없는 것으로 원화 키 W 처럼 생긴애를 눌러야 합니다. (Steemit 에서 원화키가 않뜨네여;;) 저번 강의:https://steemit.com/c/@nothink/c-2-printf-printing-letter-in-console-2-learning-printf 에서 보세영~~ <br> <br> <br> 즉 아래 와 같이 소스를 입력 해야 합니다. ※*소스 (Source)* #include <stdio.h> int main() { int a; char b; double c; float d; a=10; b='x'; c=3.141592653589793238462643383279502884197169; d=3.141592653589793238462643383279502884197169; printf("%d \n", a); printf("%c \n", b); printf("%lf \n", c); printf("%lf \n", d); return 0; } <br> <br> <br> <br> <br>  처럼 해야 합니다. <br> <br> 실행 결과는?!?!?!?!?!???!! ↓↓↓ <br> <br> <br>  <br> <br> <br> 이와 같이 아까보다 쉽게 볼수 있게 되었습니다. 그럼 명령어를 알려드려야 겠죠? <br> <br> <br> 먼저 int 는 integer 의 약자로 정수만 저장할수 있는 변수를 선언 합니다. 범위는 –2,147,483,648 ~ 2,147,483,647 입니다. <br> <br> 다음 char 는 character 의 약자로 문자 1개만 저장을 할수 있는 변수를 선언 합니다. char은 1바이트 인데 한글은 2바이트 여서 char 변수에 한글을 넣으면 아래 사진 처럼 아무것도 출력이 되지 않거나 ? 가 출력이 될때가 있습니다. <br>  ***실행결과*** <br>  <br> <br><br> <br>나머지는 4강에서 설명 합니당~ <br> <br> <br> <br> <br> 이상 nothink 였습니당~ ***Vote*** 부탁드립니다~ 감사합니당!! Please ***Vote*** Thank you~!
author | nothink |
---|---|
permlink | c-3-int-char-double-float-and-dev-c-make-a-changing-number-3-learning-int-char-double-float-and-simple-dev-c-settings |
category | kr |
json_metadata | {"tags":["kr","kr-newbie","c","kr-dev","include"],"image":["https://steemitimages.com/DQmP2ihepm2kzjBkZX4gWn9WjdseJwKPADwHjgyXwVnCdEs/c0.png","https://steemitimages.com/DQmPdiE9QegQPaMcTKNVCC9RH1HTxmP8EcHqVHDpBDM3oSx/c1.png","https://steemitimages.com/DQmSD16tL7QHixBhZR7rsM93mASCnUvTkGqT1ek9uXhQCZE/c2.png","https://steemitimages.com/DQmbMN1mhiLz3xyeWJfFtEa2XhuTy2xNY5zxGpDzegZVb7X/c3.png","https://steemitimages.com/DQmPCi8SeF988ojiYRVYvEPRy29FJKSPpwdGNTtPDVt163z/c4.png","https://steemitimages.com/DQmcK6sFCgbNjAc1jUEHbYd9rWcC4FxFZ8sy9WoQH4vDkkV/c7.png","https://steemitimages.com/DQmPFTjkG3fdXSQodEgQ48BamT3UaHqjzbtdSyvvQsoW5J1/c6.png","https://steemitimages.com/DQmVkqayb1LdhvWoWxKjefFEtDQ5BNZqdxd1TjEDgbEfKo3/c7.png","https://steemitimages.com/DQmNTLPJJydrJWHA5UcHGWJ5DqBEh8MnSjeqZPXEhGxEheM/c8.png"],"links":["https://steemit.com/c/@nothink/c-2-printf-printing-letter-in-console-2-learning-printf"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-07-20 08:26:42 |
last_update | 2017-07-23 12:18:45 |
depth | 0 |
children | 5 |
last_payout | 2017-07-27 08:26:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.734 HBD |
curator_payout_value | 0.436 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,898 |
author_reputation | 72,351,798,341 |
root_title | "초보자를 위한 C언어 강의! #3 변수 선언 하기 ('int, char, double, float')//Make a Changing number #3 (Learning 'int, char, double, float')" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 9,053,915 |
net_rshares | 523,264,040,143 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
kdj | 0 | 454,673,697,011 | 50% | ||
tata.lucette | 0 | 941,602,915 | 100% | ||
agile | 0 | 3,271,837,760 | 100% | ||
sesangsokuro | 0 | 56,177,099,120 | 6.94% | ||
lab106 | 0 | 3,715,180,382 | 100% | ||
alphacore | 0 | 199,362,420 | 0.1% | ||
idas4you | 0 | 2,195,902,779 | 100% | ||
waraphon | 0 | 1,096,984,849 | 100% | ||
nothink | 0 | 992,372,907 | 100% |
글 잘 봤습니다. 성의가 엄청 나네요^^; IDE는 visual studio 를 사용하는것이 좋을것 같습니다.
author | idas4you |
---|---|
permlink | re-nothink-c-3-int-char-double-float-and-dev-c-make-a-changing-number-3-learning-int-char-double-float-and-simple-dev-c-settings-20170721t015514967z |
category | kr |
json_metadata | {"tags":["kr"],"app":"steemit/0.1"} |
created | 2017-07-21 01:55:12 |
last_update | 2017-07-21 01:55:12 |
depth | 1 |
children | 1 |
last_payout | 2017-07-28 01:55:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 61 |
author_reputation | 17,982,895,258,625 |
root_title | "초보자를 위한 C언어 강의! #3 변수 선언 하기 ('int, char, double, float')//Make a Changing number #3 (Learning 'int, char, double, float')" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 9,142,018 |
net_rshares | 0 |
네
author | nothink | ||||||
---|---|---|---|---|---|---|---|
permlink | re-idas4you-2017721t181039155z | ||||||
category | kr | ||||||
json_metadata | {"tags":"kr","app":"esteem/1.4.6","format":"markdown+html","community":"esteem"} | ||||||
created | 2017-07-21 09:10:42 | ||||||
last_update | 2017-07-21 09:10:42 | ||||||
depth | 2 | ||||||
children | 0 | ||||||
last_payout | 2017-07-28 09:10:42 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 1 | ||||||
author_reputation | 72,351,798,341 | ||||||
root_title | "초보자를 위한 C언어 강의! #3 변수 선언 하기 ('int, char, double, float')//Make a Changing number #3 (Learning 'int, char, double, float')" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 9,174,043 | ||||||
net_rshares | 0 |
소스코드를 올리는 2가지 방법 참고하세요... https://steemit.com/kr-dev/@kdj/2mgzti
author | kdj |
---|---|
permlink | re-nothink-c-3-int-char-double-float-and-dev-c-make-a-changing-number-3-learning-int-char-double-float-and-simple-dev-c-settings-20170720t111111723z |
category | kr |
json_metadata | {"tags":["kr"],"links":["https://steemit.com/kr-dev/@kdj/2mgzti"],"app":"steemit/0.1"} |
created | 2017-07-20 11:11:12 |
last_update | 2017-07-20 11:11:12 |
depth | 1 |
children | 1 |
last_payout | 2017-07-27 11:11:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 64 |
author_reputation | 4,188,781,313,300 |
root_title | "초보자를 위한 C언어 강의! #3 변수 선언 하기 ('int, char, double, float')//Make a Changing number #3 (Learning 'int, char, double, float')" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 9,065,388 |
net_rshares | 1,160,670,067 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
nothink | 0 | 1,160,670,067 | 100% |
감사합니당~~!!
author | nothink | ||||||
---|---|---|---|---|---|---|---|
permlink | re-kdj-2017720t223546378z | ||||||
category | kr | ||||||
json_metadata | {"tags":"kr","app":"esteem/1.4.6","format":"markdown+html","community":"esteem"} | ||||||
created | 2017-07-20 13:35:48 | ||||||
last_update | 2017-07-20 13:35:48 | ||||||
depth | 2 | ||||||
children | 0 | ||||||
last_payout | 2017-07-27 13:35:48 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 9 | ||||||
author_reputation | 72,351,798,341 | ||||||
root_title | "초보자를 위한 C언어 강의! #3 변수 선언 하기 ('int, char, double, float')//Make a Changing number #3 (Learning 'int, char, double, float')" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 9,077,938 | ||||||
net_rshares | 0 |
뉴비는 언제나 응원!이에요. 팁! : 프로그래머, 개발자 관련글은 kr-dev태그를 보통 쓰더라구요. 6.94% 보팅 현재 보상량 : [ 평균 - 0.99 / 3개 / 합계 : 2.97 ] - kr-newbie 보안관 봇! (beta 0.5.0 - 2017/07/17)
author | sesangsokuro |
---|---|
permlink | re-c-3-int-char-double-float-and-dev-c-make-a-changing-number-3-learning-int-char-double-float-and-simple-dev-c-settings-20170720t084146343z |
category | kr |
json_metadata | {"tags":["kr-newbie"],"app":"steemup/0.1"} |
created | 2017-07-20 08:41:48 |
last_update | 2017-07-20 08:41:48 |
depth | 1 |
children | 0 |
last_payout | 2017-07-27 08:41:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 152 |
author_reputation | 6,031,583,772,229 |
root_title | "초보자를 위한 C언어 강의! #3 변수 선언 하기 ('int, char, double, float')//Make a Changing number #3 (Learning 'int, char, double, float')" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 9,055,007 |
net_rshares | 0 |