Blinking Output

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mickey22
    New Member
    • Feb 2007
    • 105

    Blinking Output

    Hi all,

    I am just trying to display the elemnts that I have read from a data file and used a for loop like this

    for (unsigned long int i=0;i<=r_size;i ++)
    {
    cout<<"data is---"<<imgdata[i*sizeof(float)]<<endl;
    }

    imgdata is just an array of float
    I am getting the output but the screen is like kind of blinking.I am not able to see the output.Could anyone please help me with that.Thanks in advance.
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    Try pressing the Pause button shortly after you execute the program to freeze the program and see what the output is. You can continue on by pressing any key.

    Comment

    • horace1
      Recognized Expert Top Contributor
      • Nov 2006
      • 1510

      #3
      you are probably outputing non printing characters to the screen - some of which can control blink, etc

      Comment

      • mickey22
        New Member
        • Feb 2007
        • 105

        #4
        Thank you.Actualy there are many elements to print out.I thought it was some buffer prob.But its not.Its just because of too many elements,

        Comment

        Working...