Showing posts with label C. Show all posts
Showing posts with label C. Show all posts

20.1.08

Download Rapidshare Book Expert Visual C /CLI

Apress | ISBN: 1590597567 | 2007-04-09 | 352 pages | PDF + SOURCE CODE | 2.2 Mb
C++/CLI is Microsofts latest extension to C++ that targets the heart of .NET 2.0, the common language runtime. Expert Visual C++/CLI is written by visual C++ MVP Marcus Heege, who examines the core of the C++/CLI language. He explains both how the language elements work and how Microsoft intends them to be used.

Even if youre new to C++/CLI but are planning to migrate to it from another language, this book will ground you in the core language elements and give you the confidence to explore further and migrate effectively. It provides concise, yet in-depth coverage of all major C++/CLI features: short code examples succinctly illustrate syntax and concepts, and more elaborate examples show how C++/CLI should be used

HERE

2.8.07

Download Rapidshare Book Pluggable Authentication Modules

A comprehensive and practical guide to PAM for Linux: how modules work and how to implement them, covering 11 common modules, and installation of third-party offerings. Also covers developing your own modules in C. First this book explains how Pluggable Authentication Modules (PAM) simplify and standardize authentication in Linux. It shows in detail how PAM works and how it is configured. Then 11 common modules used across UNIX/Linux distributions are examined and explained, including all their parameters. Installation of third-party modules is discussed, and the development of new modules and PAM-aware applications is outlined PAM-aware applications reduce the complexity of authentication. With PAM you can use the same user database for every login process. PAM also supports different authentication processes as required. Moreover, PAM is a well-defined API, and PAM-aware applications will not break if you change the underlying authentication configuration. The PAM framework is widely used by most Linux distributions for authentication purposes. Originating from Solaris 2.6 ten years ago, PAM is used today by most proprietary and free UNIX operating systems including GNU/Linux, FreeBSD, and Solaris, following both the design concept and the practical details. PAM is thus a unifying technology for authentication mechanisms in UNIX. PAM is a modular and flexible authentication management layer that sits between Linux applications and the native underlying authentication system. PAM can be implemented with various applications without having to recompile the applications to specifically support PAM. This book provides a practical approach to UNIX/Linux authentication. The design principles are explained thoroughly, then illustrated through the examination of popular modules. It is intended as a one-stop introduction and reference to PAM. This book is for experienced system administrators and developers working with multiple Linux/UNIX servers or with both UNIX and Windows servers. It assumes a good level of admin knowledge, and that developers are competent in C development on UNIX-based systems.

http://rapidshare.com/files/18316558/b-457b01.zip

4.7.07

Rapidshare Link For Programming Embedded Systems: With C and Gnu Development Tools

If you have programming experience and a familiarity with C–the dominant language in embedded systems–Programming Embedded Systems, Second Edition is exactly what you need to get started with embedded software. This software is ubiquitous, hidden away inside our watches, DVD players, mobile phones, anti-lock brakes, and even a few toasters. The military uses embedded software to guide missiles, detect enemy aircraft, and pilot UAVs. Communication satellites, deep-space probes, and many medical instruments would have been nearly impossible to create without embedded software.

The first edition of Programming Embedded Systems taught the subject to tens of thousands of people around the world and is now considered the bible of embedded programming. This second edition has been updated to cover all the latest hardware designs and development methodologies.

The techniques and code examples presented here are directly applicable to real-world embedded software projects of all sorts. Examples use the free GNU software programming tools, the eCos and Linux operating systems, and a low-cost hardware platform specially developed for this book. If you obtain these tools along with Programming Embedded Systems, Second Edition, you’ll have a full environment for exploring embedded systems in depth. But even if you work with different hardware and software, the principles covered in this book apply.

Whether you are new to embedded systems or have done embedded work before, you’ll benefit from the topics in this book, which include:
How building and loading programs differ from desktop or server computers
Basic debugging techniques–a critical skill when working with minimally endowed embedded systems
Handling different types of memory
Interrupts, and the monitoring and control of on-chip and external peripherals
Determining whether you have real-time requirements, and whether your operating system and application can meet those requirements
Task synchronization with real-time operating systems and embedded Linux
Optimizing embedded software for size, speed, and power consumption
Working examples for eCos and embedded Linux

So whether you’re writing your first embedded program, designing the latest generation of hand-held whatchamacalits, or managing the people who do, this book is for you. Programming Embedded Systems will help you develop the knowledge and skills you need to achieve proficiency with embedded software.

http://rapidshare.com/files/1113871/OReilly.Programming.Embedded.Systems.With.C.and

3.4.07

Download Book C and C++ Manual with Code Examples

C and C++ are two of the most important programming languages today. Many professional programmers are proficient in C and C++. These two programming languages are the foundation upon which modern programming is built.

The C language was invented by Dennis Ritchie in the 1970s. It is a middle-level language and combines the control structures of a high-level language with the ability to manipulate bits, bytes, and pointers, or addresses. C provides a programmer virtually complete control over the computer.

This web site, the C / C++ Zone, is not designed as a tutorial, but rather as a C and C++ programming manual with usable code examples. It is under constant development.

C / C++ Zone

Algorithms

The generic algorithms fall into four categories, as listed here:

Non-modifying sequence algorithms: Do not modify the containers on which they work. Such algorithms include:
adjacent_find, find, find_end, find_first, count, mismatch, equal, for_each, search.

Mutating sequence algorithms: Modify the containers on which they work. Such algorithms include:
copy_backward, fill, generate, partition, random_shuffle, remove, replace, rotate, reverse, swap, swap_ranges, transform, unique.

Sorting algorithms: Sort the contents of containers in various ways. These algorithms include:
sort, stable_sort, partial_sort, partial_sort_copy, as well as a number of related functions, including:
nth_element, binary_search, lower_bound, upper_bound, equal_range, merge, includes, push_heap, pop_heap, make_heap, sort_heap, set_union, set_intersection, set_difference, set_symmetric_difference, min, min_element, max, max_element, lexicographical_compare, next_permutation, prev_permutation.

Numeric algorithms: Perform numeric calculations on the contents of containers. These category includes:
accumulate, adjacent_difference, inner_product, iota, partial_sum, power.

Iterators

Iterators are pointer-like objects that allow programs to step through the elements of a container sequentially without exposing the underlying representation. Iterators can be advanced from one element to the next by incrementing them. Some iterators can also be decremented or allow arbitrary jumps from one element to another, as we will see later. When they are dereferenced, iterators yield a reference to a container element. In addition, they can be compared to each other for equality or inequality.

Iterators interact seamlessly with built-in C++ types. In particular, native C++ pointers are treated as iterators to C++ arrays. Naturally, all containers in the Standard C++ Library define an iterator type, i.e., a nested type iterator that represent their respective pointer-like type.

Iterator Categories Iterators fall into categories. This is because different algorithms impose different requirements on an iterator they use. For example, the find() algorithms needs an iterator that can be advanced by incrementing it, whereas the reverse() algorithm needs an iterator that can be decremented as well, etc. Ultimately, there are five categories of iterators in STL and Standard C++ Library:

  • input iterators
  • output iterators
  • forward iterators
  • bidirectional iterators
  • random access iterators

An iterator category is an abstraction. It represents a set of requirements to an iterator.

STL

The Standard Template Library is a new C++ library that provides a set of easily composable C++ container classes and generic algorithms (template functions).

The container classes include vectors, lists, deques, sets, multisets, maps, multimaps, stacks, queues and priority queues.

The generic algorithms include a broad range of fundamental algorithms for the most common kinds of data manipulations, such as searching, sorting, merging, copying, and transforming.

At its July 1994 meeting, the ANSI/ISO C++ Standards Committee voted to adopt STL as part of the standard C++ library. The STL proposal to the committee by Alex Stepanov and Meng Lee of Hewlett-Packard Labs was based on research on generic programming and generic software libraries that Stepanov, Lee, and David Musser have been working on for several years, in Scheme, Ada, and C++.

String

C++ supports characters strings two ways. The first is as a null-terminated character array. This is sometimes referred to as a C string. The second way is as a class object of type basic_string. The basic_string class is essentially a container. this means that iterators and the STL algorithms can operate on string. However, string has additional capabilities.

C++ string recognizes operators:
<, <=, >, >=, ==, !=, =, += .
When you use template functions, or classes you don't need to write addition function with strcpy, ctrcmp of ctrcat... In this case C++ string works like any of built-in data type.

String functions
.C++ string, like any of container classes, has its own public functions, that add a lot of flexibility for manipulation of C++ string data type.

Overflowing.
You don't need to think about overflowing or null-terminating character. C++ string allows use sequence of characters as long as allows ability of your OS.


More C Programming Examples and Help

Stdio Functions

  • fclearerr - fread
  • freopen - puts
  • remove - ungetc

String Functions
  • memory functions
  • string functions
  • ctype functions

Time Functions
  • time structures
  • examples