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 SkipVought 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. dharmon

    Help with visual c++ program

    #include <stdio.h> dl_harmon@yahoo.com http://agdn.cjb.net
  2. dharmon

    Looking for Microsoft C++ compiler for DOS

    What are you trying to do. Do you need a Dos compiler or a compiler to make windows programs from dos? dl_harmon@yahoo.com http://agdn.cjb.net
  3. dharmon

    Beginner's Question on RETURN statement

    You can only return primitives and pointers. If you use pointers to your class, which you should, then it will work. dl_harmon@yahoo.com http://agdn.cjb.net
  4. dharmon

    Line Numbers in MS VC++ 6.0 IDE

    Maybe because it's not BASIC! dl_harmon@yahoo.com http://agdn.cjb.net
  5. dharmon

    coding a sound?

    Find you a library that does that. There are many. You could use DirectX. You could use the library that I like called Allegro. alleg.sourceforge.net dl_harmon@yahoo.com http://agdn.cjb.net
  6. dharmon

    Simple graphics in Visual C++

    http://alleg.sourceforge.net Find a good graphics algorithm. Very easy to use. Portable to many systems and OSes. I use it with MSVC. dl_harmon@yahoo.com http://agdn.cjb.net
  7. dharmon

    Wizards--how to make?

    Don't know how , but you do need the professional version. dl_harmon@yahoo.com http://agdn.cjb.net
  8. dharmon

    HOW DO YOU GET A PROGRAM TO RUN A FEW TIMES-ITERATIONS?

    Heard of a for loop, or a while loop? Or maybe you want recursion? for ( int i = 0; i < 100; i++ ) { // stuff } int i = 0; while ( i < 100 ) { // stuff } int i = 0; do { // stuff } while ( i < 100 ) void my_function( int p ) { // stuff if ( p > 0 ) my_function( p -...
  9. dharmon

    how to run programs from a menu that you created in qbasic

    If you need to share variables or transfer any data then you need to use chain. Shell will simply load the file and run it. dl_harmon@yahoo.com http://agdn.cjb.net
  10. dharmon

    Convert integer to string

    sprintf works with char arrays not strings. sprintf( char * , char *format , ... ); string str sprintf( str.c_str , &quot;%d&quot; , value ); dl_harmon@yahoo.com http://agdn.cjb.net
  11. dharmon

    HOW TO GENERATE A RANDOM 8 BIT STRING

    You'll have to be more specific than that. dl_harmon@yahoo.com http://danielh7.tripod.com
  12. dharmon

    Just a quick question on displaying images.

    I use Visual C++ and I still use allegro. It really depends on how you want to display the image. dl_harmon@yahoo.com http://danielh7.tripod.com
  13. dharmon

    Just a quick question on displaying images.

    You need to find yourself a graphics library for C/C++. I personally use Allegro. http://alleg.sourceforge.net. It is currently available for Windows(w/directx), Dos, FreeBSD, Linux, MacOS. There is a great helper forum just for allegro at www.allegro.cc. I am a member there also...
  14. dharmon

    Vampire numbers

    I was searching the web and found a site about vampire numbers and I realized I made an error. Someof my results were repeated. Also the site said that this is not a vampire number because it is cheating : 126000 = 210 * 600. It is a repeat of 21*60=1260 with a couple of zeros. I don't know, but...
  15. dharmon

    Display as Hex

    #include <iostream.h> const char values[ 20 ] = &quot;0123456789ABCDEF&quot;; void convertToHex( char *str, int p , int pos ) { int a = p % 16; if ( p > 0 ) { str[ pos ] = values[ a ]; convertToHex( str , p / 16 , pos - 1 ); } } void convertToHex( char...
  16. dharmon

    Determining color by pixel in graphics mode

    Use point(x,y) dl_harmon@yahoo.com http://danielh7.tripod.com
  17. dharmon

    Vampire numbers

    I ran it for five digit base numbers and after ten minutes of number calculations. It finally gave me one. 10130 * 99701 = 1009971130 I didn't want to wait for any more. dl_harmon@yahoo.com http://danielh7.tripod.com
  18. dharmon

    Vampire numbers

    I was also curiouse, so I coded it myself. Although not with basic, but with Pascal. And do you realize that the four digit level is really fun. After about 20 minutes that is I made strings out of all three numbers a , b , a*b Using a for loop for StringA, I took each character and if I found...

Part and Inventory Search

Back
Top