Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 4 online users. » 1 Member(s) | 1 Guest(s) Bing, Google, MariyaPhycle8537
|
Latest Threads |
Looking for Adventure? Fi...
Forum: Random Discussion
Last Post: iHOMEz
11-16-2024, 09:18 PM
» Replies: 0
» Views: 477
|
Prettys Womans in your to...
Forum: Random Discussion
Last Post: iHOMEz
10-30-2024, 07:45 AM
» Replies: 0
» Views: 756
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-26-2024, 10:50 AM
» Replies: 0
» Views: 788
|
Beautiful Womans from you...
Forum: Random Discussion
Last Post: iHOMEz
10-19-2024, 02:48 PM
» Replies: 0
» Views: 885
|
Prettys Womans in your ci...
Forum: Random Discussion
Last Post: iHOMEz
10-06-2024, 05:00 PM
» Replies: 0
» Views: 1,049
|
Womans from your city - V...
Forum: Random Discussion
Last Post: iHOMEz
07-28-2024, 10:26 AM
» Replies: 0
» Views: 1,423
|
Supreme Сasual Dating - A...
Forum: Random Discussion
Last Post: iHOMEz
06-14-2024, 11:28 AM
» Replies: 0
» Views: 1,850
|
Beautiful Womans in your ...
Forum: VB.NET
Last Post: iHOMEz
06-09-2024, 09:23 PM
» Replies: 0
» Views: 1,654
|
Hangman in Rust
Forum: Other
Last Post: brandonio21
02-04-2018, 11:14 AM
» Replies: 2
» Views: 20,651
|
How to: Search files from...
Forum: VB.NET
Last Post: brandonio21
11-25-2017, 12:55 PM
» Replies: 1
» Views: 15,963
|
|
|
Datagrid Help |
Posted by: Moldraxian - 08-13-2012, 08:10 AM - Forum: Programming Help
- Replies (4)
|
|
Hello everybody! I just made a program that contains a datagridview. Is there a way to make information in a datagridview display in labels or textboxes?
|
|
|
MySQL Database Issue |
Posted by: Moldraxian - 08-07-2012, 07:04 AM - Forum: Programming Help
- Replies (7)
|
|
Hey everybody. I created a shelled version of brandonio's mysql database. I am only using form 3 and form 3 code.
When I run the program I get an error with a null. The data from the database does not come up in the list.
[code2=vbnet]txt_order.Text = splitread(1).ToString[/code2]
^
Object reference not set to an instance of an object.
If anyone has any help on this it would be greatly appreciated.
|
|
|
Getting a term in the fibonacci sequence with recursion |
Posted by: brandonio21 - 08-06-2012, 11:53 PM - Forum: Java
- No Replies
|
|
Here is how to get the specified term in the Fibonacci sequence by using recursion. As you can see, it is a pretty elegant solution. However, it is rather slow.
[code2=java]public long GrabFibTermRecursive(int term)
{
if (term == 0) return 0;
if (term <= 2) return 1;
long fibTerm = (GrabFibTermRecursive(term - 1) + GrabFibTermRecursive(term - 2));
return fibTerm;
}[/code2]
|
|
|
Getting a term in the fibonacci sequence without recursion |
Posted by: brandonio21 - 08-06-2012, 11:51 PM - Forum: Java
- No Replies
|
|
Here is a quick code snippet that gets the specified term of the Fibonacci sequence without recursion.
[code2=java]public long GrabFibTerm(int term)
{
if (term == 1) return 0;
if (term == 2) return 1;
long a = 0;
long b = 1;
int count = 2;
while (count <= term)
{
long oldB = b;
b = (a + b);
a = oldB;
count++;
}
return b;
}[/code2]
|
|
|
Reversing Numbers |
Posted by: brandonio21 - 08-06-2012, 11:28 PM - Forum: Java
- Replies (1)
|
|
This method will return the reverse of a non-zero number
[code2=java]public static long ReverseNumber(long number)
{
int reversedNumber = 0;
while (number > 0)
{
reversedNumber *= 10; //Shift over the reversed number
reversedNumber += (int)(number % 10); //Add on the end of the submitted number
number/=10;
}
return reversedNumber;
}[/code2]
|
|
|
|