-
Recent Posts
- Polybot Project: a Simple Pretty Logger
- Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (8)
- Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (7)
- Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (6)
- Python : Telegram Bot Webhook Handler : A Multi-Bot/Multi-Language Design (5)
Recent Comments
Archives
Categories
Meta
Category Archives: C/C++
C++: A Simple Command-Line Parser Add-in for Console-Based Applications
A well-structured non-trivial console-based application uses many options and variables which could be set by user in command-line. A unified way of handling the command-line options is an always-needed sub-task of programming. A good strategy for a programmer is to … Continue reading
Mixed C++/Assembly: Numeric Practice using x87 Math Coprocessor
This simple prgram demostrates the use of x87 numeric (math) coprocessor in numeric analysis. Here, the taylor expansion for sin is examined. Continue reading
Posted in Assembly, C/C++
Tagged Assembly, C++, Math Coprocessor, Numeric, Sin, Taylor
Leave a comment
Mixed C++/Assembly: A Fast Algorithm to Find the First n Prime Numbers
This demo program finds the first n prime numbers using a fast algorithm with x86 32-bit assembly language. This project has been tested with Visual Studio .Net 2008 (C++) There are two constants rows (preset to 20) and cols (preset … Continue reading
Mixed C++/Assembly: A function to find the prime factor of a number
There has already been a function to find the lowest prime factor of a number in C/C++ language in the article A function to find the prime factor of a number in C++. This article uses the same algorithm (as … Continue reading
C++: Factorizing an Integer
This posting demonstrates a simple C++ project containing 3 files: main.cpp prime.h prime.cpp prime.cpp prime.cpp contains two library functions: getPrimeFactor() and getFactorizedString(). We have already commented about getPrimeFactor() in posting A function to find the prime factor of a number … Continue reading
Spell Number: Read out a number in C++
SpellNumber.cpp spells numbers (reads out numbers as words). Revision (2) (2) An issue found and fixed: A number like 1,994,574 would be read out like : 1,994,574 : One Million, Nine Hundred, Ninety Four Thousand, Five Hundred and Seventy Four … Continue reading
Sample C I/O: Student Records
This program is very simple demo. This program: Prints the current working directory. Asks user to specify the file name containing the records of students. Reads the record from the file. Prints each record with statistics Each line in the … Continue reading
A function to find the prime factor of a number in C++
This is a very simple algorithm to find the smallest prime factor of a number: A prime factor is a prime number by which a number is dividable. For example, 35 has two prime factors: 5 and 7. This function … Continue reading