Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Simple Calculate C, C++

  1. #11
    Member
    MohammadAdlan's Avatar
    Join Date
    Jan 2013
    Location
    Melaka
    Posts
    33
    Post Thanks / Like
    bro Private, coding bawah ni utk msukkan warna ke?


    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HA NDLE), 128);

  2. #12
    Senior Member private's Avatar
    Join Date
    Oct 2006
    Location
    ᶫᵒᵛᵉᵧₒᵤ
    Posts
    1,134
    Post Thanks / Like
    Quote Originally Posted by MohammadAdlan View Post
    bro Private, coding bawah ni utk msukkan warna ke?


    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HA NDLE), 128);
    Iyea btul.. absolutely correct.. tu untuk warnakan text.

  3. #13
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Post Thanks / Like
    #include <windows.h>
    using namespace std;2x ni utk ape bro, aku bljr c++ tp xgne pon bnde tu

  4. #14
    Senior Member private's Avatar
    Join Date
    Oct 2006
    Location
    ᶫᵒᵛᵉᵧₒᵤ
    Posts
    1,134
    Post Thanks / Like

    Server sponsored by SyokHost.Com

    Server sponsored by SyokHost.Com

    Server sponsored by SyokHost.Com

    Server sponsored by SyokHost.Com
    Quote Originally Posted by vavi100 View Post
    #include <windows.h>
    using namespace std;2x ni utk ape bro, aku bljr c++ tp xgne pon bnde tu

    windows.h
    tu header yg digunakan utk kita include/guna/panggil fungsi windows API dgn kata lain,utk membolehkan kita guna fungsi file *.dll system kt windows mcm nk guna kod warna SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HA NDLE), 128);

    using namespace std; pula adalah utk declare penggunaan function std.. std tu adalah nama function.. So bila dh declare guna std, kita takyah lg guna std::cout and std::cin ..trus bleh guna cout << dan cin >>

Page 2 of 2 FirstFirst 12

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •