Category Archives: c++

Given ASA of triangle find angle and sides c++ program

Given ASA of triangle find angle and sides c++ program.  Triangle with ASA known means, we have two angles and the side between the known angles. The below figure demonstrates the same condition: To solve ASA triangle, The first step is to find the third angle. As two sides are given and triangle all three sides sum … Continue reading Given ASA of triangle find angle and sides c++ program

Get minimum Bounding box of shapefile c++ program

Get minimum Bounding box of shapefile c++ program. This program not only reads shapefile, but makes you aware to read other files, i.e files which have .dbf, .exe, .png etc format without having software. Before that you should know about bits, byte order, and conversion of bytes to other data types and most importantly the format of … Continue reading Get minimum Bounding box of shapefile c++ program

Given the sides of a triangle find angle in c++

Given the sides of a triangle find angle in c++ program. If the triangle two sides length sum is not equal to third side, then we can say that the triangle is not line. Here are the steps you need to approach for finding the internal angles of triangle. 1.) First find the largest length of … Continue reading Given the sides of a triangle find angle in c++

c++ access specifier public private protected

c++ access specifier public private protected. Access modifiers defines the scope of methods or variables. Scope means whether the methods or variable defined in class can be accessed by all class of project or the same class only or with few other class which is inherited. C++ defines three access modifiers or access specifiers: 1. … Continue reading c++ access specifier public private protected

c++ program to find shortest distance between point and line segment

C++ program to find the shortest distance between point and line segment. This program uses maths geometry. Shortest distance can be found if we know the perpendicular point to that line segment. But for the line segment means a line whose two points are already define i.e within a particular region, the point should make a perpendicular … Continue reading c++ program to find shortest distance between point and line segment