Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 31,934 points

rettix

Favorite Answers64%
Answers123
  • Need a little help with C?

    Hi, I am writing a program that is reading from a .dat or .txt file with 250 columns and 4000 rows. I am creating linked lists to handle all of the data, but my problem is coming from actually reading the data in.

    What i would like to do is have 250 nodes of one type of linked list. So, my question is how do I read in just one line at a time while still capturing each set of numbers from each line? So I can reset my main linked list back to the root node when I reach the end of the line. For example, I want to have 250 nodes for the main list, and then have 4000 nodes in another linked list stemming from each of those 250 nodes.

    This is what I am using to read from the file:

    while( fscanf( input, "%lf", &data) == 1){

    //do stuff

    }

    And of course as you can imagine it doesn't recognize line breaks. It just continues to create new nodes until the end of the file. Hope this makes sense.

    3 AnswersProgramming & Design1 decade ago
  • java help?

    Hi, I am working on a java program where a user enters some values. The format entered by the user is in the form of String + int + int + double. The problem is if the string is more than one word it doesn't work correctly. I'm using:

    myScanner.next();

    myScanner.nextInt();

    myScanner.nextInt();

    myScanner.nextDouble();

    I think the whitespace is messing everything up. How would I go about taking the string as any number of words without messing up the next int?

    2 AnswersProgramming & Design1 decade ago
  • java object help?

    Hey, I am writing a program and I am stumped. During the program I am creating several of the same type objects. I am trying to give each object it's own "reference number" I guess you could say. But, after all the classes are created, all of the objects have the same number assigned to them. This is an excerpt of what I am using when creating an object and assigning a number.

    private static int Number = 0;

    static int count = 0;

    public xxx(){

    this.Number = count;

    count += 1;

    }

    It seems that all of the objects are going back and grabbing the last value of count and using that.

    2 AnswersProgramming & Design1 decade ago
  • Variation of Parameters?

    I am stuck on a variation of parameters problem.

    y'' - y = coshx

    I can find yc which is yc = c1e^x + c2e^(-x)

    But I am having difficulties with the yp. I am ending up with:

    u1 = (hsinhx-coshx) / [(2h^2+2)e^x]

    u2 = [(coshhx+hsinhx)e^x] / (2h^2 + 2)

    and when i do u1y1 + u2y2 i get:

    yp = (hsinhx) / (h^2+1)

    The correct answer for yp is suppose to be:

    yp = (1/2)xsinhx

    with a final solution of y = c1e^x + c2e^(-x) + (1/2)xsinhx

    Any help would be greatly appreciated.

    1 AnswerMathematics1 decade ago
  • Differential Equations?

    I am stuck on a variation of parameters problem.

    y'' - y = coshx

    I can find yc which is yc = c1e^x + c2e^(-x)

    But I am having difficulties with the yp. I am ending up with:

    u1 = (hsinhx-coshx) / [(2h^2+2)e^x]

    u2 = [(coshhx+hsinhx)e^x] / (2h^2 + 2)

    and when i do u1y1 + u2y2 i get:

    yp = (hsinhx) / (h^2+1)

    The correct answer for yp is suppose to be:

    yp = (1/2)xsinhx

    with a final solution of y = c1e^x + c2e^(-x) + (1/2)xsinhx

    Any help would be greatly appreciated.

    1 AnswerMathematics1 decade ago
  • need a little calc help please?

    Could someone please tell me what the anti derivative of 5x ^ (-1) is , or give me a hint of some kind?

    2 AnswersMathematics1 decade ago
  • boot problem?

    hi, i just recently aquired an old pc. its got a P1 133MHz, 1.5GB hd, 32MB ram. i was just wanting to mess around with it and put a distro like puppy linux, or even linux from scratch on it, just a computer to mess around with really. but, for some reason when i try to boot from a cd, it hangs up at "Insert bootable media in the appropriate drive". ive tried like 8 old linux .iso's that i had laying around, and it hung up on all but one, Coyote Linux. i am puzzled, why it would allow only one .iso to boot but no others. ive checked all connections and jumpers etc... i dunno, any any ideas much be greatly appreciated, thanks.

    1 AnswerDesktops1 decade ago
  • after clean reinstallation of XP?

    I just reformatted and reinstalled XP. Now when i turn my computer on after the BIOS screen there are these white blocks at the bottom of the screen that takes about 30 seconds to get past, then windows starts loading. Its the same disc i have used to install XP before, but this is the first time it has done this. It doesnt seem to be affecting anything, it just takes alot longer to boot up now. Just thought it was odd, anybody have any thought on this?

    1 AnswerOther - Computers1 decade ago
  • blue screen of death?

    I have been getting the beloved BSoD lately. Seems like it just started doing it after firefox updated. Sometimes after a BSoD when i restart the computer it tells me no hard drive detected. Ive had the computer for 3 years, and it just started doing it, no new hardware installed in a while. Any thoughts?

    4 AnswersOther - Computers1 decade ago
  • c++ for beginners, now what?

    I just finished a c++ for beginners book. I know the basics, can build some pretty nice console apps and stuff, but my question is; Where do i go from here? I cant seem to find anything that transistions into windows apps/games and things like that. It seems that all the books/tutorials are all either very beginner or advandced, I feel kinda stuck. Any advice would be greatly appreciated. Thanks.

    5 AnswersProgramming & Design2 decades ago
  • java or c++?

    Hey guys. I am having a hard time deciding on wich language to stick with. I know the basics of both, but i would like to choose one of them to really get into. I would eventually like to learn both of course. Any personal experience/info would be great. Thanks.

    8 AnswersProgramming & Design2 decades ago