Friday, 30 September 2011
khas tok kak hunny :)
Monday, 26 September 2011
coding tok final APR 2010 part c (Q2)
cek anis..
try coding...
aku xwat lam proper words.. tp lbey kuag cmni la...
#include <iostream.h>
int larger (int [], int);
void main ()
{
int value[3];
int max, d, x, total[3];
cout<<"Enter value (less then 100): ";
for (x=0; x<3; x++)
{
cin>>value[x];
}
max=larger(value, 3);
d = 100 - max;
cout<<"The max no: "<<max<<endl;
cout<<endl;
for (x=0; x<3; x++)
{
total[x] = d + value[x];
}
for (x=0; x<3; x++)
cout<<"After: "<<total[x]<<endl;
}
int larger (int list[], int array)
{
int swap, index, x;
do
{
swap=0;
for (x=0; x<(array-1); x++)
{
if (list[x] > list[x+1])
{
index = list[x];
list[x] = list[x+1];
list[x+1] = index;
swap=1;
}
}
}while (swap != 0);
return list[2];
}
♥ DaH BaCE..? tOLonG KLik BaWAh NiE PlaK ^_^ mEKasiH ♥
try coding...
aku xwat lam proper words.. tp lbey kuag cmni la...
#include <iostream.h>
int larger (int [], int);
void main ()
{
int value[3];
int max, d, x, total[3];
cout<<"Enter value (less then 100): ";
for (x=0; x<3; x++)
{
cin>>value[x];
}
max=larger(value, 3);
d = 100 - max;
cout<<"The max no: "<<max<<endl;
cout<<endl;
for (x=0; x<3; x++)
{
total[x] = d + value[x];
}
for (x=0; x<3; x++)
cout<<"After: "<<total[x]<<endl;
}
int larger (int list[], int array)
{
int swap, index, x;
do
{
swap=0;
for (x=0; x<(array-1); x++)
{
if (list[x] > list[x+1])
{
index = list[x];
list[x] = list[x+1];
list[x+1] = index;
swap=1;
}
}
}while (swap != 0);
return list[2];
}
Sunday, 25 September 2011
new header :)
assalamualaikum..
kowag tau x..? cmne nak tau lau aku xcite kn hihihi~ aku ske follow blogger2 laen... bkn aku harap depa follow aku balik.. xpon.. aku ske tgk blog dyowg senanye.. cantik.. cute.. header gerak2 cumel2 gitu ko.. haha tp aku na wat header cmtu memey x la.. sb ak ne reti na wat nate tu :( *sedih.. hahakz.. jd ni jela yg ak mampu wat.. bebekal kan photoscape & picnik.. aku try la wat header yg simple + xbape nak cantik ni.. actually aku xreti gune adobe! sedih x dgr? waaa! ade je software adobe tu tp hare aku xreti guna.. cube gk usha2 na try... sesungguhnye aku memey bute adobe haha sebab ak tetap xdapat nak gune nate tu...
cumel x header aku...??
baek kowg kate yee kang kak jah kecik aty ko..
hahaha
actually byk da header yg ak pnh wat.. tp ak ase lawak pon ade =.= yg pon aku ase cm syok sniwi.. .ehh pe ku kesah.. blog aku kn hahah *kejam.. yg ni la header2 lame ku.. xde gerak2nye =.= huhu..
after debug..
memey aku ske sbjek ni.. ni la sbjek tok paper final ak strosnye =.= huhu kowg2 doa kan aku k.. cpe2 yg nak blja coding C++ mai2 nak ajaq haha *cam terer ceit! hahah ok la.. aku doakan kawan2 aku pon llus sbjek ni.. kite kejar mtlamat kite 3pointer n above ok kwn2?? hope ley stay in dean list huhu amin :)
Subscribe to:
Posts (Atom)