for(int i = 1;i<1000;i++) { int tempx; int tempy; int high = 0; double highs = 0; writeln("Type in data for an egg:"); write("Chicken: "); readln(tempz); write("Width: "); readf(" %d",&tempx); write("Hight: "); readf(" %d",&tempy); data[i] = new egg(tempx,tempy,cast(string)tempz); //... Anything that will fix this?
Why does calling readln() more than once not work
Ruby The Roobster via Digitalmars-d-learn Thu, 28 Jan 2021 11:30:28 -0800
I call readln() on a variable in a loop. On the next iteration,
it's as if the readln() is ignored, as it moves on to the next
line apparently. Here is the code:
- Why does calling readln() more t... Ruby The Roobster via Digitalmars-d-learn
- Re: Why does calling readln... Ruby The Roobster via Digitalmars-d-learn
- Re: Why does calling readln... Adam D. Ruppe via Digitalmars-d-learn
- Re: Why does calling re... Ruby The Roobster via Digitalmars-d-learn