Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: wholegrain

Search: Search took 0.01 seconds.

  1. Re: tower of hanoi problem and problem solving

    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...
  2. Re: tower of hanoi problem and problem solving

    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)^...
  3. tower of hanoi problem and problem solving

    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.
    ...
  4. What can I do to be able to use Getter and Setter meths with ArrayList

    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...
  5. How do you use array.indexOf for class arrays with int, char and string variables?

    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,...
  6. Re: How do you bypass Stack Overflow Exception?

    I have to use a recursive method though. It's a homework.
  7. How do you bypass Stack Overflow Exception?

    public static double RecursiveMeth(double sum, int a)
    {

    if (a == 100000)
    {
    return sum;
    }

    else
    {
  8. Replies
    9
    Views
    773

    Re: What's wrong with this constructor?

    File input:

    Adssssssssdsdssdsd m 1,54 60,5 3223
    dfsffdsfdsfdsf f 1,45 60,4 4322

    *EVENLY SPACED
  9. Replies
    9
    Views
    773

    Re: What's wrong with this constructor?

    class Personne
    {
    private char sexe;
    private string nomPre, taille, poids;
    private int numero;

    public Personne(string nomPre, char sexe, string taille, string poids, int...
  10. Replies
    9
    Views
    773

    Re: What's wrong with this constructor?

    static void ReadFile(string fileName)
    {
    Console.WriteLine("\reading + fileName);

    StreamReader Read = File.OpenText(fileName);
    string line = null;

    while ((line= Read.ReadLine()) != null)
    {...
  11. Replies
    9
    Views
    773

    What's wrong with this constructor?

    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 =...
  12. Replies
    6
    Views
    588

    Re: Why do I get these compiler error?

    class Text
    {

    static void ReadFile(string fileName, ref Person[] pers)
    {
    Console.WriteLine("\reading + fileName);

    StreamReader Read = File.OpenText(fileName);
    string line = null;
  13. Replies
    6
    Views
    588

    Why do I get these compiler error?

    class Text
    {

    static void Main(string[] args)
    {
    public const int max = 80;
    Person[] pers = new Person[max];
    int nbPerson = pers.Length;

    ReadFile("class2012.txt");
  14. How do we fill in an array using substring, FileReader and a txt file?

    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
Results 1 to 14 of 14


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center