Fires of Heaven Guild Message Board  

Go Back   Fires of Heaven Guild Message Board > General forums > Development
User Name
Password
ForumSpy Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 17 votes, 5.00 average. Display Modes
Old 03-05-2006, 01:33 PM   #1 (permalink)
Wiretwister
Registered User
 
Wiretwister's Avatar
 
Join Date: Jan 2004
Location: Central Florida
Posts: 177
+0 Internets
C programming Question

Hey guys, not sure if it's ok to post topics about C since this is primarily web development discussions, but if anyone has firm understanding of binary searches on arrays using recursive functions and loops, let me know please.

I could really use the help, thanks.
Wiretwister is offline   Reply With Quote
Old 03-05-2006, 01:44 PM   #2 (permalink)
sarinrathe
Banned
 
Join Date: Jan 2004
Posts: 202
+0 Internets
http://en.wikipedia.org/wiki/Binary_search
sarinrathe is offline   Reply With Quote
Old 03-08-2006, 09:52 AM   #3 (permalink)
Korbal
edits every post
 
Korbal's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 501
+0 Internets
Send a message via ICQ to Korbal Send a message via AIM to Korbal
Quote:
Originally Posted by Wiretwister
Hey guys, not sure if it's ok to post topics about C since this is primarily web development discussions, but if anyone has firm understanding of binary searches on arrays using recursive functions and loops, let me know please.

I could really use the help, thanks.
How about you post the question...
__________________

"And for the record, I've been a Retribution Paladin the entire time I've played WoW."--Glaive
Korbal is offline   Reply With Quote
Old 03-24-2006, 04:01 AM   #4 (permalink)
Handaar
Registered User
 
Handaar's Avatar
 
Join Date: Dec 2003
Location: PoN
Posts: 249
+0 Internets
cout<<"This Thread Does Not Deliver.";
__________________
“You cannot win if you do not play."
Maximitas - WoW - 70 Warrior Shadow Council - Exodus - Retired
Handaar - EQ - 65 Dwarf Warrior Vazaelle - Retired
Sicarius - WoW - 60 Rogue Proudmoore - Retired

Handaar is offline   Reply With Quote
Old 03-24-2006, 06:24 AM   #5 (permalink)
sarinrathe
Banned
 
Join Date: Jan 2004
Posts: 202
+0 Internets
that's c++.
sarinrathe is offline   Reply With Quote
Old 03-26-2006, 03:41 PM   #6 (permalink)
aychamo_aycono
Legendary
 
Join Date: May 2002
Posts: 2,336
MODEL SMALL
IDEAL
STACK 100H
DATASEG
MSG DB 'This thread does not deliver!', 13, '$'
CODESEG
Start:
MOV AX, @data
MOV DS, AX
MOV DX, OFFSET MSG
MOV AH, 09H
INT 21H
MOV AX, 4C00H
INT 21H
END Start
__________________
"Do us all a great big favor and ask to be banned again. Those were much, much, happier times. Also, you're a faggot who is terrible at debating." - Person who gave me - internets!
aychamo_aycono is offline   Reply With Quote
Old 03-28-2006, 05:17 PM   #8 (permalink)
Benito Fireslinger
Registered User
 
Join Date: Feb 2002
Location: Georgia
Posts: 333
+0 Internets
this is it in java... but same concept

Code:
public static int binarySearch( Comparable [ ] a, Comparable x ) { int low = 0; int high = a.length - 1; int mid; while( low <= high ) { mid = ( low + high ) / 2; if( a[ mid ].compareTo( x ) < 0 ) low = mid + 1; else if( a[ mid ].compareTo( x ) > 0 ) high = mid - 1; else return mid; } return NOT_FOUND; // NOT_FOUND = -1 }
__________________
Archimonde
Benito Fireslinger is offline   Reply With Quote
Old 04-12-2006, 09:27 AM   #9 (permalink)
Wiretwister
Registered User
 
Wiretwister's Avatar
 
Join Date: Jan 2004
Location: Central Florida
Posts: 177
+0 Internets
Cool, thank you for the help Fireslinger.
Wiretwister is offline   Reply With Quote
Old 04-12-2006, 10:48 AM   #10 (permalink)
Fattyfat
Administrator
 
Join Date: Dec 2004
Location: ftw tx
Posts: 292
+3 Internets
if you are asking how to use a class:

assuming WebLink.h/.cpp is where your class is stored

#include "WebLink.h"

void main()
{
CWebLink myLink;
myLink.SetAddress("www.suckballs.com");
myLink.SetDomain("thedomain");
myLink.SetDisplayText("MyLink");
etc..
}
Fattyfat is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
uberguilds network



All times are GMT -7. The time now is 03:49 PM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6