Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Mohammad Rastkar Profile

photo Mohammad Rastkar (Mohammad Rastkar)
26 Aug 2006
Shiraz Iran
Software Engineer - College Student

Contact memberContact this Member Edit ProfileEdit my profile

This user has contributed 1 articles, 5 code samples and posted 0 messages in our discussion forums.

Technology Interests

    Articles & Tutorials

  • File Handling in VC++6

    by Mohammad Rastkar

    -> VC++ 6 - MFC App -> CFile is the base class for Microsoft Foundation file classes. You can use it to manipulate files, like : create/open/read_write/delete/obtain informations/… , similar to the way that you work with ‘fstream’.. Read full article

    Code Samples

  • [C++] Number Base Conversion (binary to octal)

    by Mohammad Rastkar

    -> VSC++ 2005 - Win32 Console App -> User input a number in binary form, we will print that in octal base. (It's a simple conversion between number bases and will inform you about some helpful C++ standard functions. You can see more infos about the functions in MSDN.). Read full article

  • [C++] Prime Number Test

    by Mohammad Rastkar

    -> VSC++ 2005 - Win32 Console App -> Test to see is a number prime ? It uses a simple mathematical algorithm : "a non-prime number has at least a prime denominator, that is less than or equal to the square root of the number", and as an enhance : all even numbers except 2, aren't prime.. Read full article

  • [C++] Automatically Delete Memory for Static Class Members

    by Mohammad Rastkar

    -> VSC++ 2005 - Win32 Console App -> When you have a static pointer variable (like: static char* st_ptr) in your class, that you want to allocate some memory to that (during runtime with operator 'new'), then how you want to delete that ? in the main function ? but what about Encapsulation and Data Hiding ? This code has an approach to reach those specifications.. Read full article

  • [C++] File interaction with structures

    by Mohammad Rastkar

    A C++ sample program that interacts with files by using 'struct' type. It implements a variable sized record with 'struct' and 'union' that will use for employee records in the program. It can add,delete,list,modify records in the file. It's for who want's to easily work with files and interchange packet of data(struct) with files.. Read full article

  • [C++] Simple Multiplication Test - Involves with : files & strings & arrays & ...

    by Mohammad Rastkar

    -> C++ - Win32 Console App -> It's a program that asks some multiplication questions(answers are from one and the largest number is 10 * 10). -> Also a good representation for some aspects of files, strings and arrays. . Read full article