C Program to illustrate how to write ICMP Ping program

This sample illustrates how an ICMP ping app can be written using the SOCK_RAW socket type and IPPROTO_ICMP protocol. By creating a raw socket, the underlying layer does not change the protocol header so that when we submit the ICMP header nothing is changed so that the receiving end will see an ICMP packet. Additionally, we use the record route IP option to get a round trip path to the endpoint. Note that the size of the IP option header that records the route is limited to nine IP addresses.

graphics

This is the graphics.h header file which contains all the graphics functions and their implementations. It is quite nice to have a look at header files just to know more about functions and their parameters. Also it tells about different structures, enums defined in...

Shortest Path

This program finds the shortest path between two cities, provided that the map of the two cities and the distances are provided.   Shortest Path (109.7 KiB, 10,192...

PC to PC Communication in C

This is a C program to demonstrate PC to PC Communication via RS232 port. Chat with only 3-wire connection. This program is tested with Turbo C++ editor Version 3.0. How ever, authors are not responsible for any damages that may happen to your computer. Please contact us if any problem exits.

Graphical Piano – “My Piano” – C++

MyPiano 3.0 is a simple piano developed in C++ using graphics functions. By using this piano,user can play, record music etc. This is the third version of MyPiano source code.

Base Converter V1.1

You can convert all sorts of numbers i.e. including real numbers ( 1.23 etc. ). Plus A Memory game to get your mind and time ticking all the time. The graphics are improved. Use of mouse makes it far more easier to use. Altogether Amazing program.

Telephone Directory Program in C

This is telephone directory program written in C and uses BGI Graphics to display data. The program takes Name, Phone Number, Mobile Number, Address and saves it in newly created file.

The program also shows saved record on screen. User can find and delete the records too.

C implementation of Text Box

A small text box for console based applications. It can be used as a help dialog box or showing the tips, hints in a game or as an information box. Its length and height can be changed.

Making Mouse Pointers

How to create the mouse pointers in c language. Different shapes can be given to the mouse pointer by changing the values of the cursor variable array.

Print days of week using enum

This C program uses enumerated types to display days of week. The enumerated type is then declared as a different name using typedef keyword i.e. enum days  to typedef enum days days. The function prints for each day of the week, today, yesterday, and tomorrow, both as a string and as a number.

Linear searches.

Read an integer array and then do linear searches. 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091...