C / C++ Cheatsheet

C / C++ Cheatsheet

c data types :

char - single character ( usually a byte )
int 
float 
double
use string class
The number of bits in each data type in C is compiler and hardware dependent. The maximum and minimum allowed sizes for the different data types are defined in the header file
<limits.h> for integral types and <float.h> for floating-point types.

macro :

#define MAX 256
#ifdef WINDOWS
#include <winio.h>
#else
#include <stdio.h>
#endif