encik pot pet
-
Content Count
1415 -
Joined
-
Last visited
Posts posted by encik pot pet
-
-
thanks for the tip
-
tujuan double backslash ialah utk print hanya satu backslash. sebab backslash ialah special character contohnya utk \n, \r, dan sebagainya. kalau nak masukkan backslash dalam string, kena buat "\\".
kalau tak silap aku, gini la kut
system("REG add \"HKCU\\Software\\Microsoft\\Internet Explorer\\Main\" /v \"Window Title\" /t REG_SZ /d \"godam by pokemon\" /f");
-
gini jer kut kalau nak ikut command batch
system("REG add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer /v NoFolderOptions /t REG_DWORD /d 0 /f");
kalau nak lagi bagus, kena guna function registry dari Windows API (win32 api)
-
kalau la macam ni cara ko makan, memang akan naik la berat badan ko dgn lemak. weight gain ada dua cara, muscle or fat. sila pilih.
-
ganbatte!
-
-
Sejak semalam aku baca thread ni, aku masih duk fikir the theory behind apa yg Power Root buat... and possible drawback yg kena pada hard disk kalau pakai teknik ni.. anyway nice discovery, tapi aku takde kesempatan nak try lagi.http://www.theinquirer.net/en/inquirer/new...rives-recovered
aku rasa ni teknik pembuat harddisk utk sorok kapasiti sebenar harddisk sebab marketing purpose.
aku pernah jumpa RAM yg declared as 512mb, tapi kapasiti sebenar 1GB. certain mobo yg lurus bendul akan detect 512mb, and mobo yg 'jahat' akan detect kapasiti sebenar.
-
-
-
-
awak kena set precision untuk titik perpuluhan
contoh: http://www.cplusplus.com/reference/iostrea.../precision.html
-
utk study c++ for beginner, aku suggest buku ni jer. http://mindview.net/Books/TICPP/ThinkingInCPP2e.html boleh download ebook free.
-
-
-
rutin aku 3 jer, pull up, sit up, push up.
http://en.wikipedia.org/wiki/Pull-up_%28exercise%29
lepas tu cardio utk bakar lemak2 degil
kepada mereka yg terlebih lemak kat badan, korang boleh beli buku ni http://www.tomvenuto.com/reviews/burnthefatreview.shtml
inspiring pics/guide for strength building - http://www.beastskills.com/tutorials.htm
-
yup lakonan je...kalo btl2..mau berbunuhan tu..huhuhuha ah.. ni contoh lakonan tak menjadi
:lol:
-
parallel computing secara lebih tepat bermaksud tak menggunakan algoritma seperti yg sedia ada sekarang. multithread/process tak cukup utk parallel sebab akan ada bottleneck, etc.
nak achieve true parallel computing, kena design computer arch baru dan algoritma baru.
contoh paling mudah, korang boleh baca http://www.rebelscience.org/Cosas/quicksort.htm
-
input jumlah jam;
switch(kategori){
case 1: kadar = 4.5;
case 2: kadar = 5.0;
case 3: kadar = 6.0;
}
gaji = kadar * jam;
-
not really
-
kalau guna computer x86 ni, int size dia cuma 32 bit jer, 0xFFFFFFFF bersamaan dgn 4 billion lebih. kalau nak kira nilai lagi besar kena code bignum library sendiri atau guna org lain punya seperti http://gmplib.org/
btw, saya punya algo valid utk 1 -> infinity, will u derive it?
hint: http://www-groups.dcs.st-and.ac.uk/~histor...hies/Gauss.html
edit: aku biasanya pakai MIRACL http://www.shamus.ie/index.php?page=home
-
formula awak tu, kalau letak N = 100, keluar tak jumlah 5050?
-
Sebenarnya ni bukan programming sangat sebab kalau setakat nak kira hasil tambah 1+2+3+4+....+1000000 senang jer pakai komputer.
contoh kalau sampai 100;
int sum = 0; int i = 1; for (i = 1; i <= 100; i++) sum +=i;
Kalau korang duk zaman tahun 1600(masa tu takde lagi komputer), agak2nya camner nak mengira hasil tambah dari 1 hingga 1M or 1B dengan cepat?
Soalannya; sila terbitkan satu formula/algo utk mengira hasil tambah 1 hingga 1M.
chow
-
-
thanx para for the codes.
tengah2 korek hdd tadi, jumpa this codes. looks pretty.
//========================================== // LIBCTINY - Matt Pietrek 2001 // MSDN Magazine, January 2001 //========================================== #include <stdlib.h> #include <ctype.h> extern "C" long __cdecl atol ( const char * pstr ) { // The current character. int cCurr; // The running total. long lTotal; // Holds the '-' sign. int iIsNeg; // Slide past any whitespace. while ( isspace ( *pstr ) ) { ++pstr; } // Get the current character. cCurr = *pstr++; // Save the negative sign. iIsNeg = cCurr; if ( ( '-' == cCurr ) || ( '+' == cCurr ) ) { // We have a sign, so skip it. cCurr = *pstr++; } // Initialize the total. lTotal = 0; // While we have digits, addem up. while ( isdigit ( cCurr ) ) { // Add this digit to the total. lTotal = 10 * lTotal + ( cCurr - '0' ); // Do the next character. cCurr = *pstr++; } // If we have a negative sign, convert the value. if ( '-' == iIsNeg ) { return ( -lTotal ); } else { return ( lTotal ); } } extern "C" int __cdecl atoi ( const char * pstr ) { return ( (int)atol ( pstr ) ); }
**** Hitch : Untuk Lelaki, Perlu Opinion Perempuan.. ****
in Hobbies & Living
Posted · Report reply
LJBF, let us just be friend atau dalam bahasa melayu, 'kita kawan jer la'