#include <iostream>using namespace std; int main() { long a , b , c ; do { cout << " \nEnter a number : \n"; cin >> a; cout << " Number in decimal : \t" << a <<'\n'; cout << " Number in hexadecimal :"; b = 2 * sizeof(a) - 1 ;//2 multiplied by nb of bytes in a . minus 1 for( b; b >= 0; b--) {cout << "0123456789ABCDEF"[(a >>(b * 4))& (0xF)];} }while(a); int y; cin >> y; return 0; }

Doubly linked list (4 files)

C++ again, for finding one root of a third degree equation and checking the result , it often works fine :

For finding the 93 first Fibonacci numbers very fast , after 93 iterations it is false :

A linked list for practising :

For finding the binary representation of a number using bits :

For finding the binary representation of a number using maths :

hexadecimal representation of a number using maths :

hexadecimal representation of a number using bits :

for well understanding the structure of a linked list, here is a simple one:

It was a long and difficult linked list, but apparently, it works. Below are some other pages of code in C++, exercises most of the time. I have also put some of my plugins for 3dsmax.

I learned maxscript before learning C++, here are some scripts or plugins I did:

Next, there is some linear algebra and funny matrices:

This is now a script for enciphering and deciphering messages.

Here is an example of enciphered message. If I tell you that the 2 primes are 431 and 743 , with my script above you surely can translate the following message: 62520 172480 147764 226702 42110 58127 123996 256203 196716 181614 299597 181614 241357 187604 32762 17311 309478 29630 301116 153664 113777 14703