#include <xtd/xtd>
class program {
public:
static auto main() {
try {
console::write_line(
"The number of directories containing the letter p is {0}.", dirs.
size());
console::write_line("The number of files in {0} is {1}", di_next, di_next.get_files().size());
}
console::write_line(
"The process failed: {0}",
e.to_string());
}
}
};
virtual size_type size() const noexcept
Returns the number of elements in the container, i.e. std::distance(xtd::collections::generic::list::...
Definition list.h:365
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search...
Definition list.h:72
Defines the base class for predefined exceptions in the xtd namespace.
Definition exception.h:26
Exposes instance methods for creating, moving, and enumerating through directories and subdirectories...
Definition directory_info.h:129
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.h:175
The xtd::collections::generic namespace contains interfaces and classes that define generic collectio...
Definition comparer.h:15
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10