Open Text File the Right Way. (C++)
This code is a simple example of how to safely open a text file in C++. Notice the very important […]
a technical blog
This code is a simple example of how to safely open a text file in C++. Notice the very important […]
this snippet of code is an alternative to system(“pause”) in MS Visual Studio. /* * File: SystemPause.cpp * Author: B […]
This little piece of code can convert a string of decimal characters into an integer value. If you seek to […]
This C++ class is a good demonstration of Object Orientation in code. Download the entire code: RadioClass.zip // definition file […]
This simple calculator is a great example for beginners to examine to understand the basics of Visual Basic. I must […]
Definition file, stack.h #ifndef STACK_H #define STACK_H #include <string> using namespace std; typedef string ItemType; // Change the datatype of […]
This piece of code can determine the GCD of two numbers by applying the euclidean algorithm recursively. // euclid.cpp : main […]
// numreverse.cpp : main project file. #include <iostream> #include <string> #include <fstream> #include <iomanip> //required to use setw() #include <cstdio> […]
Class Definition: #include <iostream> using namespace std; class linklist { private: struct node { int data; node *link; }*p; public: […]
#include using namespace std; void do_again(),direction(int ans); void option_1(),option_2(),option_3(),option_4(),option_5(),option_6(); int main() { do_again();//call do_again function, say goodbye to main until […]