typedef and #define in c++ code example
Example 1: c++ typedef
// typedef [type] [alias]
// Example:
typedef unsigned long int ulong;
ulong someNumber = 158426;
Example 2: whats a typedef in c++
#include <iostream>
int main(){
typedef unsigned int ui;
ui i = 5, j = 8;
std::cout << "i = " << i << std::endl;
std::cout << "j = " << j << std::endl;
return 0;
}