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

Search:

Type: Posts; User: gamer1127

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Re: Problem with sorting strings using Radix Sort

    If I get the ASCII codes first then pass it to the radix sort this is what it shows me:



    SHOW DATABASE: SORTING BY LAST NAME

    0

    0
  2. Re: Problem with sorting strings using Radix Sort

    Do I have to get the ASCII code before using the code in the link you gave me? Because I already tried the code there but before using that I first got their ASCII code before passing the string to...
  3. Re: Problem with sorting strings using Radix Sort

    Originally that is in java code:



    count[arrayOfLastNames[i].charAt(d) + 1]++;


    I was told to use an indexer so i can use the code in sharp

    by the way, I only got the whole code from the...
  4. Re: Problem with sorting strings using Radix Sort

    Ah..ok..I found it..



    System.IndexOutOfRangeException was unhandled
    Message="Index was outside the bounds of the array."
    Source="VehicleRegistration"
    StackTrace:
    at...
  5. Re: Problem with sorting strings using Radix Sort

    Uhm..Is that the call stack? If that's it here it is:


    > VehicleRegistration.exe!VehicleRegistration.Program.SortByLastName(ref string[] arrayOfLastNames = {Dimensions:[30]}, ref string[]...
  6. Problem with sorting strings using Radix Sort

    Hello. I'm having a problem with the codes I used to sort the strings from the text file using Radix Sort. I always get the IndexOutOfRange exception.

    Here is the code that causes the exception:
    ...
  7. Replies
    7
    Views
    2,149

    Re: Sorting String from a text file

    Disregard my original thread. The Radix Sort code that I got is not the appropriate one to use for my program so now I won't be converting all the strings to ASCII code.

    Now, can I ask some help...
  8. Replies
    7
    Views
    2,149

    Re: Sorting String from a text file

    I forgot to say that i can't use Array.Sort() because we're implementing what we have discussed about file organization. Because we discussed some sorting algorithms, including radix sort, we will...
  9. Replies
    7
    Views
    2,149

    Sorting String from a text file

    Hi. I'm creating a program that has a function that will sort a string that came from a text file. First, I retrieved the string and stored it into an array. After that I'm planning to convert all...
  10. Re: Avoiding Random() Class to generate the same number

    I already solved the problem but there are still two numbers being stored in the array. Is there a way to prevent it?
  11. Avoiding Random() Class to generate the same number

    Hello.

    I'm having a little problem with the Random() class generating the same number. Only the first index is being validated and the rest has the same number.

    so far this is my code:


    ...
  12. Replies
    1
    Views
    672

    Array in Class

    Hello.

    I am creating a simple program that will allow the user to enter 6 random numbers then after that a Random() class will generate 6 random numbers then verify if the random numbers generated...
  13. Re: Hashing, Graph, File Organization, and Memory Management

    Uhm...I just want to have some references about the topics so I can study them for our class...
  14. Hashing, Graph, File Organization, and Memory Management

    Hello.

    Can someone help me about some online reading resources about the topics i made as the title of this thread. I find it hard in determining which sites are very useful and complete in...
  15. Replies
    0
    Views
    772

    Help with online reading resources

    Can anyone give me some links where i can read about hashing, graph, file organization, and memory management because i find it very hard for me to determine which sites are complete in discussing...
  16. How to check an entered statement if it's a correct syntax or not

    Hello. I just want to know how to match an entered statement to a regex pattern so we can know if the entered statement meets the needed syntax for the pattern.

    as of now this is my code:



    ...
  17. Replies
    5
    Views
    1,250

    Re: For Loop Statement Pattern for Parser

    ah..ok..i understand now...i'll now think of how to do it..hehe...thanks for the help...


    As for ignoring spaces, i just want to make sure if the .Trim() method would do the operation?

    and...
  18. Replies
    5
    Views
    1,250

    Re: For Loop Statement Pattern for Parser

    Ok. I understand. Did the pattern that i made satisfies a simple for loop statement?

    for example:

    -for(int x=1; x<=10; x++) Console.WriteLine("Hello World");
    -for ( int x = 1 ; x <=...
  19. Re: For Loop Statement Pattern to use in Parser

    The answer to that is its just intended to parse a basic for loop...that's why all of my examples are very simple...hehe....the reason why we're creating a parser-like program is to apply one of the...
  20. Re: For Loop Statement Pattern to use in Parser

    In that case i should change that pattern. Just to make things clear, we were instructed that we can only have one statement so we will not need to include the curly braces for a block statement. So...
  21. For Loop Statement Pattern to use in Parser

    Hello, I'm creating a program that parses a for loop statement, i can do all other things that were need for a parser, now my problem is the pattern to check if the for loop statement that the user...
  22. Replies
    5
    Views
    1,250

    For Loop Statement Pattern for Parser

    Hello, I'm creating a program that parses a for loop statement. I'm all done to the other things needed for a parser, now my problem is the pattern i wrote for the syntax of a for loop statement.
    ...
  23. Replies
    1
    Views
    816

    Tokenize a string

    I need help on how to tokenize a string so i can then parse it. I'll then implement it using c#. Since we just started discussing c#, i don't know much of it.

    Here is an example of the string i...
  24. Replies
    1
    Views
    926

    Tokenizing a string

    I need help on how to tokenize a string. I have written a code but it seems it doesn't work.

    Here is the code:




    using System;
    using System.Collections.Generic;
    using System.Text;
  25. Replies
    1
    Views
    1,180

    Terms used in Parsing

    I'm having a problem with the terms used in parsing, particularly: delimiters, nonterminals and terminals.

    from what i understood from the definitions, delimiters are like markers for the compiler...
Results 1 to 25 of 37
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured