Search:

Type: Posts; User: artistunknown

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    5,271

    oh sorry I posted before I saw your post...

    oh sorry I posted before I saw your post laserlight so I will try and code it the way you said makes sense
  2. Replies
    12
    Views
    5,271

    You know the more I think about it I'm still...

    You know the more I think about it I'm still stuck because if I use unsigned int array it includes 0 which I can't include 0 in the problem
    Is there some kind of logic I'm missing here I'm back to...
  3. Replies
    12
    Views
    5,271

    Yeah I guess its not only the end value that...

    Yeah I guess its not only the end value that would be a problem but the minimum value too I guess I just didn't think of it because from 1-100 its 3.00 dollars freight charge but what if I put in a...
  4. Replies
    12
    Views
    5,271

    Well, that makes sense I guess it would have to...

    Well, that makes sense I guess it would have to be the end value because I don't think the beginning value would work because I couldn't test for 9999 and have it be six elements
  5. Replies
    12
    Views
    5,271

    do you think it means actually use three arrays...

    do you think it means actually use three arrays one for the low value and one for the high value and one for the freight charges
  6. Replies
    12
    Views
    5,271

    Yeah it's exactly from the book I don't know a...

    Yeah it's exactly from the book
    I don't know a thing about structures
    but you would suggest using a structure. I guess Thanks I guess I got some reading to do I don't want anyone to do the problem...
  7. Replies
    12
    Views
    5,271

    You know I got to thinking maybe a two...

    You know I got to thinking maybe a two dimensional array could work!
  8. Replies
    12
    Views
    5,271

    Question about arrays?

    Example 7.9 Calculate freight charges

    Design an algorithm that will read an input weight for a item to be shipped., search an array of shipping weights and retrieve a corresponding freight...
  9. Well I figured it out myself I made a mistake in...

    Well I figured it out myself I made a mistake in my code:


    else
    {
    Console.WriteLine("ERROR: {0} could not be created", INPUT_FILE);
    ...
  10. I can't figure out why I can't get no ouput

    using System;
    using System.IO;
    using System.Text.RegularExpressions;

    namespace Chapter6Problem10
    {
    class Program
    {
    const string INPUT_FILE =...
  11. Replies
    5
    Views
    1,265

    I thought closing the files would help but it...

    I thought closing the files would help but it doesn't

    Your code works just fine I just don't understand why my doesn't I figured I had everything needed in there
    I was just trying to write it...
  12. Replies
    5
    Views
    1,265

    now I know what I did wrong and you gave me the...

    now I know what I did wrong and you gave me the idea whiteflags I forgot to close the files dam I'm stupid
  13. Replies
    5
    Views
    1,265

    Trying to understand Files better

    using System;
    using System.IO;

    namespace FileExperiment
    {
    class Program
    {
    const string INPUT = "\\Projects\\FileExperiment\\FileExperiment\\Test.txt";
    const string...
  14. Replies
    33
    Views
    10,489

    I didn't realize what I was writing makes sense...

    I didn't realize what I was writing makes sense
    Thanks everyone for teaching me a little about Regular expressions.
    I probably would have giving up by now if it wasn't for this forum
  15. Replies
    33
    Views
    10,489

    I kind of thought that spacing didn't matter in...

    I kind of thought that spacing didn't matter in this statement or declaration whatever its called " Regex validate = new Regex(@"[A-Za-z]{2}\d{4}"); "
    I was getting mixed up about this code " ...
  16. Replies
    33
    Views
    10,489

    sorry itsme86 I know you were right all along...

    sorry itsme86 I know you were right all along about the spaces my bad
    I read the posts but I think I got a little mixed up about what it meant
  17. Replies
    33
    Views
    10,489

    cstryx I'm curious why you say Regular...

    cstryx I'm curious why you say Regular Expressions are slow my book acts like Regular Expressions are very useful but I still like your approach to it
  18. Replies
    33
    Views
    10,489

    Wow whoever you are you know your ........ this...

    Wow whoever you are you know your ........ this code is kickass I haven't learned string manipulation yet but I hope to learn it pretty soon also I thought this


    [A-Za-z]{2}\d{4}

    ] {2}\d {4}...
  19. Replies
    33
    Views
    10,489

    Cat sorry about me saying what the heck is that...

    Cat sorry about me saying what the heck is that stuff
    that code is a little too sophisticated for me it goes over my head what I really wanted was just to validate a string with 2 characters and...
  20. Replies
    33
    Views
    10,489

    I get it now this works perfectly ...

    I get it now this works perfectly

    @"[A-Za-z][A-Za-z]\d\d\d\d"

    me gets why this works now
  21. Replies
    33
    Views
    10,489

    I don't know why this code works can someone...

    I don't know why this code works can someone explain why it does (@"[A-Za-z]\d\d\d\d") I don't see how come I don't have to have a place holder for the characters I don't know why this works but it...
  22. Replies
    33
    Views
    10,489

    my code does work I figured out on my own just...

    my code does work I figured out on my own just today this is all I had to do to validate the code what the heck is all that stuff your talking about





    Regex validate = new Regex(...
  23. Replies
    33
    Views
    10,489

    here's the attachments if you want to look at them

    here's the attachments if you want to look at them
  24. Replies
    33
    Views
    10,489

    anyway it doesn't say how to validate the part...

    anyway it doesn't say how to validate the part number so I did something a little different here's my code:



    using System;
    using System.IO;
    using System.Text.RegularExpressions;

    namespace...
  25. Replies
    33
    Views
    10,489

    I think I was interpretting the problem wrong here's the problem

    A parts inventory record contains the following fields:

    1. record code (only code 11 is valid)
    2. part number (six characters; two alpha and four numeric, EX. AA1234
    3. part description
    4....
Results 1 to 25 of 208
Page 1 of 9 1 2 3 4