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. Orcbighter

    TImer in c or c++

    If you are writing a single-threaded program, use Sleep fn to wait a specified number of milliseconds. If you are writing a multi-threaded program do not use Sleep as it could cause all threads to sleep, rather, use the WinNT timeSetEvent() fn.
  2. Orcbighter

    'cout' ambiguous symbol???

    Your code is a bit unclear, but one reason for the "ambiguous" error is that the compiler thinks the cout command is being multiply defined. This can happen if header files are included more than once. Unlike Java, the header file is where the class definition is declared ( a bit like...
  3. Orcbighter

    Will someone please give me an example of a Working class!!

    THe header file is used to declare what tyhe class is and what methods are available. The cpp file is used to instantiate the class; that is write the code for each of the methods declared in the header file. // SApplication.h #include <iostream.h> #include <string> using namespace std...
  4. Orcbighter

    Help with code used for reading in a file

    Your problem is that the count variable is inside the while loop, so each iteration re-initialises it back to zero. your code ... while (!DataIn.eof()) // While more entries { int count; DataIn.read((char*)&entry,sizeof(DataIn)); ... } should read int count = 0; while...

Part and Inventory Search

Back
Top