Skip to content

Instantly share code, notes, and snippets.

@Codeplaza
Codeplaza / gist:7603567
Created November 22, 2013 17:19
Stack Implementation
#include<stdio.h>
#include<conio.h>
#include<malloc.h>
struct node
{
int data;
struct node *link;
} NODE;
void push(int);
@Codeplaza
Codeplaza / gist:7586271
Created November 21, 2013 17:51
A simple game , @ is the enemy and # is the user‏
#include <stdlib.h>
#include <stdio.h>
#include <conio2.h>
#include <stdbool.h>
#include <time.h>
#define N_OBJ 10
typedef struct {
float life,
money,
@Codeplaza
Codeplaza / gist:7584018
Created November 21, 2013 15:46
GREP-like Tool
/*
* File: CS150_2.cpp
* Author: Kostis Maninakis, maninak 2273
* email: adior8otos at google
*
* Created on November 18, 2013, 4:51 PM
*/
#include <cstdlib>
#include <iostream>
@Codeplaza
Codeplaza / gist:7578171
Created November 21, 2013 09:00
Numeric to Words Converter
#include<stdio.h>
#include<conio.h>
void Convert(int,long);
void Printer(int);
void main()
{
long Number=0,x=0,Multiplier=1000000000;
textcolor(GREEN);
clrscr();
printf("\nCoverting The Numeric Number to Words");
@Codeplaza
Codeplaza / gist:7578160
Created November 21, 2013 08:59
Numeric to word Converter
#include<stdio.h>
#include<conio.h>
void Convert(int,long);
void Printer(int);
void main()
{
long Number=0,x=0,Multiplier=1000000000;
textcolor(GREEN);
clrscr();
printf("\nCoverting The Numeric Number to Words");
@Codeplaza
Codeplaza / gist:7563117
Created November 20, 2013 13:25
Conwlife
/*
John H. Conway's Game Of Life
By Gerardo V. Lozada, M.S., P.E.E. (2013)
Borland C/C++ Free Commandline Tools
*/
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <alloc.h>
@Codeplaza
Codeplaza / gist:7559802
Last active February 26, 2019 16:48
8 Queen Program
#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#define SAFE 1
#define NOT_SAFE 0
#define TRUE 1
#define FALSE 0
@Codeplaza
Codeplaza / gist:7546071
Created November 19, 2013 14:21
Maze Code
// Game Code in C++
#include<stdio.h>
#include<glut.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#include<Windows.h>
#include<math.h>
@Codeplaza
Codeplaza / gist:7516737
Created November 17, 2013 18:53
Color gradient calculation and BMP creation in plain C
/*
* Project: Draw Gradient to BMP
* Author: Alexander Aigner
* Creation Date: -
*
* Description: Gradient sample.
*
* Creates a Color gradient, saves the result to a BMP file and opens
* the file in the default image viewer.
*
@Codeplaza
Codeplaza / gist:7486557
Created November 15, 2013 15:51
Awesome PAttern
//A pattern by MADAN LAL The FASTian
#include<stdio.h>
#include<conio.h>
#include<windows.h>
int main()
{
int pk,x;
for(x=0;x<255;x++){
printf("%d:%c\n",x,x);}