분류 전체보기
-
-
frameTIL(today i learned)/java 2020. 9. 15. 21:47
프래임은 쉽게말해 스케치북을 평평하게 받쳐주는 책상이라생각하면된다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import javax.swing.JFrame; class myframe extends JFrame { public myframe() { setTitle("실험중 "); setSize(300,300); setVisible(true); } } public class frame { public static void main(String[] args) { // TODO Auto-generated method stub myframe my=new myframe(); } } Colored by Color Scripter cs
-
Flood-Fill algorithmTIL(today i learned)/C++ 2020. 9. 11. 23:17
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 #include #include using namespace std; int counter = 0; int x = 1, y = 1; vector number; bool flood_fill[10][10] = { 0 }; void calculator(int x, int y); void alpha() { if..
-
EOF와 -1TIL(today i learned)/java 2020. 9. 11. 12:31
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import java.io.FileReader; import java.io.IOException; public class buffer_stream_move { public static void main(String[] args) { // TODO Auto-generated method stub try { FileReader fr=new FileReader("C:\\windows\\system.ini"); char []buf=new char[1024*2]; while (true) { int n=fr.read(buf); System.out.println(buf); System.out.p..
-
버퍼 한글 출력TIL(today i learned)/java 2020. 9. 10. 23:25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.OutputStreamWriter; public class buffer_stream { public static FileReader FR=null; @SuppressWarnings("resource") public static void main(String[] args) { // TODO Auto-generated method stub ..