C4Swimmers Newsletter  

Code Zone

Code Zone - Source Code Samples & Examples

(Source Code ) Atari 7800 Console Games Source Code

Atari 7800 PacmanAs it's July 4th here's something slightly off-topic. Back in the early 1980s, Atari ruled the roost in video games. They'd started in 1972 and Pong was the first creation followed the by the Atari VCS console (aka 2600). For a while Atari was the fastest growing company in the US but in 1983 the whole video game market crashed and Atari's consumer division was sold to Jack Tramiel, He was

(Features) New features of C# 3.0

Features : New features of C# 3.0

Introduction
This article shows some new features in C# 3.0. This demo is created as a simple C# console application to understand the new features of C# 3.0.

International Online Programming Contest(organized by IIT Kanpur)

Techkriti’09 presents the International Online Programming Contest (IOPC) sponsored by Google. A perfect opportunity to prove your algorithmic mettle and win prizes worth 1200$ US. A lot of other Google goodies up for grab. So all you geeks out there, get coding and fill your coffers.
The event schedule is as follows:
Date: 8th February, 2009
Day : Sunday
Time: 0900 – 2400 hours IST
For more information visit:
http://iopc.techkriti.org/~iopc
Brought to you by Google. Have fun.
Coordinators:
Ashish Kumar Agrawal
ashishag@iitk.ac.in
contact number:+91-9451284897

(Code Zone) Access GMail with imap using java mail API

Code Zone : Access GMail with imap using java mail API

I had to search through quite a few web pages for this. So I am putting it here for future reference. My concience pricks for putting all the code in main method. But I guess this is an exception. :)

import java.util.Properties;

import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.NoSuchProviderException;
import javax.mail.Session;
import javax.mail.Store;

(Article) Hard Drive Tweaks

Article : Hard Drive Tweaks

Ever wish you could make one of your computer's drives invisible to anyone snooping around on your system? Well, happy days are here my friend! Whether you have sensitive docs, pictures, or any other private data, this is one of the easiest ways to keep them safe. Keep in mind that you'll still be able to access your hidden drives; you just won't see that they exist in Windows Explorer or the My Computer folder. Back up your registry before you start!

1. Open Regedit.

(Article) Managing startup items in windows

Article : Windows Shellcode Locations and Buffer Overflows

(Code Zone) Creating CoN folder in windows

Code Zone : Creating CoN folder in windows

CON is a reserve world in windows operating system. that's why we can not create the folder named as CON.

But by command prompt we can do this

Code:

STEP1: goto command prompt
STEP2: type in prompt e:\> "mkdir \\.\e:\con"
STEP3: verify by typing "dir \\.\e:\con"
STEP4: delete the file or folder "rmdir \\.\e:\con"

(Source Code) How to use BitMap in Turbo C++

Source Code : How to use BitMap in Turbo C++

NOTE :Before Running this program you have to copy one file in your "bgi" directory. That file either you have to download from the net or i will provide you. The file name is "SVGA256.BGI". Copy this file at your " tc\bgi\ ". Your tc path. I am not able to attach this file because the file extension is not supported.. If you need this file, i will provide you.

(Article) Virtual Functions in C++

Article : Virtual Functions in C++

Sometimes its very difficult to understand which function would be call. So, this example explain you about how member functions are called while using virtual and without virtual.

1) Example of Virtual Function
In the case of virtual function when we call the member functions.The compiler knows which member function has to call it depends upon the type of object.

(Code Zone) Creating a Directory and read/write to file in Directory in c++

Code Zone : Creating a Directory and read/write to file in Directory in c++

Explanation of how to create a directory in linux using a c++ program.

The program to create a directory is as follows:

Code: Cpp

(Code Zone) Printing the date from starting date to ending date

Code Zone : Printing the date from starting date to ending date

Printing the date from starting date to ending date
The program takes the starting date and ending date as inputs and prints the dates in between them.This program is useful if u r dealing with dates.

(Code Zone) Minimize Defects/Bugs in your Code

Code Zone : Minimize Defects/Bugs in your Code

Introduction
Here I am going to give a simple example of addition, substraction, multiplication etc to check overflow/underflow so that we can minimize buggs/defects in our code

(Code Zone) Operator Overloading and Inheritance with Template Classes

Code Zone : Operator Overloading and Inheritance with Template Classes

Just thought of having a simple example which has everything you need to know about the basics of C++. It has Inheritance, polymorphism, operator overloading, templates using friend as well as non-friend functions.

Code: Cpp

(Code Zone) Calculator program in C

Code Zone : Calculator program in C

The below code is a calculator in plain C. It does not take into account the operability of bodmas but just one operation at a time.

The main thing in the source code below in the scanf which scans the input as number symbol number just as in case of normal calculator.

Code: C

(Code Zone) Connect C++ with Oracle

Code Zone : Connect C++ with Oracle

Oracle C++ Call Interface (OCCI) is an Application Programming Interface (API) that provides C++ applications access to data in an Oracle database. This API is a significant improvement to the Oracle Call Interface (OCI) API as far as ease of use is concerned. Engineers who have written JDBC (Java Database Connectivity) code will find the OCCI API to be quite similar to that of JDBC

1) The table that is used in the example code is:

(Article) XML and C#

Article : XML and C#

Introduction
XML, or Extensible Markup Language, is a very popular format used to store and share data. In a nutshell, XML stores information in a tree-based text format that allows both you and I as well as computers to easily read the data. I'm sure you have used XML-like languages directly or indirectly, to borrow two popular examples, if you have ever used RSS feeds or have written XHTML pages.

(Code Zone) TextBox Control in C#

Article : TextBox Control in C#

Introduction
Windows Forms text boxes are used to get input from the user or to display text. The TextBox control is generally used for editable text, although it can also be made read-only. Text boxes can display multiple lines, wrap text to the size of the control, and add basic formatting. The TextBox control allows a single format for text displayed or entered in the control.

(Article) Doubly Linked List Implementation in C#

Article : Doubly Linked List Implementation in C#

Introduction
LinkedList is a general-purpose linked list. It supports enumerators and implements the ICollection interface.It is a true linked list with separate nodes of type LinkedListNode, so insertion and removal are O(1) operations.

(Article) .NET System.Globalization namespace

Article : .NET System.Globalization namespace

The .NET Framework has built-in support for globalisation in its System.Globalization namespace. This namespace can help you build international support into your applications.

(Article) Nested Functions in C#

Article : Nested Functions in C#

If you program in more than one language, sometimes you want to use an phrase or expression from one language in the other, when it does not exist you have to invent it for that language. Nested functions are functions defined within functions. They can be useful for compartmentalizing behavior that is invoked many times and at different places within a function. As well, they can be useful for naming a block of behavior within a function.

Syndicate content