블로그
-
[java] print와 println, printf 비교 및 printf에서 사용되는 서식 지정자 종류
123456789101112131415public class PrintfTest { public static void main(String[] args) { String name=" is %s\n", name); /* * printf에서 사용되는 서식 지정자의 종류 * 문자열 %s * 정수 %d * 실수 %f * 문자 한 자 %c */ }}Colored by Color
blog.naver.com · 2016.05.04
-
[java]doc, 문서화 주석(documentation comment)
. * @author Administrator * */public class MainTest { /** * * @param args */ public static void main( { System.out.println("bongha"); } /** * * @return */ public int numPrint(){ return 1; }}Colored by Color
blog.naver.com · 2016.05.04
-
LDPE 비닐 필름롤 재생원료 공급
*LDPE large bag rolls -Color : Black and White -Thickness: 7-8 mil -Length: 300 ft rolls(About 270 meter )--45 kgs/per roll -Q'ty: 100-200 mt (Black/White: 50%/50%)/Monthly -Price: US$750/mt/CFR Asia main port
blog.naver.com · 2016.04.13
-
소풍 (백준 P1242)
== K) return 1; else if(idx < K) K--; N--; return 1 + solve(N, M, K, idx); } public static void main = in.nextInt(); K = in.nextInt(); in.close(); System.out.println(solve(N, M, K, 1)); }} Colored by Color
blog.naver.com · 2016.02.16
-
[쉽게 풀어쓴 C언어 Express] 제6장 - 조건문
아래처럼 소스코드를 입력할 수 있도록 도와주는 사이트인데요, 이건 칼라 스크립터(color scripter)라는 사이트에서 제공해주는 기능입니다. 단, switch문을 사용한다. 1234567891011121314151617#include int main() { char ch; printf("문자를 입력하시오: "); scanf
blog.naver.com · 2015.12.10
-
명품 C++ programming Chapter 06 실습문제 8번
Colored By Color Scripter™#include #include #include #include using namespace std; const string DEFAULT = "main()"; class Trace { private: static vector tagVec; static vector msgVec; public: static void Put
blog.naver.com · 2015.09.10
-
열혈 C++ chapter 2 - 6
StdCPPFunc.cpp 1234567891011121314151617#include #include #include #include using namespace std; int main "%s: %f \n", str1, sin(0.14)); printf("%s: %f \n", str2, abs(-1.25)); system("pause");} Colored by Color
blog.naver.com · 2015.08.13
-
열혈 C++ chapter 2 - 5 malloc & free 를 대신하는 new & delete
char * MakeStrAdr(int len){ char * str = (char*)malloc(sizeof(char) * len); return str;} Colored by Color 123456789101112131415161718192021#include #include using namespace std; char * MakeStrAdr(int len); int main
blog.naver.com · 2015.08.13
-
열혈 C++ chapter 2 - 4 참조자와 함수
123456789101112131415161718192021222324#include using namespace std; void SwapByRef2(int &ref1, int &ref2); int main void SwapByRef2(int &ref1, int &ref2){ int temp = ref1; ref1 = ref2; ref2 = temp;} Colored by Color
blog.naver.com · 2015.08.13
-
문제 1 - 1
문제 1 사용자로 부터 5개으 정수를 입력받고 그 정수들의 합을 출력 12345678910111213141516#include int main(){ int num, sum = 0; += num; } std::cout << "합계: " << sum << std::endl; system("pause");} Colored by Color
blog.naver.com · 2015.08.06