This is the implementation of xor problem with neural network. Here is my neural network:
It contains 1 input layer, 1 hidden layer and 1 output layer.
Also you can make train and test in single function by checking with the bool variable e.g., named "trained"