Write a program in Rust, such that make an instance of a struct that store fields for a gun, fields are name: String, type: String, energy: u64, num_of_rounds_per_mag: i32, total_rounds: i32 . and also implement the method for firing of gun and reloading.
-
Notifications
You must be signed in to change notification settings - Fork 0
HanzalaEjaz/assignment_Rust2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published