struct Engineer {
name: String,
role: String,
education: String,
spoken_languages: Vec<String>,
interests: Vec<String>,
}
impl Engineer {
fn new(
name: String,
role: String,
education:String,
spoken_languages: Vec<String>,
interests: Vec<String>) -> Engineer {
Engineer {
name,
role,
education,
spoken_languages,
interests,
}
}
fn print_info(&self) {
println!("Name: {}", self.name);
println!("Role: {}", self.role);
println!("Education: {}", self.education);
println!("I can speak: {:?}", self.spoken_languages);
println!("My interests are: {:?}", self.interests);
}
}
fn main() {
let engineer = Engineer::new(
String::from("Victor Boyer"),
String::from("Software Engineer"),
String::from("B.S. in Mathematics, B.S. in Quantitative Finance, M.S. in Applied Mathematics"),
vec![String::from("English"), String::from("German")],
vec![
String::from("Cryptology"),
String::from("Parallel systems"),
String::from("GPU Acceleration/CUDA"),
String::from("High Performance Computing")],
);
engineer.print_info();
}
-
Notifications
You must be signed in to change notification settings - Fork 0
boyer-victor/boyer-victor
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