Hello World3 C++ Hello 프로그램 C++로 가장 기본이 되는 프로그램을 만들어 보면 아래와 같다. #include int main() { std::cout 2023. 2. 15. C# 파일 읽기와 쓰기 C# 의 기본 프로그램 중의 하나이다. using System; using System.IO; class program { public static void Main() { using (StreamWriter w = File.AppendText("log.txt")) { w.WriteLine("Test 1"); w.WriteLine("Test 2"); } using (StreamReader r = File.OpenText("log.txt")) { string line; while ((line = r.ReadLine()) != null) { Console.WriteLine(line); } } } } 위의 프로그램에 더하여서, 파일이 존재하는지 Check 하는 방법은 아래와 같다. public string p.. 2023. 2. 12. Java, Hello World 프로그램을 Jar 파일로 만들기 (Java Swing 프로그램) Java, Jar 파일 만들기 (Java Swing 프로그램)이다. 1) Java file을 만든다. (Java Swing 사용) HelloWorldSwing.Java 에 저장한다. import javax.swing.*; public class HelloWorldSwing { /** * Create the GUI and show it. For thread safety, * this method should be invoked from the * event-dispatching thread. */ private static void createAndShowGUI() { //Create and set up the window. JFrame frame = new JFrame("HelloWorldSwing");.. 2021. 9. 25. 이전 1 다음