Popular Posts
When do debugging and optimization, we sometimes need to generate and investigate into the assembly generated by the compiler. Generating a mixed source and assembly list will help the programmer ... read more »
Vim provides some basic formatting commands. A combination of these commands with the editing commands will make the programmer happy.
A list of basic text formatting commands in Vim:
= is an ... read more »
I begin to use vim for programming. I like the tools that focus on one function. I used to use emacs. But I think I like vim more.
For debugging, I ... read more »
OCaml is an interesting functional language. There are lots learning materials on the Internet. I compile a list of resources for OCaml learning and reference.
Recommended OCaml learning and reference material
The ... read more »
One cool feature of gcc is that it can inline assembly into C code. With inline assembly, the programmer can precisely control the execution of the processor, such as forcing ... read more »
This post collect the reference resource for x86-64 (also know as Intel 64, AMD 64) ISA / assembly language programming. x86-64 is a 64-bit extension of the Intel x86 instruction ... read more »
Here is a collection of good GDB Cheat Sheets from the Internet.
GDB QUICK REFERENCE GDB Version 5
GDB Cheat Sheet
gdb Cheatsheet
GDB commands by function – simple guide read more »
fclose is a frequently used C standard library which closes the file associated with the stream and disassociates it.
NAME
fclose – close a stream
SYNOPSIS
#include <stdio.h>
int fclose(FILE *fp);
DESCRIPTION
The fclose() function will flushes ... read more »
void show(const char *folderPath)
{
CFileFind finder;
CString path(folderPath);
path += "*.*";
BOOL bWorking = finder.FindFile(path);
... read more »
C programming language allow any style the programmer like. A good style can make the code easy to understand and maintain, while a bad style will make the project a ... read more »
Convert string to int
1. The C way
Use C standard library
#include <cstdlib>
#include <string>
std::string text = "123";
int number = std::atoi (text.c_str ());
if (errno == ERANGE)
//or may be std::errno
{
// ... read more »
Reference of the C++ Language Library, with detailed descriptions of its elements and examples on how to use its functions:
http://www.cplusplus.com/reference/
C++ reference:
http://www.cppreference.com/wiki/ read more »
A very very good introduction to OCaml:
A C++/Java programmer’s introduction to Objective Caml read more »
I compile a list of C++ styles on the Internet.
http://geosoft.no/development/cppstyle.html
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
http://www.mactech.com/articles/develop/issue_02/C%2B%2B_Style_Guide_v007.html
http://www.cs.uga.edu/~dkl/1302/Fall99/style.html read more »
“The C language provides no built-in facilities for performing such common operations as input/output, memory management, string manipulation, and the like. Instead, these facilities are defined in a standard library, ... read more »
When we program in C, a C reference by hand is usually useful. The GNU C Reference Manual provides us a good reference for the C programming language implemented by ... read more »
Integers are natively supported in Bash shell. However, what if we use floating point in Bash shell?
The short and direct answer is using ‘bc‘ command – “An arbitrary precision calculator ... read more »
Author: Zhiqiang Ma
Posted on: May 15, 2012
Views: 8
Tags: arbitrary precision calculator, Auto, Bash, Draft, result, scale, semi colons, shell
Tags: arbitrary precision calculator, Auto, Bash, Draft, result, scale, semi colons, shell