Skip to content

Instantly share code, notes, and snippets.

@Codeplaza
Codeplaza / gist:7907486
Last active December 31, 2015 00:29
Quiz 3.0 2
#include<stdio.h>
int main()
{
int m = 96,j= 49;
m = (printf("What's up"), printf(" programmers ? "));
printf("%d", m);
return 0;
}
@Codeplaza
Codeplaza / gist:7907345
Created December 11, 2013 09:17
Quiz 3.0 1
#include<stdio.h>
int main()
{
int m, n;
int i = 0, j = 4;
for(m = 0, n = 0; m < i, n < j; m++, n++)
{
printf("Codeplaza\nCodeplaza\n");
@Codeplaza
Codeplaza / gist:7872183
Last active December 30, 2015 19:09
Quiz 2
#include<stdio.h>
void codeplaza(int*, int*);
int main()
{
int m=7, n=9;
codeplaza(&m, &n);
printf("%d, %d", m, n);
return 0;
}
void codeplaza(int *m, int *n)
@Codeplaza
Codeplaza / gist:7841176
Created December 7, 2013 13:19
Newton-Raphson Program For Computing All The Complex Roots Of A Polynomial
/*
+-----------------------------------------------------------+
| Newton-Raphson Method For Polynomial Complex Root Solving |
| Gerardo V. Lozada, MS, PEE |
| November 7, 1999/November 7, 2013 |
+-----------------------------------------------------------+
*/
#include <complex.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main (void)
{
int select = 0, count = 0, count2 = 0, temp = 0, num[6];
char *type;
srand (time (NULL));
@Codeplaza
Codeplaza / gist:7716934
Created November 30, 2013 09:18
Car game
#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <stdlib.h>
#define RIGHT 19712
#define LEFT 19200
#define UP 18432
@Codeplaza
Codeplaza / gist:7716628
Created November 30, 2013 08:19
Rainbow
//RAINBOW IN C++
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gdriver = DETECT,gmode;
int x,y,i;
initgraph(&gdriver,&gmode,"D:\\TC\\BGI");
@Codeplaza
Codeplaza / gist:7716523
Created November 30, 2013 08:00
Super Market Project
#include<fstream.h>
#include<iomanip.h>
#include<stdio.h>
#include<string.h>
#include<ctype.h>
#include<windows.h>
#include<process.h>
#include<time.h>
void header(int);
@Codeplaza
Codeplaza / gist:7705692
Created November 29, 2013 13:28
Store without Scanf
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
/*
this program takes inputs from user and stores them into specific locations wherever user specify
without using scanf function.
@Codeplaza
Codeplaza / gist:7628463
Created November 24, 2013 15:34
char to int to bin
#include<stdio.h>
#include<conio.h>
void inttobin(int); //the function that will convert the integer value to binary
main(){
int n, count;
//array of small letters
char sletter[27] = "abcdefghijklmnopqrstuvwxyz";
//array of big letters