본문 바로가기

언어/_C프로그래밍(알고캠퍼스)

알고캠퍼스 10급 심화문제 28번 '우라펀과 오코사' 해결법(답) http://pastebin.com/NnZ6jqgD /* 영남이공대학교 사이버보안과 14학번 Yeungnam University College [IN KR]http://www.ync.ac.kr/ */ #include #include using namespace std; int main(){ int n,okosa,urapun; ifstream in ("input.txt"); ofstream out ("output.txt"); in >> n; okosa = n/2; urapun = n%2; out 더보기
알고캠퍼스 C++ 10급 21차시 증가법의 활용 문제풀기 답 http://pastebin.com/bc1SsLnK /* 영남이공대학교 사이버보안과 14학번 Yeungnam University College [IN KR]http://www.ync.ac.kr/ */ 더보기
알고캠퍼스 C++ 10급 20차시 변수의 활용 문제풀기 답 http://pastebin.com/wc7S4vqf /* 영남이공대학교 사이버보안과 14학번 Yeungnam University College [IN KR]http://www.ync.ac.kr/ */ 더보기
알고캠퍼스 C++ 10급 21차시 증가법 예제 설명 http://pastebin.com/sjjjfKAp #include using namespace std; void main(){int n = 10;while(n 더보기
알고캠퍼스 10급 19차시 문제풀기답 http://pastebin.com/1D8kxwPY #include #include #include using namespace std; int main(){int a, b, c; // a, b, c int선언 ifstream inStream; // input 변수선언inStream.open("input.txt"); // input 파일열기 ofstream outStream; // output 변수선언outStream.open("output.txt"); // output 파일열기 inStream >> a >> b; // input 파일의 a, b 읽기 c = a + b ; outStream 더보기
10급 15차시 문제2번 백년계산 http://pastebin.com/F71ra42c #include using namespace std; int main() { __int64 a; a=(__int64)100*365*24*60*60; printf("%I64d\n",a); return 0; } /* int64는 8바이트(64비트)의 정수형으로 4바이트인 int보다 큰 숫자를 표현합니다. %I64d = int64 와 %d의 조합(%d는 10진수 정수) */ 더보기
10급 15차시 3번문제 다리 수 세기 http://pastebin.com/WaAGDFg2 #include using namespace std; int main() { int a,b,aleg,bleg,w; a=1234; b=5678; aleg=a*2; bleg=b*4; w=aleg+bleg; cout 더보기
VC++ 입문 10급 15차시/ 할당문2 사다리꼴 문제 답 http://pastebin.com/GBY1Hgx1 #include using namespace std; int main() { double a,b,h,w; a=123.45; b=67.89; h=5.84; w=(a+b)*h/2; cout 더보기
VC++ 입문 10급 14차시/ 변수의 할당4 답 C++ 소스입니다. - Pastebin 에서 보기 - http://pastebin.com/Et0xBqLd #include using namespace std; int main() { int ocosa, ura, a; a=5; ocosa=a/2; ura=a-ocosa*2; cout 더보기