Feb 21 2012 in C Training by Trainer
is Operator: is operator Checks if an object is compatible with a given type An is expression evaluates to true if the provided expression is non-null, and the provided object can be cast to the provided type without causing an exception to be thrown. as Operator: The as operator is used to perform conversions between [...]
Feb 21 2012 in C Training by Trainer
Ternary operators can be use full when we have only one simple if else condition. Ternary Operator Syntax: condition ? first_expression : second_expression; Ex: public class TernaryEx { public int GetBigNum(int a, int b) { return a > b ? a : b; //in the above syntax if a is greater than b //the above expression [...]
Tags: public class, public int, Ternary Operator, Ternary Operators
Feb 21 2012 in C Training by Trainer
In C# all Custom Exception should be inherited from a class called as ApplicationException. In the below sample i created a Custom Exception class called CustSalException. I am raising an Exception when some creates an object of Salary class by passing salary value less than 5000. Please see the below code for the sample. In the code we [...]
Tags: Custom Exception, Custom Exception class, Custom Exceptions
Feb 21 2012 in C Training by Trainer
Dotnet is supported in the below platforms. Windows 98 or later versions Linux and Mac OS ( Linux and Mac are supported by using Dotnet MONO Project) Note: Sign Up For .NET Training Dotnet supported platforms is a post from: techpalle.com Dotnet supported platforms is a post from: techpalle.com Tags: Training Dotnet
Tags: Training Dotnet
Feb 1 2012 in C Training by Trainer
How to debug android program Go to Run -> debug configuration. Select your application and press debug. [or] you can right click on your project -> debug as -> Android application. Before running in debug mode, set break points where all it may be needed for your code. To set break points, go to the [...]
Tags: debug mode
Jan 16 2012 in C Training by Trainer
There are 3 types of .Net Compilers present in .Net Framework. Pre-JIT (Compiles entire code into native code at one stretch . In .Net it is called as Ngen.exe) Ecno-JIT (Compiles code part by part freeing when required) Normal JIT (Compiles only that part of code when called and places in cache) Types of JIT [...]
Tags: .Net Framework, JIT Compilers, native code
Jan 1 2012 in C Training by Trainer
Olden days embedded [or] telecom domain programming difficulties. Coding in C/C++ in low level is very difficult. Need to understand low level architecture of how they are using Proprietary software’s for mobile were giving high priority to native apps than third party applications. Symbian and brew platforms were better compared to other platforms, they gave [...]
Tags: native apps, Olden days, programming difficulties, Proprietary software
Sep 5 2011 in C Training by Trainer
See larger image C++: Classes and Data Structures (Paperback) By (author) Jeffrey Childs List Price: $137.00 USD New From: $84.94 In Stock Used from: $64.98 In Stock
Aug 30 2011 in C Training by Trainer
Everyone sometimes needs to compress something: doing backup, sending files over Internet etc. Most of us uses gzip or bzip2. It’s known than bzip2 has a bit better compression ratio but it’s much slower. I’m one of that people who only used those two programs, often with conjunction with tar using tar -czf or tar [...]
Tags: compression ratio
Aug 30 2011 in C Training by Trainer
In most cases if you want to handle a signal in your application you write a simple signal handler like: void handler (int sig) and use the signal(2) system function to run it when a signal is delivered to the process. This is the simplest case, but signals are more interesting than that! Information contained [...]
Tags: signal 2, signal handler