|
Originally posted by i212 at 15-12-2007 12:47 AM
contoh penggunaan C++/C......
masa bukak PC.. korang punya Bios program tuh merupakan embeded program..
selalunya embeded program nih menggunakan C/c++.....
lets stick to C++ lah. |
|
|
|
|
|
|
|
Originally posted by ultra78 at 14-12-2007 04:18 PM
aku dulu ada belajar prolog..peghh..buat program dalam komputer sampai kita boleh 'bercakap' dengan komputer tu..
#include <iostream>
int main()
{
std::cout << "Assalamualaikum Ultra.\n";
return 0;
}
Korang cakap pasal apa? |
|
|
|
|
|
|
|
Originally posted by juwaini at 14-12-2007 12:57 AM
abang pelaga cukup pandai bikin lawak..
ana mau gelak sampai pagi esok..
compiler itu bukannya urang.. tapi compiler itu adalah sesuatu yang akan mengaktifkan prugram tersebut..
abang pelaga bulih google "c++ compiler".. ...
Ente bagitau la macamana sebenarnya nak cakap 'Assalamualaikum!' dlm C++. Nak bagi salam pun tabley, mcm mana nak main? |
|
|
|
|
|
|
|
Originally posted by pelaga at 17-12-2007 07:26 AM
#include
int main()
{
std::cout
ente falaga patut belajar fasal sintaks dulu.. dalam masa yang samaaaa... jangan lupa berfikir tentang algoritma..
|
|
|
|
|
|
|
|
- #include <iostream>
- using namespace std;
- void main()
- {
- cout << "\nAssalamualaikum pelaga. apa khabar ente? ";
- }
Copy the Code
program berikut ditulis di atas visual c++ 6.0.. |
|
|
|
|
|
|
|
tabley buat dlm words aje ka? Homepage ana buat dlm words boleh je. |
|
|
|
|
|
|
|
Originally posted by pelaga at 19-12-2007 03:23 AM
tabley buat dlm words aje ka? Homepage ana buat dlm words boleh je.
http://www.bloodshed.net/download.html
abang felaga, ente bulih daunlud di link tersubut..
|
|
|
|
|
|
|
|
Reply #71 juwaini's post
**p = pointer kepada pointer |
|
|
|
|
|
|
|
aku dulu belajar C++ guna TC Lite.. simple............. blue screen |
|
|
|
|
|
|
|
apo kata korang letak code yang leh buat benda seperti dibawah...
*****
****
***
**
*
dan
*
**
***
****
***
**
* |
|
|
|
|
|
|
|
yg fes..
cin>>totalline;
int totalstar;
for(int i=totalline;i>0;i--)
{
totalstar = i;
for (j=1; j <= totalstar;j++)
{
cout<<"*";
}
cout<<endl;
}
[ Last edited by stingbeh at 4-1-2008 10:28 PM ] |
|
|
|
|
|
|
|
- #include <iostream.h>
- class aloha
- {
- public:
- void DisplayDetails();
- };
- void aloha:: DisplayDetails()
- {
- cout<<"salam maal hijrah!";
- };
- int main()
- {
- aloha word;
- word.DisplayDetails();
- return 0;
- };
Copy the Code |
|
|
|
|
|
|
|
Reply #76 i212's post
- #include <iostream.h>
- class dot
- {
- public:
- void DisplayDetails();
- };
- void dot:: DisplayDetails()
- {
- for (int i=5;i>=1;i--)
- {
- for (int j=i;j>=1;j--)
- cout<<"*";
- cout<<"\n";
- };
- };
- int main()
- {
- dot word;
- word.DisplayDetails();
- return 0;
- };
Copy the Code
output
*****
****
***
**
* |
|
|
|
|
|
|
|
in java...
- class dotta
- {
- public static void main(String argv[])
- {
- for (int i=5;i>=1;i--)
- {
- for (int j=i;j>=1;j--)
-
- System.out.print("*");
- System.out.print("\n");
- }
- }
- }
Copy the Code
output
*****
****
***
**
* |
|
|
|
|
|
|
| |
|