473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Second Highest number in an array

I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.

Thanks and have an enjoyable weekend.

Nov 15 '05 #1
21 13438
In article <11**********************@g43g2000cwa.googlegroups .com>,
Jaspreet <js***********@gmail.com> wrote:

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.


Just make one pass through the array. Keep two variables,
which track:

* highest so far
* 2nd highest so far

As you iterate through the array, when you find a new "highest"
one, move the previous "highest" to "2nd highest." Plus, if
you happen upon an element that his higher than the 2nd highest
but not as high as the first, make that the 2nd highest without
disturbing the highest.

As you extend the idea to finding (for example) 490th highest
element it becomes quite a bit less efficient, since it's
basically an insertion sort. At some point it's better to
just sort the array and then everything is positioned perfectly.
Nov 15 '05 #2
Jaspreet wrote:
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.

Thanks and have an enjoyable weekend.


Well, it may not be the _most_ efficient, but it's more efficient than
the way you're thinking of. What you could do is make a copy array (you
don't even need to, unless you don't want to edit the original array,
and since it's a database application you probably don't) of the
original array, pass through it once, sorting it from highest to lowest.
Then, the highest value of the array will be in array[0], and the
second highest value in the array will be in array[1].

--
Patrick M.
/* EOF */
Nov 15 '05 #3
"Jaspreet" <js***********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.


This is OT since it has nothing to do with C. It's just an algorithm, which
is a language independent thing.

Hint anyway: instead of having 2 passes and 1 running variable in each of
them you may have 1 pass and 2 running vars (highest & 2nd highest) in it.

Alex
Nov 15 '05 #4
In article <11**********************@g43g2000cwa.googlegroups .com>,
"Jaspreet" <js***********@gmail.com> wrote:
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.


Loop through the array once. Keep track of the largest and second largest
element found so far. You can ignore everything that is smallest than
the second largest object found so far.
Nov 15 '05 #5
Patrick M. wrote:
Well, it may not be the _most_ efficient, but it's more efficient than
the way you're thinking of. What you could do is make a copy array (you
don't even need to, unless you don't want to edit the original array,
and since it's a database application you probably don't) of the
original array, pass through it once, sorting it from highest to lowest.
Then, the highest value of the array will be in array[0], and the
second highest value in the array will be in array[1].


Please show us the O(n) sorting algorithm you use for that.
Christian
Nov 15 '05 #6
Jaspreet wrote:
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.

If you keep it sorted while you build your array, you can do e.g.
a binary search on the array.
Also consider reading about binary trees.
Nov 15 '05 #7
Nils O. Selåsdal wrote:
Jaspreet wrote:
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.

If you keep it sorted while you build your array, you can do e.g.
a binary search on the array.
Also consider reading about binary trees.


Hi

Thanks a lot guys. Yes it seems it would have been better if I had some
foresight and had maintained the array in the sorted order.

Thanks once again.

Nov 15 '05 #8
Anonymous 7843 wrote:
Jaspreet <js***********@gmail.com> wrote:
Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.
Just make one pass through the array. Keep two variables,
which track:

* highest so far
* 2nd highest so far

As you iterate through the array, when you find a new "highest"
one, move the previous "highest" to "2nd highest." Plus, if
you happen upon an element that his higher than the 2nd highest
but not as high as the first, make that the 2nd highest without
disturbing the highest.


For specifically the second highest, I will endorse this algorithm.
You are hardly going to do better.
As you extend the idea to finding (for example) 490th highest
element it becomes quite a bit less efficient, since it's
basically an insertion sort.
Well, for the mth highest this algorithm is basically O(m^2*n).
However, there exists an O(n) "kth rank" algorithm. See:

http://www.nist.gov/dads/HTML/select.html
http://en.wikipedia.org/wiki/Selection_algorithm

Unfortunately, I have not seen a really good explanation for why the
implementation truly matches the analysis. However, if you think about
it, its not hard to see that they are right. The "group of 5" are not
adjacent sub-elements, but in fact seperated by n/5 offsets, and then
each group is just shifted down one element at a time, with some number
of tail entries with only 4 elements each. In this way, the median of
5 steps are O(n) and the final partitioning does not require additional
movement operations.
At some point it's better to just sort the array and then everything is
positioned perfectly.


Well, O(n) < O(n*ln(n)), so sorting is only going to be better if you
have many "kth element requests" relative to the number of insert or
delete operations.

--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sf.net/

Nov 15 '05 #9
Jaspreet wrote:
I was working on some database application and had this small task of
getting the second highes marks in a class. I was able to do that using
subqueries.

Just thinking what is a good way of getting second highest value in an
integer array. One method I know of is to make the 1st pass through the
array and find the highest number. In the second pass we can find the
highest number which is less than the number we obtained in the 1st
pass.

However there has to be a better and more efficient way of doing this.
Please just let me know some hints and I would try it on my own in C.

Thanks and have an enjoyable weekend.


#include <stdio.h>
int main(void) {
int pri, sec, i, v;
int arr[] = {4,10,3,8,6,7,2,7,9,2,0};
pri = sec = 0;
for (i = 0; arr[i]; ++i) {
v = arr[i];
if (v > pri) sec = pri, pri = v;
if (v > sec && v < pri) sec = v;
}
printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}

One trip through the array.

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Jan 28 '06 #10
Joe Wright wrote:
#include <stdio.h>
int main(void) {
int pri, sec, i, v;
int arr[] = {-4,-10,-3,-8,-6,-7,-2,-7,-9,-2,0}; /* Ah! Ah! */
pri = sec = 0;
for (i = 0; arr[i]; ++i) {
v = arr[i];
if (v > pri) sec = pri, pri = v;
if (v > sec && v < pri) sec = v;
}
printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}


Jan 28 '06 #11
Joe Wright wrote:
Jaspreet wrote:
I was working on some database application and had this small
task of getting the second highes marks in a class. I was able
to do that using subqueries.

Just thinking what is a good way of getting second highest
value in an integer array. One method I know of is to make the
1st pass through the array and find the highest number. In the
second pass we can find the highest number which is less than
the number we obtained in the 1st pass.

However there has to be a better and more efficient way of
doing this. Please just let me know some hints and I would try
it on my own in C.


#include <stdio.h>
int main(void) {
int pri, sec, i, v;
int arr[] = {4,10,3,8,6,7,2,7,9,2,0};
pri = sec = 0;
for (i = 0; arr[i]; ++i) {
v = arr[i];
if (v > pri) sec = pri, pri = v;
if (v > sec && v < pri) sec = v;
}
printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}

One trip through the array.


On the principle of "look to the innermost loop", why the extra
test?

for (i = 0, v = arr[0]; v; v = arr[++i])
if (v > pri) {sec = pri; pri = v;}
else if (v > sec) sec = v;

and we can do even better with a pointer.

int *p;
...
for (p = arr, v = *p++; v; v = *p++)
... same ...

--
"The power of the Executive to cast a man into prison without
formulating any charge known to the law, and particularly to
deny him the judgement of his peers, is in the highest degree
odious and is the foundation of all totalitarian government
whether Nazi or Communist." -- W. Churchill, Nov 21, 1943
Jan 28 '06 #12
CBFalconer wrote:
Joe Wright wrote:
Jaspreet wrote:

I was working on some database application and had this small
task of getting the second highes marks in a class. I was able
to do that using subqueries.

Just thinking what is a good way of getting second highest
value in an integer array. One method I know of is to make the
1st pass through the array and find the highest number. In the
second pass we can find the highest number which is less than
the number we obtained in the 1st pass.

However there has to be a better and more efficient way of
doing this. Please just let me know some hints and I would try
it on my own in C.


#include <stdio.h>
int main(void) {
int pri, sec, i, v;
int arr[] = {4,10,3,8,6,7,2,7,9,2,0};
pri = sec = 0;
for (i = 0; arr[i]; ++i) {
v = arr[i];
if (v > pri) sec = pri, pri = v;
if (v > sec && v < pri) sec = v;
}
printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}

One trip through the array.

On the principle of "look to the innermost loop", why the extra
test?

for (i = 0, v = arr[0]; v; v = arr[++i])
if (v > pri) {sec = pri; pri = v;}
else if (v > sec) sec = v;

and we can do even better with a pointer.

int *p;
...
for (p = arr, v = *p++; v; v = *p++)
... same ...

I take your first argument. The for () can be simpler. Cute block.

for (i = 0; (v = arr[i]); ++i) {
if (v > pri) sec = pri, pri = v;
else if (v > sec) sec = v;
}

The pointer treatment can be simpler too..

for (p = arr; (v = *p++);)
... same ...

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Jan 28 '06 #13
CBFalconer wrote:

Joe Wright wrote:
Jaspreet wrote:
Just thinking what is a good way of getting second highest
value in an integer array. .... However there has to be a better and more efficient way of
doing this. Please just let me know some hints and I would try
it on my own in C.
#include <stdio.h>
int main(void) {
int pri, sec, i, v;
int arr[] = {4,10,3,8,6,7,2,7,9,2,0};
pri = sec = 0;
for (i = 0; arr[i]; ++i) {
v = arr[i];
if (v > pri) sec = pri, pri = v;
if (v > sec && v < pri) sec = v;
}
printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}


If zero termination of the array is not specified, the loop control is
incorrect. The correct termination is

for (i=0; i < sizeof arr/sizeof *arr; i++)

I usually define a macro
#define DIM(a) (sizeof(a)/sizeof(a[0]))
for such use.

Note, in general, it is more robust to terminate a list on something
other than a special data value.

As someone else pointed out, this fails for all negative numbers,
since the initial value is larger than array values. In general, you
need a separate indication that no value has been found. You can a
maximum negative value as a place holder if you constrain the data to
not include the maximum negative value.
On the principle of "look to the innermost loop", why the extra
test?

for (i = 0, v = arr[0]; v; v = arr[++i])
if (v > pri) {sec = pri; pri = v;}
else if (v > sec) sec = v;

The replacement code is functionally different. It returns the value
of the element in the second position when ordered by descending value
and allowing duplicates, whereas the first version returns the second
highest value when each value is only represented once.

My interpretation of the literal definition of "second highest value"
would be the latter, based on "second highest" never being the same as
"highest". This is often not the colloquial meaning of second
highest, but I would prefer literal interpretation here, unless
specified otherwise.

--
Thad
Jan 28 '06 #14
On Fri, 27 Jan 2006 -0500, CBFalconer <cb********@yahoo.com> wrote:
Joe Wright wrote:
Jaspreet wrote:
I was working on some database application and had this small
task of getting the second highes marks in a class. I was able
to do that using subqueries.

Just thinking what is a good way of getting second highest
value in an integer array. One method I know of is to make the
1st pass through the array and find the highest number. In the
second pass we can find the highest number which is less than
the number we obtained in the 1st pass.

However there has to be a better and more efficient way of
doing this. Please just let me know some hints and I would try
it on my own in C.


#include <stdio.h>
int main(void) {
int pri, sec, i, v;
int arr[] = {4,10,3,8,6,7,2,7,9,2,0};
pri = sec = 0;
for (i = 0; arr[i]; ++i) {
v = arr[i];
if (v > pri) sec = pri, pri = v;
if (v > sec && v < pri) sec = v;
}
printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}

One trip through the array.


On the principle of "look to the innermost loop", why the extra
test?

for (i = 0, v = arr[0]; v; v = arr[++i])
if (v > pri) {sec = pri; pri = v;}
else if (v > sec) sec = v;

and we can do even better with a pointer.

int *p;
...
for (p = arr, v = *p++; v; v = *p++)
... same ...


//////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>

int primi2(int*, int*, int*, unsigned);

int main(void)
{int pri=0, sec=0, r, v, size;
int arr[] = {4,-10,3,8,6,7,2,7,-9,2,-5000}, arr1[]={1};
////////////////////////////////////
size=sizeof arr1/ sizeof(int);
r=primi2(&pri, &sec, arr1, size);
if(r==0) printf("array empy\n");
else if(r==1)
printf("solo un elemento pri=%d sec==%d\n", pri, sec);
else printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}
////////////////////////////////////

; nasmw -fobj rog.asm

section _DATA public align=4 class=DATA use32

global _primi2

section _TEXT public align=1 class=CODE use32
; s= 0r, 4c, 8b, 12Ra, 16@p1, 20@p2, 24@arr, 28@size
_primi2:
push ebx
push ecx
push edx
%define @p1 esp+16
%define @p2 esp+20
%define @arr esp+24
%define @size esp+28
mov eax, [@arr]
mov ecx, [@size]
cmp ecx, 0
jne .l0
mov eax, 0
jmp short .fi
..l0:
mov ebx, [eax]
dec ecx
jnz .l1
mov eax, [@p1]
mov ecx, [@p2]
mov [eax], ebx
mov [ecx], ebx
mov eax, 1
jmp short .fi

..l1:
add eax, 4
cmp [eax], ebx
jle .l2
mov edx, ebx
mov ebx, [eax]
jmp short .m0
..l2:
mov edx, [eax]
..m0:
dec ecx
jnz .l3
..c0:
mov eax, [@p1]
mov ecx, [@p2]
mov [eax], ebx
mov [ecx], edx
mov eax, 2
jmp short .fi

..l3:
add eax, 4
cmp [eax], edx
jle .l5
cmp [eax], ebx
jle .l4
mov edx, ebx
mov ebx, [eax]
jmp short .l5
..l4:
mov edx, [eax]
..l5:
dec ecx
jnz .l3

jmp short .c0
..fi:
%undef @p1
%undef @p2
%undef @arr
%undef @size
pop edx
pop ecx
pop ebx
ret

Jan 31 '06 #15
RSoIsCaIrLiIoA wrote:
//////////////////////////////////////
Don't use `//`, at least not in the posts.
#include <stdio.h>
#include <stdlib.h>

int primi2(int*, int*, int*, unsigned);
You may have wanted to `extern` this.

int main(void)
{int pri=0, sec=0, r, v, size;
int arr[] = {4,-10,3,8,6,7,2,7,-9,2,-5000}, arr1[]={1};
size=sizeof arr1/ sizeof(int);
r=primi2(&pri, &sec, arr1, size);
if(r==0) printf("array empy\n");
else if(r==1)
printf("solo un elemento pri=%d sec==%d\n", pri, sec);
else printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}
Now, this is one of the most off-topic things I've seen for a while!
What makes you thing we want to see your assembly code?!
; nasmw -fobj rog.asm
section _DATA public align=4 class=DATA use32
global _primi2
section _TEXT public align=1 class=CODE use32
; s= 0r, 4c, 8b, 12Ra, 16@p1, 20@p2, 24@arr, 28@size
_primi2:


<snipped loads of assembly cobblers>

Please stay remotely on-topic, and your posts would also greatly
benefit from at least some descriptive text.

Cheers

Vladimir

Jan 31 '06 #16
Vladimir S. Oka wrote:
RSoIsCaIrLiIoA wrote:
//////////////////////////////////////


Don't use `//`, at least not in the posts.
#include <stdio.h>
#include <stdlib.h>

int primi2(int*, int*, int*, unsigned);


You may have wanted to `extern` this.


<snip>

Why? Function declarations act as extern declarations unless you specify
static.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Jan 31 '06 #17
Flash Gordon wrote:
Vladimir S. Oka wrote:
RSoIsCaIrLiIoA wrote:
//////////////////////////////////////


Don't use `//`, at least not in the posts.
#include <stdio.h>
#include <stdlib.h>

int primi2(int*, int*, int*, unsigned);


You may have wanted to `extern` this.


<snip>

Why? Function declarations act as extern declarations unless you
specify static.


Yes. I stand corrected. Thanks!

I wanted to say "you may want", as I tend to like things explicit. ;-)
Especially seeing primi2() is an assembly function.

Cheers

Vladimir

--
If they can make penicillin out of moldy bread, they can sure make
something out of you.
-- Muhammad Ali

Jan 31 '06 #18
On 31 Jan 2006 05:07:08 -0800, "Vladimir S. Oka"
<no****@btopenworld.com> wrote:
RSoIsCaIrLiIoA wrote:
//////////////////////////////////////


Don't use `//`, at least not in the posts.


why? Because it is not in the standard as line begin comment chars?
Then seems to me i have not to use "extern" for a function
declaration.

It is possible this below is better because it gets what op want

////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>

int primi2(int*, int*, int*, unsigned);

int main(void)
{int pri=0, sec=0, r, v, size;
int arr[] = {-4,-10,-3,-8,-6,-7,-2,-7,-9,-2, 0, 0}, arr1[]={1};
////////////////////////////////////
size=sizeof arr/ sizeof(int);
r=primi2(&pri, &sec, arr, size);
if(r==0) printf("array empy\n");
else if(r==1)
printf("solo un elemento pri=%d sec==%d\n", pri, sec);
else printf("pri is %d, sec is %d\n", pri, sec);
return 0;
}

section _DATA public align=4 class=DATA use32

global _primi2

section _TEXT public align=1 class=CODE use32
; s= 0r, 4c, 8b, 12Ra, 16@p1, 20@p2, 24@arr, 28@size
_primi2:
push ebx
push ecx
push edx
%define @p1 esp+16
%define @p2 esp+20
%define @arr esp+24
%define @size esp+28
mov eax, [@arr]
mov ecx, [@size]
cmp ecx, 0
jne .l0
mov eax, 0
jmp short .fi
..l0:
mov ebx, [eax]
dec ecx
jnz .l1
mov eax, [@p1]
mov ecx, [@p2]
mov [eax], ebx
mov [ecx], ebx
mov eax, 1
jmp short .fi

..l1:
add eax, 4
cmp [eax], ebx
jle .l2
mov edx, ebx
mov ebx, [eax]
jmp short .m0
..l2:
mov edx, [eax]
..m0:
dec ecx
jnz .l3
..c0:
mov eax, [@p1]
mov ecx, [@p2]
mov [eax], ebx
mov [ecx], edx
mov eax, 2
jmp short .fi

..l3:
add eax, 4
cmp [eax], edx
jle .l5
cmp [eax], ebx
jle .l4
mov edx, ebx
mov ebx, [eax]
jmp short .l5
..l4:
jz .l5
mov edx, [eax]

..l5:
dec ecx
jnz .l3

jmp short .c0
..fi:
%undef @p1
%undef @p2
%undef @arr
%undef @size
pop edx
pop ecx
pop ebx
ret

Jan 31 '06 #19
On Tue, 31 Jan 2006 23:34:00 +0100, in comp.lang.c , RSoIsCaIrLiIoA
<zz@zz.z> wrote:
On 31 Jan 2006 05:07:08 -0800, "Vladimir S. Oka"
<no****@btopenworld.com> wrote:
RSoIsCaIrLiIoA wrote:
//////////////////////////////////////


Don't use `//`, at least not in the posts.


why? Because it is not in the standard as line begin comment chars?


// because wrapped comment lines will not be comments any
more,

and because some broken mail clients interpret // as being part of a
url.

Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Feb 1 '06 #20
RSoIsCaIrLiIoA <zz@zz.z> writes:
On 31 Jan 2006 05:07:08 -0800, "Vladimir S. Oka"
<no****@btopenworld.com> wrote:
RSoIsCaIrLiIoA wrote:
//////////////////////////////////////
Don't use `//`, at least not in the posts.


why? Because it is not in the standard as line begin comment chars?


Because they're not supported by all compilers, and because long "//"
comments are often line-wrapped, creating syntax errors even for
compilers that support them.

[snip]
section _DATA public align=4 class=DATA use32

global _primi2

section _TEXT public align=1 class=CODE use32
; s= 0r, 4c, 8b, 12Ra, 16@p1, 20@p2, 24@arr, 28@size
_primi2:
push ebx
push ecx
push edx

[68 lines deleted]

Why do you keep posting assembly language to comp.lang.c? An assembly
listing generated by a C compiler *might* be topical in some rare
circumstances, but this appears to be hand-written. I'm sure there's
a newsgroup where assembly language for whatever CPU you're using
(x86?) might be topical. This isn't it.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Feb 1 '06 #21
"Vladimir S. Oka" wrote:
RSoIsCaIrLiIoA wrote:
.... lots of junk snipped ...
Now, this is one of the most off-topic things I've seen for a while!
What makes you thing we want to see your assembly code?!
.... more snippage ...
<snipped loads of assembly cobblers>

Please stay remotely on-topic, and your posts would also greatly
benefit from at least some descriptive text.


RSoIsCaIrLiIoA is a troll, who has been trolling elsewhere
recently. Just PLONK him and be done with it.

--
"The power of the Executive to cast a man into prison without
formulating any charge known to the law, and particularly to
deny him the judgement of his peers, is in the highest degree
odious and is the foundation of all totalitarian government
whether Nazi or Communist." -- W. Churchill, Nov 21, 1943
Feb 1 '06 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rick | last post by:
I have field with many numbers and I wish to make by code another number which is bigger than the highest number already in field by one. I do not wish to use the autonumber. Can anyone help.
3
by: Grant | last post by:
Hello, How would I get the highest number from a column? The table has an ID column but it does not auto imcrement and I have to do it manually so I need to get the hihest integer value and...
4
by: tathagata | last post by:
I want second highest value in a table without using subquery. please send this answer .It will be very helpfull.
1
by: faizan qazi | last post by:
Hello Greetings Guide Me To Find Second Highest Number In Array
10
by: strife | last post by:
Hi, This is a homework question. I will try to keep it minimal so not to have anyone do it for me. I am really just stuck on one small spot. I have to figure out the highest number from a users...
5
by: konaravikumar | last post by:
writing a query to get the second highest value in atable by using select statement
5
by: dotray2k7 | last post by:
Hi guys first post woooo!....can believe some of you guys are doing this for a living with things as complex as software...while I cant get past outputting the highest number a user enters...LOL ...
21
by: farzadaumixer | last post by:
hi umm i need help in writing a program in c(or c++) here are the details: i want it to recieve "x" numbers of student id's and the average of the student in their last term and i want it to...
3
by: MyMarlboro | last post by:
i wonder am i make a mistake or not... use Data::Dumper; my @array= qw(1 2 3 4 5 6 8 9 2 5); my $highest=@array; foreach my $number (@array) { if (@array > $highest) { $highest = @array;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.