Changeset f1fb54b9f7 in tspsg for src/globals.h
- Timestamp:
- Jan 7, 2010, 2:24:18 AM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 946f442ab0
- Parents:
- 4ccf855df8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/globals.h
r4ccf855df8 rf1fb54b9f7 46 46 //! Default number of cities 47 47 #define DEF_NUM_CITIES 5 48 //! Default value for generating fractional random values 49 #define DEF_FRACTIONAL_RANDOM false 48 50 //! Default value for showing or not solution step matrices 49 51 #define DEF_SHOW_MATRIX true … … 52 54 //! Default maximum number of cities to show solution step matrices 53 55 #define DEF_SHOW_MATRIX_CITY_LIMIT 15 56 //! Default for scrolling to the end of output after solving 57 #define DEF_SCROLL_TO_END true 54 58 //! Default font name 55 59 #define DEF_FONT_FAMILY "Courier New" … … 108 112 #define INFSTR "---" 109 113 114 // FUNCTIONS 115 /*! 116 * \brief Checks whether \a x contains an integer value 117 * \param x A value to check 118 * \return \c true if \a x countains an integer, oherwise \c false 119 */ 120 inline bool isInteger(double x) 121 { 122 double i; 123 return (modf(x, &i) == 0.0); 124 } 125 110 126 // Sanity checks 111 127 // Check that default number of cities is sane (<= MAX_NUM_CITIES)
Note: See TracChangeset
for help on using the changeset viewer.