Birds on the 15th floor
16 years ago (2009-09-19)
41120 Browse
0 Comments
Collection
It's a shame to say that I have learned C language for a long time, but I still stay at the console level. Today, I suddenly want to change an icon for the program, but I can't find where to set it, and there is no form. Where to do it? Baidu Njiu found the following two solutions: the following two methods passed the test under VC++6.0. The first is a simple version. Open your C program, and then insert -- Resour
Birds on the 15th floor
17 years ago (2009-01-24)
28726 Browse
0 Comments
Collection
The average of two integer numbers, some people say, can be found in primary school students C=(a+b)/2 Yes This is a very simple question Programmers must be able to do the same But when we met, we forgot about overflow, because the sum of two integer numbers may be greater than int. Max. If so, will the value we calculated according to the above formula be correct But we know that their average value will definitely not overflow ..
Birds on the 15th floor
17 years ago (2009-01-23)
30713 Browse
0 Comments
Collection
An interesting arithmetic problem (see the Olympic math contest in a primary school in Beijing). Let's look at some numbers first: 31213223121341312432341314, 1, 2, 2, 3, 3,... N, N A total of 2N numbers are arranged in a row, there is one number between two ones, and there are two numbers between two ones .. There are N numbers between 2 N .. Set 1 to A (1)
Birds on the 15th floor
17 years ago (2008-12-20)
33760 Browse
0 Comments
Collection
Topic requirements: people and computers do guessing games. People meditate on a four digit number, and the computer will guess it. The computer displays the guessed number on the screen and asks two questions: First, how many numbers are guessed correctly; 2、 Some of the correct numbers are also correct. People answer these two questions through the keyboard. The computer guessed again and again until it got it right. To simplify input and output, the computer outputs a four digit number at a time, and then people input two numbers separated by spaces ..
Birds on the 15th floor
17 years ago (2008-12-20)
31274 Browse
0 Comments
Collection
What I saw in the magazine is a funny topic. Requirements: There are six sentence patterns in English spoken expression time: It is five past seven. (7:5) It is eleven to ten. (9:49) It is half past nine. (9:30) It
Birds on the 15th floor
17 years ago (2008-12-20)
33059 Browse
0 Comments
Collection
/*C language */const int size=15; int arr[size]; for(i=0;i<size;i++)arr[i]=rand()%100; /*C++writing */# include stdlib. h # include time. h/* Random numbers generated by time are more lovely */rand ((un
Birds on the 15th floor
17 years ago (2008-12-14)
30027 Browse
0 Comments
Collection
The title is as follows: 111211211111221.... What is this line? Answer: After careful consideration, we have found 1 111, one 21, two 1211, one two one 111221, one one two one 312211, three one two two one 13112221, one three one one two two one one 13112221, one three one one two two one one attached with the algorithm of C++version [code=cpp] # include # i
Birds on the 15th floor
17 years ago (November 20, 2008)
37504 Browse
0 Comments
Collection
I can see from the stack of tags that the author of this article is immature in writing the program. Admittedly, I am still a novice programmer. Yesterday, I saw a funny one. I flipped through the data, compiled it, and ran it. It was good. The following program can make your motherboard buzzer, that is, the small horn that emits a sound of a certain frequency when it is turned on. Please go to the following download address: http://nobird.ys168.com/ In the beep directory ..
Birds on the 15th floor
17 years ago (2008-10-20)
32689 Browse
0 Comments
Collection
Today, I saw a problem from a friend in a forum. The source program is as follows: cpp code# include "stdio.h" main() { int x=1; if(x=2) printf...
Birds on the 15th floor
17 years ago (2008-06-07)
35228 Browse
0 Comments
Collection
It is based on a mixed length theory in the fluid mechanics textbook. Because it is the first time to write a C language program independently, the code is very complicated ,. ,, please contact me if there is a simple code method. It seems that I can still see the shadow of writing batch processing in the past, but I learned process oriented programming, which is not as friendly as object-oriented writing. Students who have learned fluid mechanics and the like can help me test it ... myself ..