Latest topics
Error programming yang biasa berlaku
Page 1 of 1
Error programming yang biasa berlaku
Kat bawah nie senarai error yang sellau berlaku time wat programming.
disertakan dengan maksud error tersebut..
Tracking down the error:
Error:
warning C4244: '=' : conversation from 'double' to 'float', possible loss of data
Meaning:
TUkarkan variable "float" kepada "double".
Contoh:
float celcius; ====> double celcius;
--------------------------------------------------------------
Error:
error C2144: syntax error : missing ';' before type 'double'.
Meaning:
sebelum type "double", letakkan tanda ';'
Contoh:
float fahrenheit <<<<< takder tanda ";".
double celsius;
Jadikan:
float fahrenheit;
double celcius;
--------------------------------------------------------------
Error:
error C2065: 'malaysia' undeclared identifier
Meaning:
Maknanya x declare variable malaysia.
Contoh:
int usd, ringgit; <<=== declare usd ngan ringgit jer..
tapi bila printf, printf("%d",malaysia); <<=== nak kluarkan output malaysia??
mana datang pulak variable malaysia tu..
Kalau korunk ada terjumpa error2 lain, maklumkan la yerk..Semoga semua dapat manfaat
disertakan dengan maksud error tersebut..
Tracking down the error:
Error:
warning C4244: '=' : conversation from 'double' to 'float', possible loss of data
Meaning:
TUkarkan variable "float" kepada "double".
Contoh:
float celcius; ====> double celcius;
--------------------------------------------------------------
Error:
error C2144: syntax error : missing ';' before type 'double'.
Meaning:
sebelum type "double", letakkan tanda ';'
Contoh:
float fahrenheit <<<<< takder tanda ";".
double celsius;
Jadikan:
float fahrenheit;
double celcius;
--------------------------------------------------------------
Error:
error C2065: 'malaysia' undeclared identifier
Meaning:
Maknanya x declare variable malaysia.
Contoh:
int usd, ringgit; <<=== declare usd ngan ringgit jer..
tapi bila printf, printf("%d",malaysia); <<=== nak kluarkan output malaysia??
mana datang pulak variable malaysia tu..
Kalau korunk ada terjumpa error2 lain, maklumkan la yerk..Semoga semua dapat manfaat
Similar topics
» Website programming yg harus diketahui....
» Programming Susah ke Senang?
» TUTORIAL PROGRAMMING PERCUMA
» Ebook Berkaitan Programming
» ALUMNI JMTI
» Programming Susah ke Senang?
» TUTORIAL PROGRAMMING PERCUMA
» Ebook Berkaitan Programming
» ALUMNI JMTI
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Thu Dec 23, 2021 11:20 pm by Optitech
» Sf Car Rental Agency - Perkhidmatan Kereta Sewa Shah Alam
Wed Sep 09, 2015 2:48 am by sksportcar
» Homestay Di Kota Bharu
Sun Jan 25, 2015 10:52 pm by sksportcar
» Sf Car Rental Agency - Kereta Sewa Shah Alam
Tue Aug 05, 2014 8:54 am by sksportcar
» Bahasa Jepun: Ayat Seharian,Hari,Haribulan & Nombor
Mon Sep 23, 2013 8:43 pm by foxfoxer
» Tips nak hapuskan virus secara manual [On updates]
Tue Mar 19, 2013 8:38 am by Optitech
» Teknik defense dari virus and spyware [Auto]
Thu Jul 21, 2011 2:53 am by Optitech
» Virus shortcut kat pendrive
Thu Jul 21, 2011 12:27 am by Optitech
» Admin Kembali dengan Menyengat
Wed Jul 20, 2011 1:59 pm by Optitech