Last Update

Simple Program C + +

Okay this time I tried to talk about a lot programming language in use today, the programming language c + +.
Many of the notion of this programming language .. If you are diligent you can find on google.

Here I try to share some basic programs from c + +.


Simply ..

1. Magic Square

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

void main() {
int kolom,baris,n,spasi;
do {
clrscr();
gotoxy(15,2); printf("Program Persegi Ajaib Punyaku");
gotoxy(3,5);
printf("Masukkan Panjang Sisi : "); scanf("%d",&n);
gotoxy(3,7); printf("Persegi dengan panjang sisi %dnn",n);
for(baris=1;baris<=n;baris++)
{ printf("* "); }

printf("n");

for(kolom=1;kolom<=n-2;kolom++)
{ printf("*");
for(spasi=1;spasi<=n*2-3;spasi++)
{ printf(" "); }
printf("*n");
}

for(baris=1;baris<=n;baris++)
{
printf("* ");
}
gotoxy(3,23); printf("tekan tombol "y" untuk mengulang");
gotoxy(3,24); printf("tekan sembarang tombol untuk keluar");
}
while(getch()=='y');
}



2. Factorial

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

long faktor(int n)
{
if(n==0)return 1;
else return n*faktor(n-1);
}

void main()
{

int n;

printf("masukkan n : ");
scanf("%d",&n);
printf("n faktorial=%d ",faktor(n));

getch();
}


3. Reversing the words with strrev

#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>

void main()
{

char a[10];

printf("Masukkan kata: ");
gets(a);

strrev(a);


printf("Jika dibalik menjadi : %s",a);



getch();
}


4. Binary search tree

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

struct data{
int angka;
struct data *left, *right;
}*root = NULL;

void menu(void){
gotoxy(1,23); printf("+ to insert");
gotoxy(40,23); printf("- to seek and destroy");
gotoxy(1,24); printf("Esc to Exit");a
}

void insert (struct data **p, int angka, int level){
level += 1;
if( level < 6){
if( (*p) == NULL ){
(*p) = (struct data *) malloc (sizeof (struct data) );
(*p) -> angka = angka;
(*p) -> left = (*p) -> right = NULL;
}
else if( angka < (*p)-> angka ){
insert(& (*p) -> left, angka, level);
}
else if( angka > (*p)-> angka ){
insert(& (*p) -> right, angka, level);
}
}
else{
textcolor(14);
gotoxy(1,25); cprintf("Level Tree telah mencapai Maksimum");
textcolor(7);
getch();
}
}

void clearall (struct data *p){
if(p==NULL) return;
clearall(p -> left);
clearall(p -> right);
free(p);
}

void cetak(struct data *p, int x, int y, int j){
if(p == NULL) return;
gotoxy(x,y);
printf("%d", p-> angka);

cetak(p -> left, x-j, y+2, j/2);
cetak(p -> right, x+j, y+2, j/2);
}

void preorder(struct data *p){
if(p==NULL) return;

printf("%d ", p->angka);
preorder(p -> left);
preorder(p -> right);
}

void inorder(struct data *p){
if(p==NULL) return;

inorder(p -> left);
printf("%d ", p->angka);
inorder(p -> right);
}

void postorder(struct data *p){
if(p==NULL) return;

postorder(p -> left);
postorder(p -> right);
printf("%d ", p->angka);
}

void print_order(void){
gotoxy(1,19); printf("PreOrder : "); preorder(root);
gotoxy(1,20); printf("InOrder : "); inorder(root);
gotoxy(1,21); printf("PostOrder : "); postorder(root);
}

void seekndestroy(struct data *p, int angka){
if( p == NULL) return;
else if( angka < p -> angka){
if( p -> left -> angka == angka){
clearall (p -> left);
p -> left = NULL;
}
else{
seekndestroy( p -> left, angka);
}
}
else if( angka > p -> angka){
if( p -> right -> angka == angka){
clearall (p -> right);
p -> right = NULL;
}
else{
seekndestroy( p -> right, angka);
}
}
}

void main(){
int tekan, angka;
do{
clrscr();
menu();
cetak(root, 40, 2, 20);
print_order();
tekan = getch();
switch(tekan){
case '+' : gotoxy(1,16); printf("Masukkan Angka : ");
scanf("%d",&angka);
insert(&root, angka,0);
break;

case '-' : gotoxy(1,16); printf("Masukkan Angka : ");
scanf("%d",&angka);
if(root == NULL){
textcolor(14);
gotoxy(1,25); cprintf("Tidak ada Data yang bisa dihapus");
textcolor(7);
getch();
}
else if(angka == root -> angka ){
textcolor(14);
gotoxy(1,25); cprintf("Root Tidak Boleh Dihapus");
textcolor(7);
getch();
}
else if(root !=NULL){
seekndestroy(root, angka);
}
break;
}
}while(tekan != 27);
clearall(root);
}


5. Buble sort user

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

void main(){
int bil[5]={5,3,2,1,4};
int j,i,temp;
for(i=0;i<5;i++)
scanf("%d",&bil[i]);
for(j=0;j<4;j++)
{for(i=0;i<4-j;i++)
{if(bil[i]>bil[i+1])
{temp=bil[i];
bil[i]=bil[i+1];
bil[i+1]=temp;
}
}
}
for(i=0;i<5;i++)
printf("%d ",bil[i]);
getch();
}



6. Febonancy

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

int fib(int n)
{
int f;
if (n==0)f=0;
else if(n==1)f=1;
else f=fib(n-2)+fib(n-1);
return f;

}

void main()
{
int n;

printf("masukkan n: ");
scanf("%d",&n);

printf("bilangan fibonacci dari %d = %d",n,fib(n));

getch();
}


7. Addition crane square

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

int jumlah(int n)
{

if(n==1)return 1;
else return (n*n)+jumlah(n-1);

}

void main()
{

int n,i;
printf("n= ");
scanf("%d",&n);
i=jumlah(n);
printf("%d jumlah= %d",n,i);

getch();
}


8. The hypotenuse, and mobile segments

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

void main()
{

float a,t,r,K,L;


scanf("%f%f",&a,&t);

r=sqrt(a*a+t*t);

K=a+r+t;

L=(a*t)/2;

printf("r=%.2f, K= %.2f, L= %.2f",&r,&K,&L);

getch();
}



For the compiler you can download it here

http://www.ziddu.com/download/3185904/devcpp-4.9.9.2_setup.exe.html

jika anda ingin c++ sourcecode anda dapat mendownload di sini.

http://www.junkelsee.tk/p/c-sourcecode.html

SkyGrabber software used for reconnaissance aircraft to hack predators

Do not misunderstand me. The term hack here is not to take over control of American-made reconnaissance planes, but to extract the data transmission so that the hacker can get the video recorded by this reconnaissance aircraft.




Software used was quite simple, namely SkyGrabber, can be downloaded from here: http://www.skygrabber.com/en/download.php.
Unfortunately have to buy to get its full feature, but you can use the Unregistered version will reply try.

detailed information from the website:
SkyGrabber is offline satellite internet downloader. It accepts free to air (FTA) satellite data (movie, music, pictures) and saves information in your hard disk. So, you'll get new movie, best music and funny pictures for free.
You don't have to keep an online internet connection. Just customize your satellite dish to selected satellite provider and start accepting free to air data. SkyGrabber has simple and attractive GUI, powerful filter system and flexible settings. If you want to have the newest legal software for free, SkyGrabber is your choice. SkyGrabber is a hobby for person who accepting free to air satellite data from satellite provider. SkyGrabber is for fun.



This video examples of successful spy plane in the hack with SkyGrabber.


Kaspersky Anti-Virus 2010 + New Working Key

Kaspersky Anti-Virus 2010 + New Working Key | 71 MB

New features in the 2010 edition include a behavioral-based detection system called the Urgent Detection Sytsem. The UDS uses the anonymous dataKaspersky customers who choose to participate in submitting their system scans for analysis. In fact, the UDS must be opted-out of--there's a check box and data collection statement to read when you install the program. A gamer mode, somewhat superfluous virtual keyboard to avoid keylogging, and auto-run disabling are the less-impressivenew features , joining stalwarts like antivirus protection for files, e-mail, HTTP traffic, and instant messaging. There are protections against phishing, too, as well as theKaspersky URL advisor.





DownLoad
Code:
http://rapidshare.com/files/334748642/Kav_210-key.warezdominator.com.rar
Code:
http://hotfile.com/dl/24049514/1d3ba66/Kav_210-key.warezdominator.com.rar.html

Surrogates (2009)

DVideo Codecs Used............: H.264
Audio Codecs Used............: AAC 5.1ch and AC3 2ch
File Format..................: MPEG-4
Play Time....................: 1h 28mn
Total File Size..............: 1.76 GiB
Video Stream BitRate.........: 2,322 Kbps
Frame Width..................: 720 pixels
Frame Height.................: 304 pixels
Display Aspect Ratio.........: 2.35
Audio Stream BitRate.........: 330 Kbps
Number of Audio Channels ....: 6
Audio Channel's Positions....: Front: L C R, Rear: L R, LFE
Audio Stream BitRate(AC3).....: 192 Kbps
Number of Audio Channels ....: 2
Audio Channel's Positions....: Front: L R




DownLoad

http://rapidshare.com/files/334669346/Surrogates.2009.kupalski_RealWarez.org.part01.rar
http://rapidshare.com/files/334671368/Surrogates.2009.kupalski_RealWarez.org.part02.rar
http://rapidshare.com/files/334675268/Surrogates.2009.kupalski_RealWarez.org.part03.rar
http://rapidshare.com/files/334673000/Surrogates.2009.kupalski_RealWarez.org.part04.rar
http://rapidshare.com/files/334670879/Surrogates.2009.kupalski_RealWarez.org.part05.rar
http://rapidshare.com/files/334668461/Surrogates.2009.kupalski_RealWarez.org.part06.rar
http://rapidshare.com/files/334669325/Surrogates.2009.kupalski_RealWarez.org.part07.rar
http://rapidshare.com/files/334673028/Surrogates.2009.kupalski_RealWarez.org.part08.rar
http://rapidshare.com/files/334675504/Surrogates.2009.kupalski_RealWarez.org.part09.rar
http://rapidshare.com/files/334667338/Surrogates.2009.kupalski_RealWarez.org.part10.rar

Followers

My Friends

Send Messange




Copyright 2009-2010 Junkelsee.tk. All Right Reserved

Back to TOP