C/C++

C/C++ Source Code

Free C/C++ Source Code. Download 10 latest C/C++ system's projects with source code for free here.

Vehicle parking program V1.0

Submitted by Raj.Sharma on
You are required to model a vehicle parking lot system. The parking lot has a facility to park cars and scooters. The parking lot contains four parking lanes-two for cars and two for scooters. Each lane can hold ten vehicles. There is an operator with a console at the East end of the parking lot. The system should be able to handle following scenarios. Arrival of a vehicle: 1. Type of vehicle (car

Hamiltonian Circuit Checking

Submitted by Arup Kr Goswami on
This simple C source code is written in dev-C++ platform, (OS- Win 7). Here, in a given random simple symmetric graph, whether there a Hamiltonian circuit exists or not, is being checked. This is based on the formula: If 2e >= [ (n^2) - 3n + 6 ], then there hamiltonian circuit exits, else not. e & n are the number of edges & vertices respectively here.

Test Whether Two Graphs are Isomorphic or Not

Submitted by Arup Kr Goswami on
Hello, this is a simple C source code, written in dev-C++ platform (OS- Windows 7). This code actually check whether two given graphs are Isomorphic or not. Basically here both graphs are represented by their Adjacency matrix. At first this check whether two graph has equal number of vertices or not, then if they have the same number of edges, then again it is checked that whether they have equal

Subgraph Generation of a Random Simple Symmetric Graph

Submitted by Arup Kr Goswami on
This simple C source code is written in dev-C++ platform. Here a subgraph will be generated of a simple symmetric random graph. At first Create a Simple symmetric random graph, (for n vertices) & now enter number of vertices for subgraph. automatically subgraph will be generated. thnks.

Complement Graph generation of Simple Symmetric Random graph using C

Submitted by Arup Kr Goswami on
This code generates a Simple symmetric random graph initially & then it also generates the complement graph of that graph. This is written in Dev-C++ platform. Let a simple symmetric random graph is denoted by G, then we say the complement graph will be denoted by G'. Consider G has three vertices (1, 2, 3) & egdes (a, b). a exists between 1 & 2, b exists between 2 & 3. No edge exists between 1 &