Using structures (continued) C allows implementation of any type of structure. Here is a description of some simple ones so you get an idea of how they can be built and used. Lists: Lists are members of a more general type of objects calle Citeste tot ...
Dimensiune
Structs
Structs This lesson teaches C# Structs. Our objectives are as follows: Understand the Purpose of structs. Implement a struct. Use a struct. A struct allows you to create new value-type objects that are similar to the built-in Citeste tot ...
Dimensiune
Introduction in C
Introduction in C C# (pronounced “See Sharp”) is a simple, modern, object-oriented, and type-safe programming language. C# has its roots in the C family of languages and will be immediately familiar to C, C++, and Java programmers. C# is standa Citeste tot ...
Dimensiune
Iterators
Iterators 19.1 Iterator blocks An iterator block is a block (§8.2) that yields an ordered sequence of values. An iterator block is distinguished from a normal statement block by the presence of one or more yield statements. · Citeste tot ...
Dimensiune
Namespaces
Namespaces This lesson introduces you to C# Namespaces. Our objectives are as follows: Understand what Namespace is. Learn how to implement the 'using' directive. Learn to use 'alias' direc Citeste tot ...
Dimensiune
Attributes
Attributes Much of the C# language enables the programmer to specify declarative information about the entities defined in the program. For example, the accessibility of a method in a class is specified by decorating it with the method-modifier Citeste tot ...
Dimensiune
Namespaces
Namespaces C# programs are organized using namespaces. Namespaces are used both as an “internal” organization system for a program, and as an “external” organization system—a way of presenting program elements that are exposed to other programs Citeste tot ...
Dimensiune
File types
File types Here is a list of the extensions you will find often under windows. Note that this is not an exhaustive list. I have tried to concentrate in extensions that are related to programming. Note too that all these are conventions. If Citeste tot ...
Dimensiune
Enums
Enums An enum type is a distinct value type (§4.1) that declares a set of named constants. The example enum Color declares an enum type named Color with members Red, Green, and Blue. 1.1 Enum declarations An enum declaration Citeste tot ...
Dimensiune
A more complex example: a 'clone' of spy.exe
A more complex example: a 'clone' of spy.exe What can we do with the empty window that Wedit generates? Let's do a more difficult problem: We want to find out all the windows that are opened at a given time in the system. We wil Citeste tot ...
Dimensiune
Time and Date functions
Time and Date functions The C library offers a lot of functions for working with dates and time. The first of them is the time function that returns the number of seconds that have passed since January first 1970, at midnight. [1] Several Citeste tot ...
Dimensiune
Polymorphism
Polymorphism This lesson teaches about Polymorphism in C#. Our objectives are as follows: Learn What Polymorphism Is. Implement a Virtual Method. Override a Virtual Method. Use Polymorphism in a Progr Citeste tot ...
Dimensiune
Reading from a file
Reading from a file For a beginner, it is very important that the basic libraries for reading and writing to a stream, and the mathematical functions are well known. Here is an example of a function that will read a text file, counting the num Citeste tot ...
Dimensiune
Advanced windows techniques
Advanced windows techniques Windows is not only drawing of course. It has come a long way since windows 3.0, and is now a sophisticated operating system. You can do things like memory-mapped files for instance, that formerly were possible on Citeste tot ...
Dimensiune
Conversions
Conversions A conversion enables an expression to be treated as being of a particluar type. A conversion may cause an expression of a given type to be treated as having a different type, or it may cause an expression without a type to get a typ Citeste tot ...
Dimensiune
Arrays
Arrays An array is a data structure that contains a number of variables which are accessed through computed indices. The variables contained in an array, also called the elements of the array, are all of the same type, and this type is called t Citeste tot ...
Dimensiune
Delegates
Delegates Delegates enable scenarios that other languages—such as C++, Pascal, and Modula—have addressed with function pointers. Unlike C++ function pointers, however, delegates are fully object oriented, and unlike C++ pointers to member funct Citeste tot ...
Dimensiune
Introduction to Classes
Introduction to Classes This lesson introduces you to C# Classes. Our objectives are as follows: Implement Constructors. Know the difference between instance and static members. Using Destructors. Familiari Citeste tot ...
Dimensiune
Introduction to Delegates and Events
Introduction to Delegates and Events This lesson introduces delegates and events. Our objectives are as follows: Understand What a Delegate Is Understand What an Event Is Implement Delegates Fire Even Citeste tot ...
Dimensiune
Interfaces
Interfaces This lesson teaches C# Interfaces. Our objectives are as follows: Understand the Purpose of Interfaces. Define an Interface. Use an Interface. Implement Interface Inheritance. An inter Citeste tot ...