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 Mike Lewis 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. Hellburn

    writing an expression with #define

    Check that you are not using the define in the function. Where ever you use the define, whether in the main code or a function, the anomalous effect will be the same. What the book is saying is to rather write a function to do the same thing, ie: int max(int a, int b) { return( a>b ? a ...
  2. Hellburn

    <time.h>

    Hi nanimo As far as I'm aware, Visual C++ doesn't have a randomize() function. That was only in the old Borland Turbo C++. The way to randomize in VC++ is by using the ANSI srand() function, which takes a longint "seed" argument. For reasonable randomness, this seed can be taken...

Part and Inventory Search

Back
Top