Search:
Type: Posts; User: wholegrain
Search:
Search took 0.01 seconds.
-
September 21st, 2013, 09:29 PM
Also... umm like with the for loop you can know exactly what will happen say at n = 2,
but for the hanoi tower algorithm, you can't simply know what will happen at say... n = 4 after the 4th...
-
September 21st, 2013, 09:28 PM
move(3,1,3)^ move flow #4 >>final #1 -
|move(2,1,2)^ move flow #2 s>i >>temp - 2 fin
||move(1,1,3)^ move flow #1 s>i >>outoftheway out2 - 1 int
|||move(0,1,2)
|||move(0,2,3)
||move(1,3,2)^...
-
September 21st, 2013, 09:07 PM
So i am able to code it, but only because i saw some sample code. the thing with this problem is that you don't expect that you would only need 2 recursive statements to solve it.
...
-
April 2nd, 2012, 09:27 PM
I'd like to use getter and setter methods I wrote in my Nation class with ArrayList, but it doesn't work. ArrayList doesn't behave like an array.
list[i].getCapitol(); doesn't work
I...
-
March 17th, 2012, 02:29 PM
int indice = Array.IndexOf(station, new Station("York", 0, 0));
I think you can use 0 for int variables, but what about char variables for sex?
WOULD
int indice = Array.IndexOf(station,...
-
March 11th, 2012, 08:43 PM
I have to use a recursive method though. It's a homework.
-
March 11th, 2012, 06:39 PM
public static double RecursiveMeth(double sum, int a)
{
if (a == 100000)
{
return sum;
}
else
{
-
March 9th, 2012, 09:06 AM
File input:
Adssssssssdsdssdsd m 1,54 60,5 3223
dfsffdsfdsfdsf f 1,45 60,4 4322
*EVENLY SPACED
-
March 9th, 2012, 08:51 AM
class Personne
{
private char sexe;
private string nomPre, taille, poids;
private int numero;
public Personne(string nomPre, char sexe, string taille, string poids, int...
-
March 9th, 2012, 12:44 AM
static void ReadFile(string fileName)
{
Console.WriteLine("\reading + fileName);
StreamReader Read = File.OpenText(fileName);
string line = null;
while ((line= Read.ReadLine()) != null)
{...
-
March 8th, 2012, 11:04 AM
public Candidate(string line)
{
string name = line.Substring(0,20).Trim();
char sex = char.Parse(line.Substring(21,7).Trim());
string height = line.Substring(28,14).Trim();
string weight =...
-
March 8th, 2012, 09:25 AM
class Text
{
static void ReadFile(string fileName, ref Person[] pers)
{
Console.WriteLine("\reading + fileName);
StreamReader Read = File.OpenText(fileName);
string line = null;
-
March 7th, 2012, 06:47 PM
class Text
{
static void Main(string[] args)
{
public const int max = 80;
Person[] pers = new Person[max];
int nbPerson = pers.Length;
ReadFile("class2012.txt");
-
February 11th, 2012, 09:04 PM
Got different types of information, which are evenly spaced apart.
LUONGO ROBERT M 1,69 64,9 2343
BUSH GEORGE M 1,47 52,2 1941
GOLDBERG JOHN M 1,89 72,3 2101
PAULSON MARTIN M 1,73 60,5 2232
|
Click Here to Expand Forum to Full Width
|