| |

VerySource

 Forgot password?
 Register
Search
View: 1595|Reply: 14

Masters, our boring teacher has posted such a question again

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-11 03:20:01
| Show all posts |Read mode
"C # write a program to get the maximum value of float type, and then perform a bit operation to shift the maximum value one bit to the left and output it in octal format"
Everyone, help! We may take the exam at the end of the question, so please help!
Reply

Use magic Report

0

Threads

56

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-14 18:45:01
| Show all posts
To be honest, your teacher is pretty boring. . .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-18 10:27:01
| Show all posts
Do n’t say that the teacher is abnormal now, it ’s still important to study hard, or you will regret it after graduation
Reply

Use magic Report

1

Threads

23

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-1-18 12:45:01
| Show all posts
Shift? Don't understand
However, to maximize it, you can use a simple array, store all the data in an array, and then sort it.
Reply

Use magic Report

0

Threads

56

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-1-18 16:18:02
| Show all posts
The maximum value of float is a constant
float.MaxValue
Reply

Use magic Report

2

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-1-18 18:45:01
| Show all posts
different
Reply

Use magic Report

0

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-18 19:27:02
| Show all posts
This is the school, hey
Reply

Use magic Report

2

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-18 20:09:01
| Show all posts
Looks like it's not difficult to get rid of. .
Reply

Use magic Report

0

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-1-22 14:45:01
| Show all posts
Is there a problem with the title?
Floating point numbers are not shifted?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-22 17:00:02
| Show all posts
Can the largest number be divided by 10?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list