Skip to content

Programming-M30299/week-16-dart-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code from Week 16

A repository containing the examples from the worksheet and lecture.

Contents

  • lect16.dart - Code from the lecture.
  • pract16.dart - Code from the worksheet.
  • main.dart - A simple command-line program that prints the name and the age of the user passed to it as a command-line argument.
  • README.md - This file.
  • .gitignore - A file telling git to ignore certain files. You do not need to worry about this file for now.

Running the code

Navigate to the directory containing the code with the cd command, for example:

cd ~/Documents/programming/week-16-dart-code

Then, run the code with the dart command, for example:

dart pract16.dart

Run the main.dart file with two command-line arguments, for example:

dart main.dart "Molly Millions" 21

Analyze the code with the dart analyze command, for example:

dart analyze pract16.dart

Fix the automatically detected issues with the dart fix command, for example:

dart fix pract16.dart

About

A repository containing the examples from week 16.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages