[Exercise 6] | [Content] | [Exercise 8] |
Create a program which represents points in the 3D space. Declare struktured data type for points representation. Define two functions:
Read coordinates from the standard input, store them into variables of the above defined structured data type. Verify the behaviour of your functions.
float distance(...)
, which has one parameter (point) and returns distance of the point from he origin.float distance(...)
, which has two parameters (two points) and returns distance between two points.Solution:
CodeBlocks: points_3D.cbp, points_3D.cpp
Create a recursive version of Binary Search
Prepared code:
CodeBlocks: bin_search_rec_prepared.cbp, bin_search_rec_prepared.c Solution:
CodeBlocks: bin_search_rec.cbp, bin_search_rec.c
[Exercise 6] | [Content] | [Exercise 8] |