Sunday, December 22
C++ geometry [for game projects and similar]

Hi.
Let's just call it a graphics function blog thoe i just know 2 or 3 of them but they'll be enough for simple drawing.
This will require gotoxy function which is mentioned in a blog from Umair Sajid. The recap is as follow:
________________________________________________________________
#include...
Saturday, December 14
Use of ascii characters to print table in console
A post on using ascii chart for printing a table in console
#include <iostream>
using namespace std;
int main() {
char topLeftCorner = (char)201, bottomLeft = (char)200, topRight= (char)187;
char bottomRight = (char)188, horizontal = (char)205,...
Wednesday, December 11
sorting of character arrays based on first character only
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=561051617285813";
fjs.parentNode.insertBefore(js,...
Sunday, December 8
Filing in C++

Its very irritating to input again and again and best way to avoid it is FILING and it is pretty simple :)
Code:
#include<iostream.h>
#include<conio.h>
#include<fstream.h>
void main(){
char...
Sunday, November 24
Moving Text - SCreen Saver in C++
01:11
By
Usman Shery
beautify your C++ console programs
,
Moving Text - SCreen Saver in C++
,
usman sherry
3
comments

Moving Text - SCreen Saver in C++
Although it is exam time but i just can't help myself from compiler;; below is just code, nothing much to explain; just copy past and run it is compatible with visual studio as no graphic thing is used; enjoy
#include<iostream>
#include<windows.h>
HANDLE...
Saturday, November 23
Hollow Square & Hollow diamond & Hollow Triangle

Hollow Square & Hollow diamond & Hollow Triangle
It's basically a request from a student as we go further in loops and functions we need to know more tricks and practise more for these things which eventually leads to good programming;
Basic...
Friday, November 22
gotoxy() function in c++ by Umair Sajid
gotoxy() function :
The gotoxy function is used to to move the cursor to a specified location on the screen. Its Just Something Other then just Sequential Execution .It moves the cursor with respect to x axis and y axis. It is very useful when the...
Tuesday, November 19
Easy Colouring
As promissed here is bit easy technique for those colour commands;
Hope you guys understand it :
Theme here is to use funcitons to determin command stuff i.e. how much easy would it be if you only have to type
color(r); //red colour
here...
Monday, November 18
Play Sound in Your CPP Program
Till now, all of us have coded C++ programs on the black & white console, some know how to color the text on string.
Lets go a step ahead and introduce sound being played as your program runs.
Interesting, Right?
Yes,...
Bit Level Manipulation and Programming in C++
13:22
By
Unknown
Bit Level Manipulation and Programming in C++
,
Bit Shift operators
,
Division in C++ with bitshift operators
,
Multiplication
8
comments
C++ is a classical language and it allows us to manipulate bits in much better ways. for starter we will learn 2 kind of bit operators namely bit shift operators
Left shift operator: <<
Right shift operator: >>
The left shift operator...
Reverse any Integer without strings
13:07
By
Unknown
cppQA
,
Reverse any number
,
reverse number in c++
,
Reverse using only single loop
6
comments
It seems now are a stronger community to write generalized programs for FAST NU as well :)
I am posting a program below which reverses any number with just 1 while loop.
See if it works :P
PS please if you copy this or get inspired from this post for...
Sunday, November 17
Loading bar in C++

Since we are high on special effects these days, so below is the code to make a loading bar in C++.
#include iostream.h
#include conio.h
#include windows.h
#include dos.h
void main()
{
system("color 0a");
cout<<"\n\n\n\t\t\t\tPlease wait...
Addition of two 2-Dimensional Arrays
Below is the code that I made to add the elements of a 2-D array.
The 2-dimensional arrays have been previously discussed, what they are and how to initialize them.
http://cppqa.blogspot.com/2013/11/two-dimension-pointers-c.html
For those (like me)...
Saturday, November 16
Recursive functions
Recursive functions
Recursive functions are way much difficult then simple functions
in a function you place set of commands in a bracket and use it as many time as u want
in recursive functions you make such a function which with the help of...
Colour Coding in C++
The first time i saw colour in c++ was amazing experience because just black and white stuff is more like old school comparing to modern software and technology. It was hard to find well defined code and definition for colours in...
Ascii Art with C++
While posts on shaskaas are going on let me share another tweak with you. As a trademark thingy you can insert your name with ascii art in beginning of your program and this will always impress your teachers. I used star wars theme always for my assignments...
Friday, November 15
Program that converts ASCII number to character and vice versa By Umair Sajid
This Program can also be done using if-else structure but switch statement is most appropriate.
#include<iostream> /* Header Files */
#include<stdlib.h>
#include<conio.h>
using namespace...