Magic words:
psql -U postgres
If run with -E
flag, it will describe the underlaying queries of the \
commands (cool for learning!).
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
//๋๊ฐ์ ์์ ์ ๋ ฅ๋ฐ์ ๊ฒน์น๋์ง,์ ํ๋์ง,๋จ์ด์ ธ์๋์ง ํ๋ณ | |
#include<stdio.h> | |
#include<math.h> | |
typedef struct circle{ | |
double x,y,r; | |
}circle; | |
int circleRel(circle, circle); |
//์๋๋ฆฌ์ค์ ์ ๊ฐํด์ mystrlen(),mystrcmp(),mystrcpy(),mystrcat() ํจ์์์ฑ | |
#include<stdio.h> | |
#include<ctype.h> | |
int mystrlen(char *); //๋ฌธ์์ด ๊ธธ์ด๋ฅผ ๋ฐํ ๋ง์ง๋ง null๋ฌธ์๋ ๊ธธ์ด์ ํฌํจ x | |
int mystrcmp(char *, char *); //์ ๋ฌธ์์ด์ด ๋ท ๋ฌธ์์ด๋ณด๋ค ํฌ๋ฉด 1 ์์ผ๋ฉด -1 ๊ฐ์ผ๋ฉด 0 | |
void mystrcpy(char *,char *); //๋ท๋ฌธ์์ด์ ์๋ฌธ์์ด์ ๋ณต์ฌ | |
void mystrcat(char *,char *); //์๋ฌธ์์ด ๋ค์ ๋ท๋ฌธ์์ด์ ๋ณต์ฌ | |
void main(int argc, char *argv[]) |
//x,y์ขํ์์ ํ์ ์ด ์ฃผ์ด์ง ์ง์ฌ๊ฐํ ์์ ์์นํ๋์ง ๊ฒ์ฌ | |
#include<stdio.h> | |
#include<stdlib.h> | |
typedef struct point{ //์ขํ๊ฐ์ ์ ์ | |
int x; | |
int y; | |
}point; | |
typedef struct rect{ |
#include<stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
FILE *fp1,*fp2; | |
char ch; | |
fp1 = fopen("filecopy.cpp","r"); | |
if(fp1 == NULL){ | |
printf("Error: %s does not exist!\n","filecopy.cpp"); |
#include<stdio.h> //์คํํ์ผ๊ณผ ๊ฐ์ ์์น์ ์์ด์ผ ํ์ผ์ ์ฐพ๋๋ค | |
#include<stdlib.h> | |
int main(int argc, char *argv[]) | |
{ | |
FILE *fp1,*fp2; | |
char ch; | |
int start,end,n; | |
if(argc == 2) |
#include<stdio.h> //1byte์ ํ๋ฌธ(์์ด) | |
#include<string.h> | |
int main(int argc, char *argv[]) | |
{ | |
char str[80],*ps,*pe; | |
int res; | |
if(argc == 2){ | |
strcpy(str,argv[1]); |
#include<stdio.h> //2byte์ ํ๋ฌธ(ํ๊ธ) | |
#include<string.h> | |
int main(int argc, char *argv[]) | |
{ | |
char str[80],*ps,*pe; | |
int res; | |
if(argc == 2){ | |
strcpy(str,argv[1]); |
์ต๊ทผ ์ธ๊ณต์ง๋ฅ์ ํ์ฉํ ์ฑ๋ด์ ๋ํ ๊ด์ฌ์ด ๋์์ง๊ณ ์์ต๋๋ค. ์ฑ๋ด ์ค๊ณ์ ๊ดํ ์ข์ ๊ธ์ด ์์ด ๋ฒ์ญ์ ํด๋ณด์์ต๋๋ค. ์ด ๊ธ์ IBM DeveloperWorks์ ๊ธฐ์ฌ๋ Michael Yuan์ ๊ธ์ ๋ฒ์ญํ ๊ฒ์ผ๋ก ์์ญ์ด ์์ต๋๋ค. - ๊น์ ์ฃผ([email protected])
์ฌ์ฉ์๋ ์ฑ๋ด์ด ๋งค์ฐ ๊ฐ๋จํ๊ณ ์ต์ํ์ ์๊ตฌ๋ง ํ๊ธฐ์ ์ข์ํฉ๋๋ค. ๊ทธ๊ฒ์ ๋ํ์ ๋ฌธ์ ๋ฉ์์ง์ฒ๋ผ ๊ฐ๋จํด์ง ์ ์์ต๋๋ค. ๋ํ, ์ฌ์ฉ์๋ ์์ ์ด ์ ํธํ๋ ๋ฉ์์ง ์ฑ์ ๊ณ์ ๋จธ๋ฌผ๊ธฐ๋ฅผ ์ ํธํฉ๋๋ค. ์ฑ, ์น URL, ๋ฉ๋ด, ๋ฒํผ, ๊ด๊ณ , ํฌ๋กฌ ๋ฐ ๊ธฐํ ์์๋ฅผ ํ์ํ์ง ์๊ณ ๋ฐ๋ก ๋ชฉํ๋ฅผ ๋ฌ์ฑํ๊ณ ์ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ์ด ๋จ์์ฑ์ ํฐ ์ค๊ณ ๊ณผ์ ๋ ์ ์ํฉ๋๋ค. ์ฑ๋ด์ ์ฌ์ฉ์์ ๋ง์ ์ ํํ๊ฒ ์ดํดํ๊ณ ์ ์ ํ ํ๋ํด์ผ ํฉ๋๋ค. ์ด๊ฒ์ ์ค๋๋ ์ต๊ณ ์ ์์ฐ์ด AI (์ธ๊ณต ์ง๋ฅ)์๊ฒ๋ ๋งค์ฐ ์ด๋ ค์ด ๊ณผ์ ์ ๋๋ค.
ํ์ฌ ์ํ์ AI์์๋, ๋ํ์ ๋ฌธ์ ๋ฉ์์ง ๋๋ ๋ํ์(Conversational) UI, ์ฆ CUI๋ (์ํ๊น๊ฒ๋) ๊ฑฐ์ ํญ์ ์ ์ค๊ณ๋ ๊ทธ๋ํฝ UI(GUI)๋ณด๋ค ์ด๋ฑํฉ๋๋ค. GUI์ ๋น๊ตํ์ฌ CUI๋ ์ด๊ธฐ ๋จ๊ณ์ ์์ต๋๋ค. ์ปค๋ฎค๋ํฐ๋ก์ ์ฐ๋ฆฌ๋ ์ฌ์ ํ CUI์ ๋์์ธ ํจํด๊ณผ ์ฐ์ ์ฌ๋ก๋ฅผ ๋ชจ์ํ๊ณ ์์ต๋๋ค. ์ด ํํ ๋ฆฌ์ผ์์๋ ์ฑ๋ด์ด ์ ์คํจํ๊ณ ์ฑ๊ณตํ ์ ์๋์ง ์ค๋ช ํฉ๋๋ค.
import java.time.*; | |
import java.time.format.DateTimeFormatter; | |
import java.time.format.FormatStyle; | |
import java.time.temporal.ChronoUnit; | |
import java.time.temporal.TemporalAdjusters; | |
import java.util.*; | |
import static java.time.temporal.TemporalAdjusters.*; | |
public class Java8DateTimeExamples { |