study
-
[C언어] scanf, printf를 사용하여 세개의 수를 입력받아 곱한 값을 출력하기study 2012. 3. 13. 23:38
오늘 포스팅할 글은 c언어의 기초이자 많이 사용하게되 표준 입출력함수인 scanf 와 printf를 이용한 간단하게 세가지의 수를 입력받아 모두 곱한값을 출력하는 프로그램을 만들겠습니다. 4번 코드 : int를 사용하여 a,b,c,gob(곱)를 선언해줍니다. 5번 코드 : pritnf(출력함수)를 이용하여 사용자에게 정보를 알려줍니다. 6번 코드 : scanf(입력합수)를 이용하여 4번에서 선언한 a,b,c에 값을 입력받게 해줍니다. %d는 인수를 10진수로 출력하는 변환문자입니다. 7번 코드 : 4번에서 선언한 gob(곱)에 a*b*c (세수의 곱) 계산을 해줍니다. 이때 계산의 결과는 선언한 gob(곱)에 지정됩니다. 8번 코드 : printf를 사용하여 출력합니다 7번 코드에서 계산된 값을 gob이..
-
Wi-Fi 기술 3G, 4G 기술의 정의와 장점, 단점study 2012. 3. 9. 12:02
Wi-Fi = Wireless Fidelity 국문으로는 근거리 무선망으로 유선LAN 형태인 인터넷의 단점을 보완하기 위해 고안된 기술로, 인터넷 네트워크의 말단에 위치해 필요 없는 배선 작업과 유지관리 비용을 최소화하기 위해 널리 쓰이고 있다. 처음에는 군용 네트워크로 개발되었다가 상업화 되었다. 단점으로는 근거리 무선망은 이동 중에는 사용할 수 없으며 송수선거리가 짧아 특정한 거리에서만 사용가능하다. 3G 2002년 12월에 상용화되어 이전 통신기술인 2G에서 발달한 음성, 문자, 사진, 동영상등의 다양한 데이터를 전송 가능한 것이 큰 특징이다. 전송속도는 144K~2.4Mbps로 이전의 2G(14.4 ~ 64kbps)보다 월등히 빠른 속도를 장점으로 가지고 있다. 다운로드 속도로는 800MB동영상 ..
-
버블배열, 정렬 (Bubble Sort)study 2012. 1. 14. 19:55
버블배열, 정렬 (Bubble Sort) 인접한 두 개의 자료를 비교하여 자리를 교환하는 방법으로 정렬하는 것을 버블 정렬(bubble sort)이라 한다. 다섯 장의 숫자 카드로 버블 정렬하는 과정을 나타내면 다음과 같다. 1. 다섯 장의 카드를 임의의 순서대로 나열하여 놓는다. 2. 왼편 두 장의 카드를 비교하여 작은 숫자는 왼쪽, 큰 숫자는 오른쪽에 오도록 위치를 바꾼다. 3. 두 번째 카드와 세 번째 카드의 숫자를 비교 한다. 비교 결과 위치를 바꿀 필요가 없으므로 그대로 둔다. 4. 세 번째 카드와 네 번째 카드의 숫자를 비교하여 위치를 바꾼다. 5. 마지막으로 네 번째 카드와 다섯 번째 카드를 비교하여 위치를 바꾼다. 마지막 카드까지 작업을 수행한 결과 가장 큰 숫자 카드는 맨 오른쪽으로 이동..