Skip to content

Instantly share code, notes, and snippets.

@fishpan1209
fishpan1209 / Thinking_in_cpp_chapter2
Last active June 16, 2023 08:53
Thinking in cpp, 2nd ed. Volume 1 ©2000 by Bruce Eckel
This chapter will introduce enough C++ syntax and program construction concepts to allow you to write
and run some simple object-oriented programs. In the subsequent chapter we will cover the basic syntax of C and C++ in detail.
By reading this chapter first, you’ll get the basic flavor of what it is like to program with objects in C++, and you’ll also discover some of the reasons for the enthusiasm surrounding this language. This should be enough to carry you through Chapter 3, which can be a bit exhausting since it contains most of the details of the C language.
The user-defined data type, or class, is what distinguishes C++ from traditional procedural languages. A class is a new data type that you or someone else creates to solve a particular kind of problem. Once a class is created, anyone can use it without knowing the specifics of how it works, or even how classes are built. This chapter treats classes as if they are just another built-in data type available for use in programs.
Classes that someon
@Jalalx
Jalalx / IranianSystemEncoding.cs
Created January 14, 2015 13:51
Iranian system encoding standard
class IranianSystemEncoding
{
static char[] ByteToChar;
static Byte[][] CharToByte;
static IranianSystemEncoding()
{
InitializeData();
}
@ganwell
ganwell / renameSymbols.cs
Created September 23, 2012 16:48
Symbol renamer for .net / mono
/// I used Mono.Cecil 0.9.5
/// This code is proof of concept quality!
using System;
using Mono.Cecil;
using System.Collections.Generic;
using Mono.Cecil.Cil;
using System.IO;
using Mono.Collections.Generic;