Two days ago, I suddenly remembered two games that I used to like very much: Emperor and the colonial plan. This is a game under the old dos. Although I have never done customs clearance, however, I still think it is quite missing, so I searched the internet for a long time and finally got to the game and strategy. It is easy for the emperor to run in XP, but there is always a landscape in the colonial plan
Although Windows XP provides a Compatibility Wizard to help us run those old programs, it is not easy to use, such as many schools are still using the Turbo C, in XP run a regular flower screen. At this point, we can use the start command to solve.
In the Windows\Command folder under the Windows installation directory, there is a DOS program Start.exe, a tool th
In the school training these days, the teacher took us to start a deep review of Java. This is the first day of the content OHFor "Java setting environment variables and running Java programs under DOS", many beginners are unfamiliar, but understanding this is very important for later learning.Http://blog.sina.com.cn/s/blog_639403840100i5rt.htmlLet's look at what DOS
), enter cmd into the consoleWe can see his path in "c:\users\administrator>" according to the above diagram, we will change the path to the folder where we saved the Java program, and then we compile the Java program, here we use the following command:The CD enters the user's home directory;CD ~ Enter the user's home directory;CD-Returns the directory where the directory was before it entered;Cd.. Return to the parent directory (if the current directory is "/", then "/"; "..." after execution)
Compilation and operation of Java programs containing packages and referencing third-party jars in a DOS environment1. Program Directory OrganizationBin:class File generation DirectoryLib: third-party jar package DirectorySRC: source Program Files Directory2. Program code:3. Program compilationJavac–classpath.;.. \lib\commons-lang-2.3.jar-d. \ Com\test.java4, the compiled program directory:5. Running progra
The first step: Modify the hidden file extension in the folder, so that its file extension display all;The second step: Create a new text file in the folder and change its Extension property to the Hello.java file name extension;The third step: right-click Open mode with txt text openFourth step; Write code:Class Hello{public static void Main (String [] args){System.out.println ("Hello World");System.out.println ("Hello World");System.out.println ("Hello World");System.out.println ("Hello World"
Whether DOS batch processing can be performedProgramRead the configuration file, similar to the INI file?
I have found a feasible solution. Examples of programs and configuration files are as follows.
The purpose of this article is to record and prepare materials for future reference.
Configuration file:
# Configuration file, parsing configuration variables # One Line for each configuration file
Program | execution
The Process class in C # can easily invoke external programs, so we can call the Cmd.exe program
Add the parameter "/C" + the command to execute to execute a DOS command(/C indicates that the cmd.exe/k parameter is closed after the command specified by the execution parameter is not closed cmd.exe)
1 private string Runcmd (String command)2 {3//In fact, a process type that inspires a uniq
This afternoon, glibc2.9 has been compiled.These critical programs are missing or too old: As LD
Error. Check the Internet. GenerallyThese critical programs are missing or too old:
It is indicated that the software version is too low or too high. I see my version is too high. I used to use ubuntu9.04 without any pr
spent three weeks rewriting the module. Today, I remember that my boss was standing behind me looking at me, and I was in the middle of a bucket of sweat to fix the "super Beautiful" module I rewrote one after another bug. Since then, I have not rewritten the code anymore unless there is a significant benefit.
Reviews: This is called slaughter-type programming. This case tells us two reasons, 1) the maintenance code should be carried out in the most conservative way. 2) before refactoring
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.