Searching...
May 31, 2013

Site Updated 31st May

I've been updated this site. So you may wonder, what's new? Alright, I'll explain you. I decide to adding Syntax Highlighter in this site, which will provide nice output when I type source code, thus will easy to read.


Here I give an example of simple bash if condition.

#!/bin/env bash
if [ $(whoami) == "root" ];
then
echo "Welcome, master...";
else
echo "Welcome, student...";
fi

This is simple C code.

#include <stdio.h>
#include <unistd.h>

void PressEnterToContinue()
  {
     int c;
     fflush( stdout );
     do c = getchar(); while ((c != '\n') && (c != EOF));
  }

main()
  {
     printf("Hello wordl");
     printf("Press enter to exit");
     PressEnterToContinue();
     printf("Bye...");
    return 0;
  }

It looks gorgeous, right? :)

1 comment:

Post a Comment

 
Back to top!