[pt_view id="1717a02c6c"]
Continue ReadingWhy Is Printing “B” Dramatically Slower Than Printing “#”?
I generated two matrices of 1000 x 1000: First Matrix: O and #. Second Matrix: O and B. Using the following code, the first matrix took 8.52 se
Continue ReadingC++: Create an HTML Table
Create an HTML table. The table body should have at least three rows of three columns. Each of these three columns should be labelled "X", "Y"
Continue ReadingC++: Guess the Number
The task is to write a program where the program chooses a number between 1 and 10. A player is then prompted to enter a guess. If the player guess wr
Continue ReadingC++: Memory Allocation
Show how to explicitly allocate and deallocate blocks of memory in your language. Show access to different types of memory (i.e., heap, stack, shared,
Continue ReadingObfuscated C Code Contest 2006. Please explain sykes2.c
How does this C program work? main(_){_^448&&main(-~_);putchar(--_%64?32|-~7[__TIME__-_/8%8][">'txiZ^(~z?"-48]>>";;;====~$::199"[_*2
Continue ReadingC++: Radix Sort
// C++ LSD Radix Sort example, queue implementation #include <iostream.h> #include <cstdlib.h> #include <ctime.h> using
Continue ReadingC++: Write CSV File
void write_csv_file(double A[], int length, string file_name) //Function that prints array A to a *.csv file { ofstream output(file_name);
Continue ReadingC++: Elementary Cellular Automaton
An elementary cellular automaton is a one-dimensional cellular automaton where there are two possible states (labeled 0 and 1) and the rule to determi
Continue ReadingC++ Graphs
[pt_view id="c80f015b30"]
Continue Reading




