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? :)

6 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete

 
Back to top!