natural numbers: For any natural number N, if n is an even number, divide it2. If n is an odd number, multiply it by 3 and then add 1. After a finite operation, we can get the natural number 1. People call this discovery of Gu jiaojingfu a "Gu Jiao conjecture ".
Requirement: write a program, input a natural number N on the keyboard, and print the entire process of N after a finite operation.
Analysis: the iteration variable is defined as N. According to the content of the grain angle conjecture
setting non-executable file pathExpand restores the DOS file fasthelp to quickly display help informationFC file comparison interink start serverSetver sets intersvr to start the clientReplacing the qBASIC integration environment with the SUBST pathVsafe anti-virus unformat restore a formatted diskVer displays DOS version number smartdrv sets disk acceleratorVol display disk volume number LH mount program into high-end memoryCtty change control devic
questions are: arrange the size, find the maximum value, find the minimum value, and so on, or analyze each number in case of complexity, replace AABA with BBAB. Of course, if you are unfortunate enough to encounter a troublesome pointer problem or a large-sized problem, you will not leave these types regardless of the problem.
In the DOS environment, run the EDIT PROG1.ASM command to call up the editing program. EDIT is a text editing program provided by DOS, and PROG1.ASM is the source code f
language is considered a programming language if it is turing complete. as a consequence, HTML and XML are not considered programming languages. this also holds for Data Query Language SQL. SQL is not a programming language because it is, for instance, impossible to write an infinite loop in it. on the other hand, SQL extensions PL/SQL and transact-SQL are programming languages. ASP and ASP. net are also not programming versions ages because they make use of other versions ages such as JavaScri
short-term goal or medium-term goal. There is only one ethereal long-term ideal. This is just like designing. A good design involves many processes from requirement abstraction to code, and coding starts immediately after the requirement is obtained.I am in favor of learning windows first from web development. In the software programming industry, we suggest learning dos, debug, web, and so on first. Then it's easy to implement windows. Of course, I agree that both web and windows are the best.
I first came into contact with programming in high school. At that time, I introduced QBASIC programming in the course. I don't know if anyone was the same as me. after entering the University in 03 years, most of the time the contact was mainly in C. I remember that on the basis of my self-study, I often ran to Microsoft's webcast to download videos to listen to and visit csdn forums, and read blogs in cnblogs (I felt that I was still diligent when I
step, of course, was to teach Anthony how to make a "while"Loop so that you cocould guess a few times. And then after that it tookLittle cajoling to convince him that the gameplay wocould be improved ifYou gave hints like "try a bigger number" or "try a smaller number ".Somehow we got through it all.
Before the end of the evening, we had a classic "Guess My number"Game running. The two hours between dinnertime and bedtime had justBarely been enough to get it written and working. We showed it o
interface (Shell), config. sys and autoexec. bat is the configuration file. Under the C:/DOS directory, the IO is first loaded when the application system starts. sys, And then mount msdos according to the configuration file settings. sys and command.com, and then the prompt appears. Now you can enter the command. For example, copy C:/aaa.txt D:/aaa.txt to copy the file. You can also use some applications in the C:/DOS directory to complete the work, such as editing files and writing basic prog
development efficiency is not high in many aspects.It is not that VC is regressing, but that his progress is slow. In many fields, the tool to replace Vc has gradually emerged, and python is fastThe development capability is amazing, and Java also has a wealth of library support. Some small projects originally used VC to do it with them, savingA lot of development time. Microsoft's VC class library has been around for many years. Especially when it comes to Internet functions,Vc has been surpas
A simple loading effect. Four symbols (-, \, |,/) are used to simulate a continuously rotating dashboard, prompting the user that the current loading is in progress, this is what arclive shows when establishing connections for players. The effect is as follows:
Loading ...\
JavaScript code:View Source print?
01
To avoid possible blocking of browser threads, setTimeout is used instead of setinterval.
It reminds us of the kind of QBASIC
This month, 50 years ago, the BASIC computer language was born. In retrospect, I liked this line of interface, thanks to the fact that I used QBASIC to draw a piece of code to draw the five rings of the Olympics under win98, when the colorful Olympic rings appear in front of myself, I already know the path I have to go in my life. In this new age, not many media mentioned this affected the 50-Year Celebration of the BASIC language of several generatio
and msdos. sys are the system kernel, while command.com is the user interface (shell ),
Config. sys and autoexec. bat are configuration files, and the C:/DOS directory contains general applications.
When the system starts, first Mount io. sys, And then mount msdos. sys and
Command.com, and then a prompt appears. Now you can enter the command. For example
Copy c:/aaa.txt d:/aaa.txt to copy the file. You can also use
Some applications to complete the work, such as editing files with edit, and wri
Java, C + +, Ruby, Python, C #, QBasic, and so on.Chszs, blog home: Http://blog.csdn.net/chszsThird, the shortcomings of Hadoop big data analysis tools and technologies:1. It is difficult to build a pure Hadoop environment.It's best to hire some experts or buy some services from a third-party Hadoop company.2. The pure Hadoop environment is difficult to manage.There is also a lack of a graphical management interface.3. Pure Hadoop is hard to maintain
finite number of operations, and eventually become the natural 1 of the whole process of printing out.Analysis: Define the iteration variable to n, according to the content of Gucher conjecture, can get the iterative relation of two cases: when n is even, N=N/2; when n is odd, n=n*3+1. To describe it in QBasic language is:The following is a reference fragment:IFN to even thenN=n/2ElseN=n*3+1endifThis is the iterative process that requires repeated co
, wanted to display a drop-down menu on the screen (with QBasic), in order to perform a set of operations more than once, I kept copying and pasting a piece of code, next to a primary school six grade "master" looked at a glance and said: "Why don't you use the function?" "," What is a function? "That afternoon I learned the function of this great thing, the fun is too cool, no longer copy and paste." I remember this thing all my life--functions are p
user interface (shell), config. sys and autoexec. bat is the configuration file. Under the C: \ DOS directory, the io is first loaded when the application system starts. sys, And then mount msdos according to the configuration file settings. sys and command.com, and then the prompt appears. Now you can enter the command. For example, copy c: \ aaa.txt d: \ aaa.txt to copy the file. You can also use some applications in the C: \ dos directory to complete the work, such as editing files and writi
draw a few circles on the chimney of the train, then the teacher asked me to check it out and remember that time. When the teacher left, I entered Win32 for the first time, but I only looked at the teacher and came back. I also called me back. I remember that I wanted to participate in the computer competition held by the school, I remember that I drew a giant panda in the logo language and won the first place in the competition. Later, I remember that my school called my mom to praise me, and
predecessors who used QBasic to write game works such as "Legend of the fairy sword", our generation is undoubtedly much happier, but our generation has little burden. Today's era is a diversified era. whether in the field of application development or game development, the diversified target user platforms have become a problem we have to deal. Taking mobile Phone platforms in China as an example, there are three mainstream mobile Phone platforms: I
A simple loading effect. Four symbols (-, \, |,/) are used to simulate a continuously rotating dashboard, prompting the user that the current loading is in progress, this is what ArcLive shows when establishing connections for players. The effect is as follows:
Loading...
JavaScript Code:
To avoid possible blocking of browser threads, setTimeout is used instead of setInterval.
It reminds us of the kind of QBasic and FoxBase in DOS :)SetTimeout ()
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.