C++ gurus and learners, we program ourselves :P all work is CC licensed

Sunday, December 22

C++ geometry [for game projects and similar]

15:17 By

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

18:50 By

(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++

13:37 By

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...