8 Mart 2010 Pazartesi

Char Dizisinin C++ Kodu

//www.ethemsulan.com
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    char kar[]="Ethem";
    int k=0;
    while(k<5){
      cout<<kar[k]<<"  ";
                k++;
                }
                cout<<endl;
    system("PAUSE");
    return EXIT_SUCCESS;
}

Hiç yorum yok:

Yorum Gönder