Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. zytryt

    Overflow for Intermediate Results

    I am wondering why the following code works: double x,y,z,w,v; x = 2.0e300; y = 1.0e300; z = 1.0e300; w = 1.0e300; v = (x*y)/(z*w); cout << &quot;v = &quot; << v << endl << endl; The correct answer of 2 prints out. However, both numerator and denominator exceed the range of double, which is...
  2. zytryt

    Code to clear screen in Visual C++

    I had this same original question. How do you clear the screen? I tried the above suggestions. &quot;cls&quot; produces an &quot;undeclared identifier&quot; error. I tried it with and without the suggested header file; in lower-case and upper-case letters; and with and without empty parentheses...
  3. zytryt

    Console Application Problem

    Sorry guys! After retrying the suggestion, I did make it work. However, after right-clicking in the DOS window bar, I had to select &quot;Default,&quot; not &quot;Properties.&quot; That allowed me to change the default settings from &quot;Full Screen&quot; to &quot;Window.&quot; The next time I...
  4. zytryt

    Console Application Problem

    I tried this suggestion, and it was a dead end. The alt-enter did switch the full-screen execution to a DOS window, but when I looked at the properties of this window, under &quot;Display Options&quot; it already said &quot;Window&quot; rather than &quot;Full Screen.&quot; However, the next time...
  5. zytryt

    Console Application Problem

    I have written a &quot;Win32 Console Application.&quot; When I compile it, the ENTIRE monitor screen (Windows desk top and all!) blanks out for a moment. Then everthing, including the VC++ window reappears. The same thing happens when I build (link) the exe file. When I execute the program, the...

Part and Inventory Search

Back
Top