-Cself.lblText.text = NSLocalizedString(@"Hello", @"")//SwiftlblText.text! = NSLocalizedString("Hello""")The iphone language can be set up and run to fit, shown below, complete the relevant content in English and Chinese adaptation:Project name InternationalizationThe steps are the same as above, just a few different points.1, the file name is called Infoplist (. Strings)2, the content of the form ofCFBundleDisplayName = ""The landlord in the corresponding document in the following wording://适配中
Game programs or other functions are not very different from developers. The major difference lies in product design.
However, gaming is one of the largest and most complex applications in the software world, and the code scale is basically on the order of millions of lines. Therefore, the implementation requires careful architectural design and flexible application of programming languages and skills, otherwise, the legendary software crisis may eas
In Windows, I am still used to using vs2005, but now in Linux, C/C ++ programs are not as good as IDE. Although many people recommend the IDE, which is mainly developed as Java at the beginning of E, it does not feel good after installing the plug-in. One is that the smart completion function is slow in response and does not support the standard library well, the other is compilation, which is still troublesome. We cannot automatically generate a suit
A classic entry to WinSock to develop network communication programs
For many beginners, a common phenomenon in the development of network communication programs is that it is difficult to start. Many concepts s
control the memory, hard disk, and the like. These commands cannot be directly executed by the program to prevent malicious programs from damaging the system, this is a kind of protection for the CPU, and the loop 3 command can be directly called by anyone, and can be used as a user interface.
Programming:
Computer languages include interpreted and compiled languages.
Interpreted language: the source code is not compiled into a binary file at a time
Website Operation | Problem a large website project operation, inseparable from a team of close collaboration. In this team, it consists primarily of two parts of operations and development. However, in many aspects, such as experience, job role and cognition level, there are great differences between operators and developers, which will lead to contradictions an
1. Composition of the development environment
Editor Vim,vi
Compiler GCC
Debugger GDB
function library glibc
System Header File Glibc_header
2.GCC compilerPowerful and superior multi-platform compiler, GCC can compile and connect C, C + + language source programs into executable files.file with. c suffix, C language source code fileA file with a suffix of. h is a header that is
First, we learned that writing a mobile phone program is actually very simple. However, many people may not quite understand how to transfer the program to their mobile phones. If you don't believe it, try it. Whether you use a data cable or infrared Bluetooth, there is no way to get the programs on the computer to run on the mobile phone, nor to get the games on other people's mobile phones to run on their own mobile phones (normal data transmission
During the WindowsCE development process, the device may easily report the error "insufficient memory" during the running process, and then it will crash.
The memory of my current device is 64 MB in total. After the CE system is started, it will occupy part of the memory. The program has fewer available memory.
The following describes what programs are mainly used in my project:
1. Real-time polling for
") method Ah! Fully conform to the specification, but this makes the compiler and caller depressed, the program conforms to the rules but can not run, so the question, who's responsibility? Is the designer of the Client5 class, he violated the kiss principle (Keep It smile,stupid, that is, lazy principle), according to this design method should be a call, but now follow the specification but compile does not pass, which for designers and developers should be banned.For Client5.methoda ("China",
that does not explain why our example is not running in IDE tools such as Eclipse. That's because automatic compilation in the IDE doesn't reproduce the problem, and if you modify the constant class, the IDE tool automatically compiles all the reference classes, "smart" masks the problem, but the potential risk is still there, and I remember that Eclipse should have a portal set up for automatic compilation. You are interested to try it yourself. Note: The use of class file substitution is proh
For many beginners, network communication
Program Development, a common phenomenon is that it is difficult to start. Many concepts such as sync, async, block, and unblock are confusing for beginners, I only know it, so I don't know why.
The synchronous mode refers to the communication mode in which the sender sends the next packet without receiving the response from the receiver. asynchronous means that after the sender sends the data, the sender rec
The development and unlocking of WP7 seems to be unsigned for deployment.Program(Including self-developed and online cracked programs) there are limits on the number of apps, Student edition limited to 3, and development Edition 10. If it exceeds the deployment limit, the following message is displayed:
You have reached the maximum number of developer applicatio
[2]; at - for(i=0;i3; i++) - { - if(s[0]A[i]) - { -s[0]=A[i]; in } - } to for(i=0;i4; i++) + { - if(maxS[i]) the { *max=S[i]; $ }Panax Notoginseng } -cout"the largest number is:"Endl; the + return 0; A}Iv. Results of Operation:Five, Experience:Although this time the program is a very small program, but involves the closure of the development. After all, not a person to wri
During this period of time, I wrote a small script to record my development code volume on the development website. The Code is as follows:
#-*-Coding: UTF-8-*-# used to detect the current amount of code import sys, oscount = 0def readfile (File): Global count f = open (file, 'R ') read = f. readlines () For I in read: Count + = 1 F. close () def check (currentpa
1. Set up Android phone for USB debug modeOpen the developer options in your phone ->usb Debug2. Test through eclipse on the real machineWhen you don't use the real machine, the Android app with Eclipse is run and then the emulator is selected. After installing the USB drive of the mobile phone, or point run, the program will magically run on the real machine, the effect is the same as in the simulator, and the speed is much more than the simulator block.If you are still running on the emulator
the form do not execute in the form thread, all the actions of the form-related actions are all put into the form thread to execute, everyone's way, the problem naturally solved. Just the button text plus 1 per second, you can use the following way to write: Private voidButton1_Click (Objectsender, EventArgs e) {Thread T=NewThread (() = { for(inti =0; I -; i++) {Thread.Sleep ( +); This. button1. Invoke (NewAction (Delegate() {
1. Run the regedit command to open the Registry manager2. Locate the right-click Project Registration Form "HKEY_CLASSES_ROOT"Sub-menu functions are:Hkey_classes_root\*\shell menu item for any file right-click PopupHkey_classes_root\folder\shell the right-click popup menu for general folders and system files (folders and drives) worksHKEY_CLASSES_ROOT\Directory\shell partial pop-up for normal folder (folder only) right-click menuHkey_classes_root\drive\shell menu item for any drive (driver only)
Developing android programs is certainly the best if you can use a real machine.In linux, android phones do not use drivers to connect to linux. Unfortunately, they cannot be identified in eclipse. However, you only need the following sentence to solve the problem.1. First, we need to use the following command to monitor system information in real timeSudo tail-f/var/log/messages2. Connect the mobile phone to the usb interface at this time (the mobile
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.