Tampilkan postingan dengan label Cplusplus. Tampilkan semua postingan
Tampilkan postingan dengan label Cplusplus. Tampilkan semua postingan
0 Comments
Posted in Arrangement, Art, Business

Animation For C++ Opener 2

hmm.. hay..
i'm confused this week... but for refresh i have a little time. :D
this fungsion same of before this article.
this coding :


#include <iostream.h>
#include <conio.h>
int main(){
      char x[]="http://refresh-it-karawang.blogspot.com";
      int aa,bb,ii,nn;
      nn=strlen(x);
      for(ii=0; ii<nn; ii++){
                  for(aa=0; aa<99999;aa++){
                        for(bb=0; bb<500; bb++){
                        }
                  }
                  printf("%c",x[ii]);
      }
      getch();
}
never mind .. i was confused ..
good nite
0 Comments
Posted in Arrangement, Art, Business

Animation For C++ Opener

hy... meet my writing , i can share about animation for c++ but this for opener..
:). i can shared simple coding


#include <iostream.h>
#include <conio.h>
#include <windows.h>
#define delay Sleep
main()
{
cout<<"a";
delay(100);
cout<<"d";
delay(100);
cout<<"i";
delay(100);
cout<<" ";
delay(100);
cout<<"r";
delay(100);
cout<<"i";
delay(100);
cout<<"z";
delay(100);
cout<<"k";
delay(100);
cout<<"y";
delay(100);
cout<<" ";
delay(100);
cout<<"p";
delay(100);
cout<<"r";
delay(100);
cout<<"a";
delay(100);
cout<<"t";
delay(100);
cout<<"a";
delay(100);
cout<<"m";
delay(100);
cout<<"a";
delay(100);
cout<<"!";
delay(100);
getch();
}

you just change char in coding :).
may be useful
0 Comments
Posted in Arrangement, Art, Business

Animation For C++

hmm.. english language time.. :D
i can't write english but i try, sorry if my language not good.. maybe other admin can fix this.
hmm les't play animation for c++,
this animation for presentation, for good looking tour presentation.
if you boring your c++ program you can add this coding, i get this coding from a blog :D
#include <Windows.h>
#include <iostream>
#define delay Sleep
void gotoxy(unsigned int kolom, unsigned int baris)
{
    COORD posisi = {kolom,baris};
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), posisi);
}
int main ()
{
       for(int i=0;i<999; i++)
       {
              gotoxy(i,10);
              cout << "refresh-it-karawang.blogspot.com";
              gotoxy(i,11);
              cout << "refresh team";
              delay(100);
              gotoxy(i,10);
              cout << "                   ";
              gotoxy(i,11);
              cout << "                             ";
              if (i==999)
              {
                     i=0;
              }
       }
i use borlan c++ , M.visual studio 6.0 and 2008.. this work 100%
this animation for end your program..
may be useful.
thaks you was read our blog :)
came letter.
0 Comments
Posted in Arrangement, Art, Business

date and time (c++)

wrt:kurcaci507@gmail.com
hmmm... sangat sulit untuk menemukan scrip jam.. nah sekarang saya akan memberikan secara cuma-cuma..hahaha
time and date in c++
tanggal dan jam pada c++


#include <time.h>      
#include <stdio.h>
#include <conio.h>

void main() {
    struct tm *Sys_T;

    time_t a;
    a = time(NULL);
    Sys_T = localtime(&a);

    printf ( "\n\njam sekarang adalah : %s", asctime (Sys_T));
    getch();
}

salam explorasi
0 Comments
Posted in Arrangement, Art, Business

c++ (ganjil dan genap)


kurcaci507@gmail.com
menampilkan bilangan bulat dan ganjil.
#include<iostream.h>
#include<conio.h>
main()
{
int max,a;
cout<<"masukan jumlah angka yang ingin d tampilkan\n;
cin>>max;
cout<<"ganjil genap"<<endl;
for (a=0;a<max;a++){

if (a%2==1)
{
cout<<a;
}
cout<<" ";
if (a%2==0)
{
cout<<a<<endl;
}
}
getch();
}
0 Comments
Posted in Arrangement, Art, Business

C++ Penghitung Gaji




/*program penghitung gaji karyawan*/

#include<iostream.h>

void main()

{
float gapok, tunjangan, pajak, gaji;
char  nama[30],bagian[30];

cout<<"PENGHITUNG GAJI BERSIH KARYAWAN"<<endl;
cout<<"  ---PT.PAZILER CORPORATION---"<<endl;
cout<<"-------------------------------"<<endl;
cout<<"Siapa Nama Anda        :";cin>>nama;
cout<<"Bagian Anda            :";cin>>bagian;
cout<<"Berapa Gaji Pokok Anda :";cin>>gapok;
cout<<"________________________"<<endl;
tunjangan=gapok*0,2;
pajak =(gapok + tunjangan) * 0.15;
gaji = gapok + tunjangan - pajak;
cout<<"Nama Anda ="<<nama<<endl;
cout<<"Bagian ="<<bagian<<endl;
cout<<"Gaji Pokok ="<<gapok<<endl;
cout<<"Tunjangan ="<<tunjangan<<endl;
cout<<"Pajak ="<<pajak<<endl;
cout<<"------------"<<endl;
cout<<"Gaji Bersih="<<gaji<<endl;
}