mishell

Mr.Thanapon Jindapitak Computer Engineerting Prince of Songkla University.

Homepage: http://nevle.wordpress.com


Posts by mishell

ว่าด้วยเรื่องจำนวนและตัวเลข 2

ว่าด้วยเรื่องจำนวนและตัวเลข 2 นะครับ

More >

ว่าด้วยเรื่องจำนวนและัตัวเลข 1

ว่าด้วยเรื่องจำนวนและัตัวเลข 1

More >

วิธีการสลับค่าตัวแปร โดยใช้ Bitwise Operation

How can we swap 2 variable value in fastest way.

We can use only 2 variable to swap value each other.

Try in Bitwise Operation and use XOR concept.
More >

การ modulo แบบสวยงาม ในภาษาซี

ในปกติ ถ้าหากเรามี ตัวแปรสองตัว แล้วเราต้องการจะ หาผลหาร หรือจะหาเศษของการหาร ส่วนใหญ่ เราจะใช้โค้ดแบบนี้

int a=5;

int b=2;

int div=a/b;

int frac=a%b;

ใครต้องการวิธีที่ดูสวยงาม

#include <stdlib.h>

int main(){

int a=5,b=2;

div_t res;

res=div(a,b);

printf(“Div result: %d, Frac: %d\n”,res.quot,res.rem);

return 0;

}

พิมพ์เช่นนี้ก็ได้เหมือนกันครับ ^^

How to export file from open office to PDF on UBUNTU platform

First,

install cups-pdf..

$ sudo apt-get install cups-pdf

Then go to Open office project you want to export to PDF file format.

Click on File -> Export as PDF

You can configure the PDF options.

To finish click Export.

All.

Thanks http://ubuntuswitch.wordpress.com/2009/02/18/howto-print-pdf-in-ubuntu-intrepid-ibex-810/