본 강좌는 C언어의 문자열을 다루는 함수에 대해서 살펴보겠습니다.
getchar(), putchar()라는 문자열 처리함수는 입력된 문자열에서 Enter키가 들어올 때까지 버퍼에 넣어서 Enter키가 들어오면 버퍼에 있는 문자열을 한꺼번에 처리하는 방식입니다. 반면 MS-DOS 에 포함된 conio.h에 정의된 _getch(), _putch() 함수는 버퍼링을 하지 않고 입력문자를 처리하는 방식입니다.
본 강좌에서는 두가지 방식에 대해서 예제를 통해 살펴보도록 하겠습니다.
- Youtube 강의동영상
https://youtu.be/wOrjr8XprnI
- 코드는 여기에서 다운 받으세요
https://github.com/dongupak/Basic-C-Programming
본 강좌는 C언어의 문자열을 다루는 함수에 대해서 살펴보겠습니다.
getchar(), putchar()라는 문자열 처리함수는 입력된 문자열에서 Enter키가 들어올 때까지 버퍼에 넣어서 Enter키가 들어오면 버퍼에 있는 문자열을 한꺼번에 처리하는 방식입니다. 반면 MS-DOS 에 포함된 conio.h에 정의된 _getch(), _putch() 함수는 버퍼링을 하지 않고 입력문자를 처리하는 방식입니다.
본 강좌에서는 두가지 방식에 대해서 예제를 통해 살펴보도록 하겠습니다.
- Youtube 강의동영상
https://youtu.be/wOrjr8XprnI
- 코드는 여기에서 다운 받으세요
https://github.com/dongupak/Basic-C-Programming
Surat tugas menunjuk Dr. Dwiza Riana sebagai penanggung jawab dan Achmad Rifai sebagai ketua pelaksana panitia pengabdian masyarakat STMIK Nusa Mandiri Jakarta untuk merancang company profile organisasi Karang Taruna Ragunan menggunakan blogspot pada 2-4 November 2018 di kampus STMIK Nusa Mandiri Jakarta.
This document summarizes a study analyzing sales data at PT. Panca Putra Solusindo using the Apriori and FP-Growth algorithms. The study aimed to determine the most frequently purchased electronic products to help develop marketing strategies. Transaction data from 2016 was analyzed using the Apriori and FP-Growth algorithms in Weka software. The results showed the top selling items, with PCs and HP notebooks having the highest support over 46% and 30%. The algorithms helped identify best-selling products to optimize promotions.
This document compares the Topsis and Saw methods for selecting tourism destinations in Indonesia. It analyzes 11 potential tourism destinations based on 5 criteria: location, cost, transportation, distance, and visitation time. The Saw method ranks Toba Lake as the top choice, while Topsis ranks Raja Ampat in Papua as number one. Both methods are part of multi-attribute decision making and require assigning weights to criteria for calculations. The study aims to help increase tourism by determining criteria for decision making and weighting alternatives.
Surat tugas menunjuk Dr. Dwiza Riana sebagai penanggung jawab dan Achmad Rifai sebagai ketua pelaksana panitia pengabdian masyarakat STMIK Nusa Mandiri Jakarta untuk merancang company profile organisasi Karang Taruna Ragunan menggunakan blogspot pada 2-4 November 2018 di kampus STMIK Nusa Mandiri Jakarta.
This document summarizes a study analyzing sales data at PT. Panca Putra Solusindo using the Apriori and FP-Growth algorithms. The study aimed to determine the most frequently purchased electronic products to help develop marketing strategies. Transaction data from 2016 was analyzed using the Apriori and FP-Growth algorithms in Weka software. The results showed the top selling items, with PCs and HP notebooks having the highest support over 46% and 30%. The algorithms helped identify best-selling products to optimize promotions.
This document compares the Topsis and Saw methods for selecting tourism destinations in Indonesia. It analyzes 11 potential tourism destinations based on 5 criteria: location, cost, transportation, distance, and visitation time. The Saw method ranks Toba Lake as the top choice, while Topsis ranks Raja Ampat in Papua as number one. Both methods are part of multi-attribute decision making and require assigning weights to criteria for calculations. The study aims to help increase tourism by determining criteria for decision making and weighting alternatives.
1. Array Satu Dimensi
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
int list[4]={10,11,12,13};
int index;
for (index=0;index<4;index++)
{
cout<<"Nilai Index ke - "<<index<<" yaitu = ";
cout<<list[index]<<endl;
}
getch();
}
2. Array Satu Kasus
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <iomanip.h>
main()
{
char buku[5][15];
int jml[5],i;
double harga[5],bayar[5];
for(i=1;i<=2;i++)
{
cout<<"Data Ke-"<<i<<endl;
cout<<"Input buku=";cin>>buku[i];
cout<<"Input jml buku=";cin>>jml[i];
cout<<"Input harga buku=";cin>>harga[i];
bayar[i]=jml[i]*harga[i];
}
clrscr();
4. Array dua Dimensi
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
int list[2][4]={{10,11,12,13},{23,24,25,26}};
int baris,kolom;
cout<<"Ordo dua baris n empat kolom"<<endl;
cout<<endl<<endl;
for (baris=0;baris<2;baris++)
{
for(kolom=0;kolom<4;kolom++)
{
cout<<list[baris][kolom];
cout<<" ";
}
cout<<endl;
}
getch(); }