Link: http://acm.hdu.edu.cn/showproblem.php? PID = 4617 weapon
Time Limit: 3000/1000 MS (Java/others) memory limit: 65535/32768 K (Java/Others)Total submission (s): 224 accepted submission (s): 178Problem description doctor D. are researching for a horrific weapon. the muzzle of the weapon is a circle. when it fires, rays form a cylinder that runs through the circle verticality in both side. if one cylinder
of hard disk is a platter coated with magnetic media made of hard metal materials, and the number of platters of different capacity hard disks varies. Each platter has two sides and can record information. The platters are divided into many scalloped areas, each region being called a sector, and each sector can store 128x2 N-n=0.1.2.3 bytes of information. In DOS, each sector is a 128x2 of 2 times = 512 bytes, the disc is centered on the disc center, concentric circles of different radii are ca
beginning of the story.
The most basic component of hard disk is a platter coated with magnetic media made of hard metal materials, and the number of platters of different capacity hard disks varies. Each platter has two sides and can record information. The platters are divided into many scalloped areas, each region being called a sector, and each sector can store 128x2 N-n=0.1.2.3 bytes of information. In DOS, each sector is a 128x2 of 2 times = 512 bytes, the disc is centered on the disc cen
Reading and displaying 3DS files in OpenGL
After learning blender, I really want to load the model I designed into my own program. Therefore, I considered the common 3DS file format. This time I tried to load the 3DS file into my own OpenGL program and display it.
Demo program: here
Source code: here
First, I found a lot of examples of loading the 3DS format out of the box and found that only one program can run, so I took the source code of this pr
developers develop 3D Java and native applications. Unfortunately, swerve Studio is only suitable for a limited number of developers who are very familiar with Superscape.
There is also a free tool to choose from: Blender. Blender is an open source 3D modeling tool, but it's quite powerful. You can use blender for any 3D design-from simple styling to full anima
needs of mobile devices. However, 3D Studio Max is very expensive, and even if it is a good tool, it may not be suitable for anyone.
Superscape Company has its own swerve product family (Swerve Studio,swerve client,swerve Content) to help software developers develop native applications based on 3D java. Unfortunately, swerve Studio is only suitable for a limited number of developers who are very familiar with Superscape.
There is also a free tool to choose from:
at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs(E.g., dos fdisk, OS/2 FDISK)Warning: invalid flag 0x0000 of partition table 4 will be corrected by w (rite)
Command (m for help): p # view partition information
Disk/dev/sdb: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065*512 = 8225280 bytesDisk identifier: 0x416ba19a
Device Boot Start End Blocks Id System
Command (m for help): n # create a primary partiti
2. Track
The disk is divided into many concentric circles during formatting. These concentric circle tracks are called tracks ). The track starts from 0 in sequence. Each disk on the hard disk has 300 ~ 1 024 channels, with more tracks on each side of the new large-capacity hard drive. Information is recorded in these tracks in the form of a pulse string. These concentric circles are not continuously recorded data, but are divided into arcs in the middle segment. These ARCs share the same angu
, channels, and sectors are divided into the side, track, and sector sectors ). It should be noted that these are just virtual concepts, and they are not really track on the hard disk.
Starting from the surface, the hard disk is generally made up of one or more circular films. As we said, each circular film has two "faces", both of which are used to store data. The number of faces is called 0, 1, and 2 ...... Since each side has a dedicated read/write head, it is also commonly used with 0 heads
Linux hard disk partition command and Operation linux partition fdiskcylindermountlinux partition, space is measured using cylinders as a unit. There are many related concepts, mainly including header and sector) cylinder, track, hellip, and hellip... linux hard disk partition command and Operation linux partition fdiskcylindermount linux partition, space is measured in cylinders as a unit there are many related concepts, mainly including head (header
, this is a very simple truth, is nothing more than the middle school learned the force and arm of the relationship, such examples are many, in short, if the force is not changed, want to increase the torque, the only way is to grow the arm."The car steering wheel is a typical example of increasing the torque by adding a lever."In a piston engine, the piston is reciprocating, and the crankshaft rotates, and they are connected by a connecting rod. In the work stroke we can find, in fact, the conn
partition, the partition number is greater than 5, why is greater than 5, because there is already a sda5; P primary partition (1-4) Note: Add a primary partition; numbering from 1-4; SDA1 and Sda2 are occupied, so only starting from 3; ppartition number (1-4): 3No free sectors available Note: Why failed in failure? Note: I tried to add a primary partition, which seems to be a failure, why failed? Because we see the main partition + extended partition of the entire disk is exhausted, look at th
already sda5;P primary partition (1-4) Note: Add a primary partition, numbering from 1-4, but sda1 and sda2 are occupied, so only starting from 3;PPartition number (1-4): 3No Free Sectors Available Note: Why failed in the failure? Note: I tried to add a primary partition, which seems to be a failure, why failed? Because we see the main partition + extended partition of the entire disk is exhausted, look at the value of the end of the extended partition, and then see the P output message has
Basic hard disk knowledge
Hard Disk dos management structure
1. Number of tracks, sectors, cylinders and Magnetic Heads
The most basic components of a hard disk are hard metal disks coated with magnetic media. The number of disks varies with the disk capacity. Each disk has two sides.
Record information. A disk is divided into multiple slices. Each slice is called a slice. Each slice can store 128x2 n (n = 0.1.2.3) bytes. In DoS
Each sector is 128 × 2 to the power of 2 = 512 bytes. The disc surf
= cylinders of 16065*512 = 8225280 bytesSector size (logical/physical): 512 bytes/512 bytesI/O size (minimum/optimal): 512 bytes/512 bytesDisk identifier: 0x68a3c8c6
Device boot start end blocks ID system
Command (M for help): H # Help H: Unknown commandCommand actionA toggle a bootable flagB edit BSD disklabelC toggle the DOS compatibility flagD delete a partition # Deleting a partition L List known partition typesM print this menuN Add a new partitionO create a new empty DOS partition tabl
Linux hard disk partition command and operation linux partition fdiskcylindermount linux partition, space is measured in cylinders as a unit there are many related concepts, mainly including head (header), sector (sector) cylinder, track )...... It can be seen that the hard disk space can be expressed by the number of cylinder, but the space contained in each cylinder
help): Ncommand action E Extended P primary partition (1-4) ppartition number (1-4): 1First cylinder (1-121601, default 1): Using default value 1Last cylinder, +cylinders or +size{k,m,g} (1-121601, default 121601): 30400Co Mmand (M for help): Ncommand action E Extended P primary partition (1-4) ppartition number (1-4): 2First Cylinder ( 30401-121601, default 304
What is partition? Partitioning refers to telling the operating system that the disk is divided into several partitions by the cylindrical range. For example, 1-50 cylinders are used as sda1, and 51-cylinder are used as sda2 partitions. In this way, a hard disk (or lun) is divided into smaller and better management units. Next we can format different partitions into different file systems.What is formatting? What is the purpose of formatting a partiti
Sectors Available Note: Why fail in failure?
Note: I am trying to add a primary partition, it seems to be a failure, why fail? Because we see the primary partition + extended partition run out of the entire disk, look at the extension of the end of the partition, and then look at the P output information has a cylinders; it's best to look at the previous part;
So we can only add logical partitions.
Command (M for help): NCommand ActionL logical (5 or over)P primary partition (1-4)L Note: Ent
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.