The C++ Programming Language 4th

C++ assert.h

#include #include int test_assert(int x) { assert(x

Object Oriented Programming in C

C++ – Move cursor position (windows)

#include “stdafx.h” #include “Windows.h” int main() { for(int i=1 ; i<200 ; i++) { SetCursorPos(200/i, 200*i); Sleep(500); } return 0; }

C++ Read From Memory

#include void ptr(int* ptr ) {     int* p = ptr;     std::cout <<  “Address:”   << p   << std::endl;     std::cout <<  “Value  :”   << *p  << std::endl; } int main(int argc, const char * argv[]) {     //0x7ffeefbff55c;     for(int i=0;i<15;i++)     {         int* p = (int*) 0x7ffeefbff551+i;       […]

C++ hello world

#include <iostream> int main() {     std::cout << “hello world!\n”;     return 0; }