Dev-C++有關"="同"=="的分別

2007-01-05 3:57 am
如題
如果可以,請列出一些例子(例如喺咩情況下用 "==")

多謝各位解答!

回答 (1)

2007-01-05 4:01 am
✔ 最佳答案
= is put a number into an int or string or char.
eg. x = 12;

That means x will store the number 12.

== is means the same.

eg. if(x==y){ printf("hello");}

That means if x is equals to y, then print out Hello
參考: me


收錄日期: 2021-04-29 22:01:07
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070104000051KK03592

檢視 Wayback Machine 備份