#include<stdio.h>
int abs(int a);
void sort(float a[],int n);
float fpow(float a,float b);
int ipow(int a,int b);
long long factorial(int n);
int main()
{
}
long long factorial(int n)
{
if(n==1)
return 1;
return n*factorial(n-1);
}
int ipow(int a,int b)
{
int i,a1=a;
if(b==0)
return 1;
//printf("%d %d\n",a1,b1);
for(i=0;i<b-1;i++)
{
a*=a1;
//printf("%f\n",a);
}
return a;
}
float fpow(float a,float b)
{
int i,b1=b,a1=a;
//printf("%d %d\n",a1,b1);
for(i=0;i<b1-1;i++)
{
a*=a1;
//printf("%f\n",a);
}
return a;
}
int abs(int a)
{
if (a<0)
return -a;
else
return a;
}
void sort(float a[],int n)
{
int i,j,b,b2,min;
for(i=0;i<n;i++)
{
min=9999999;
b=i;
for(j=i;j<n;j++)
{
if(min>a[j])
{
min=a[j];
b=j;
}
}
b2=a[i];
a[i]=a[b];
a[b]=b2;
}
}
- 앞으로 Study For Us HOSTING 카톡 채널에서 장애 소식 안내합니다. (클릭시 카톡 채널 이동)
일주일 동안 열지 않기
- 단축키 안내 m=메인페이지 / n=공지 / f=자유게시판 / h=호스팅 페이지 / q=FAQ / c=출석체크 / p=패널접속 / s=스포티콘 / w=스포어 위키일주일 동안 열지 않기
코드
2018.05.12 22:47
내가 만든 함수 모음집 2
조회 수 403 추천 수 0 댓글 0
라이선스 | GPL v2 |
---|
TAG •
Who's gimmepoint
-
폰트를 자동 설치하는 코드
-
파이썬을 이용한 텔레그램 새 글 알림 (허접합니다)
-
파이선 셸에서 실행하면...?
-
클라이언트단에서 이미지 리사이징
-
컴퓨터의 uuid 얻기
-
잘못 쓰면 컴퓨터가 날아가는 코드
-
유튜브에 약간의 기능을 추가 해주는 크롬 확장 프로그램.
-
엑셀파일 불러서 히스토그램 그려주는 함수
-
엑셀 읽어서 그래프 그려주는 함수
-
아주 간단한 기초 C++
-
세린서버에서 시도중인 백업 스크립트 입니다.
-
새 글 자동 댓글 스크립트 (AutoHotkey)
-
사이트 서버 이전 (또는 미러링 사이트 구축) 쉽게하는 스크립트
-
브라우저 언어에 따라 다른 폴더를 사용하는 PHP 코드
-
미완성 받아쓰기 (C)
-
매우 특이한 버그
-
도박 중독자를 위한 광고 차단 규칙
-
내가 만든 함수 모음집 2
-
내가 만든 함수 모음집
-
내가 만든 사칙연산 계산기