C/c ++ program written in notepad is executed in WindowsZookeeper
1. Create a New 1.cin desktop with the following content:
2. Open the cmd command line window, enter E: \ Installed \ CodeBlocks \ MinGW under the CodeBlock installation directory, and then execute mingwvars. bat
3. Go to the directory where 1.C is located:
4. Execute compilation and other actions
5. Run the code using the VC com
PS: This article is not an article about the high-tech content of WP. It is just a small example. The article introduces the basic knowledge of WP.
I have recently studied WP7 development and read many articles by strong people in the garden, which has benefited a lot. Of course, you still need to do it on your own, and you have made a small Demo (Notepad application). This application mainly records user input information and can be saved to files, w
Summary:This article is a simple Notepad developed using Python, combined with tkinter.The operating environment of this article: ubuntu,python2.7, using Pycharm for code editing, the individual likes its code auto-completion function.I want to learn a bit more about Python and try to do something today using python, combined Tkinter to make a simple cross-platfo
To write Java programs, the Java SDK is essential, Mac OS System comes with the SDK, if you feel that the version is too low, you can go to the official website to download the latest.Open the terminal and create a new Helloworld.java file:Vim Helloworld.javaStart writing programs, (for everyone to learn better, please refer to the figure of the code, to discard the pleasure of copying and pasting)Next save close, terminal input:Javac Helloworld.javaYou can see more than one. class file, which i
Simple introduction to notepad ++ custom syntax highlighting and automatic complementingRecently, it is too painful to write a simple script in an informal language and edit it in a notepad that comes with windows, I want to find a tool that can enable syntax highlighting and auto-completion functions in development so
1. Download and install the Go language:https://golang.org/dl/Choose the corresponding platform, we recommend using MSI installation package, this will help you configure the environment variables (may need to restart)The corresponding environment variables are:Goroot-c:\go\path-; C:\Go\bin2. Installation notepad++ no more talking.3.notepad++ Installation Plugin: GONPPRun results are displayed on the right
Implement a simple Notepad by using the Java Swing, Io, to open the specified text file, then load the contents of the text file into the swing component, and then edit the Notepad contents in the Swing component. You then save the edited content to the text file with the Save option for the menu. The code is as follows:
Copy Code code as follows:
Im
This example describes the simple Notepad Java implementation code. Share to everyone for your reference. Specifically as follows:
The complete code is as follows:
Copy Code code as follows:
Import java.awt.*;
Import java.io.*;
Import java.awt.datatransfer.*;
Import java.awt.event.*;
public class Main extends Frame implements ActionListener {
Private static final long serialversionuid = 1
This tutorial is to introduce ps simple steps to my friends on the feet to draw a realistic method of ball pen effect painting on the notepad. the effect produced by the tutorial is very real, and the method is very simple, we recommend that you go to the feet Home. if you like it, you can follow the tutorial to learn it. this tutorial introduces you to the Frien
notepad++ build Python Simple development environment (NPPEXEC plugin version)Original address: http://blog.sina.com.cn/s/blog_55eb21950101daty.html1. Open notepad++, select menu Plugin (plugin)->plugin manager->show Plugin Manager, open the Plugins manager, find Available in the Nppexec tab2. Tick nppexec, then install, download done, all Yes,ok3. Restart the
use the following statement to generate a simple batch program:
Copy Code code as follows:
Set classpath=e:\bluemsun\tomcat\apache-tomcat\apache-tomcat-7.0.55\lib\servlet-api.jar;%classpath%
javac-d E:\bluemsun\tomcat\apache-tomcat\apache-tomcat-7.0.55\webapps\mm\WEB-INF\classes%1
Pause
The first sentence is to set the environment variable, and we all know that Tomcat needs mo
its size.Adjust the size of dynamically created controlsIn general, if the window size can be adjusted, you always want to write some code to dynamically adjust the size of the controls you create in so that they are always reasonable.[Cpp]GetClientRect (hwnd, rcClient );HEdit = GetDlgItem (hwnd, IDC_MAIN_EDIT );SetWindowPos (hEdit, NULL, 0, 0, rcClient. right, rcClient. bottom, SWP_NOZORDER );Because there is only one control, it is relatively simple
If I have the same habits as below, this small software may be helpful:
1. I like to open notepad and paste something, but I am too lazy to save it.
2. Many pasted items are often useful.
Therefore, the software features are also simple. version 0.1 is a textbox with an automatic storage function, and version 0.2 has been upgraded, including:
1. The automatically saved content is still named by time,
Qt is a cross-platform, native development framework for all major operating systems, including Linux, Windows, Macs, Symbian, and Maemo. This article describes a simple notepad implemented under Windows with QT programming, which is interesting to learn about QT programming. I am also just in touch with QT programming, I think QT is relatively easy to learn in other languages. This is my QT creator implem
106Bw.write ( This. Jta.gettext ());107}Catch(Exception e) {108 e.printstacktrace ();109}finally{ the Try {111 bw.close (); the}Catch(IOException e) {113 e.printstacktrace (); the } the } the }117 }118}The results are as follows:Click the File button, click the Open menu item, select a text file, the effect is as follows:When opened, the content is displayed as follows:Modify the content slightly, save as a file named SSS,
: (ID) Sender {NSString *name=self. title. Text; Assigns the input text in the caption to a pointer such as nameNSString *path=[nsstring stringwithformat:@ "/users/apple/desktop/%@", name];//the "address" you want to save to a pointer variable of pathNSString *content=[nsstring Stringwithcontentsoffile:path encoding:nsutf8stringencoding error:nil];// Remove the file from the address to the contentSelf. Text. text=content;//the text in the content is displayed in the text box of the text view}-(v
This example describes a simple Notepad for Java implementations. Share to everyone for your reference. Specifically as follows:
I feel like this is not as good as I used to write with Windows API ...
JDK version:1.7.0
The effect is shown in the following illustration:
The source code is as follows:
Import java.io.*;
Import java.awt.*;
Import java.awt.event.*;
/** * The Main Window * @au
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.