hariziki 0 Report post Posted April 11, 2008 kepada sape2 yang nak blaja Dev C++, korg bleh add aku nye YM- [email protected]..aku pun tk la pandai sangat tapi boleh kita bincang2.. aku ade manual c++ dan tutorial..kalau aku bz, email je k..visit blog aku - www.harizreborn.blogspot.com ....... Quote Share this post Link to post Share on other sites
TemanX 0 Report post Posted April 11, 2008 Betul ke ni bro, teman banyak nak tanya ni..... bro slalu online pkul brape.... Quote Share this post Link to post Share on other sites
otai_g 3 Report post Posted June 4, 2008 yg ni 100% working , 0% error// Program to convert temperature from Celsius degree // units into Fahrenheit degree units: // Fahrenheit = Celsius * (212 - 32)/100 + 32 // #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) { // enter the temperature in Celsius int celsius; cout <<"Enter the temperature in Celsius:"; cin >>celsius; // calculate conversion factor for Celsius // to Fahrenheit int factor; factor = 212 - 32; // use conversion factor to convert Celsius // into Fahrenheit values int fahrenheit; fahrenheit = factor * celsius/100 + 32; [code] // output the results (followed by a NewLine) cout <<"Fahrenheit value is:"; cout <<fahrenheit<<endl; // wait until user is ready before terminating program // to allow the user to see the program results //system("PAUSE"); return 0; } tp yg part system("PAUSE") tu aku terpaksa disablekan sbb kalo x disablekan masa run tetiba pc aku auto shutdown.korang mcm mn?x kena mcm aku kena ker? Quote Share this post Link to post Share on other sites
betik 11 Report post Posted June 5, 2008 tp yg part system("PAUSE") tu aku terpaksa disablekan sbb kalo x disablekan masa run tetiba pc aku auto shutdown.korang mcm mn?x kena mcm aku kena ker?hmm pelik gak tu...aku xde C++ compiler skang nk test, so xtau la ...tp satu je nk bg pendapat...kalu buku/tutorial yg guna system("PAUSE") hanya utk pausekan program supaya user smpt tengok result, elok jgn baca dah buku tu ...sbb, panggil system command hanya kerana tu, menyebabkan program tu akan call shell API...dimana x perlu membebankan cpu dan memory kita hanya utk tu ...mmg x nampak sgt utk pc jaman sekarang, tapi sbg programmer, apa yg berlaku bila kita guna command tu menyebabkan kita xnak guna dah command tu huhu...satu lagi, "PAUSE" hanya compatible ngan Windows, so bkn cross-platform..so elok guna cthnya:cin.ignore();cin.get(); sbg ganti system("PAUSE")...computer happy, user happy, kita pon happy .. Quote Share this post Link to post Share on other sites