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: *

  • Users: EoF81
  • Order by date
  1. EoF81

    ASAP : Problems with OnPaint

    Try storing your graph in a CBitmap object and redraw it each time you OnPaint() is called
  2. EoF81

    How to inherit from classes based on CDialog?

    Go to Insert->New Class. Then choose CDialog under Base Class
  3. EoF81

    New to c++ and have a question on setting a form of constant

    To collect keypresses without pressing enter replace "cin >> input;" with "input = getch();"
  4. EoF81

    Overloading operators

    Why the overload? Because you have to implement a way to specify how the actions executed by the operators will affect your objects. OK, let's say that you have created a class named MyClass. Somewhere in your program you have 2 objects from MyClass, let's call them obj1 and obj2. MyClass...
  5. EoF81

    A question for anyone good at C++ ....

    Well, you could read your data into a char array and then go over each element of the array and see if the ASCII code is between 48-57 (numbers 0 to 9). I don't understand how you're creating the matrix. Are you converting the numbers to radix 2? If so, where's the 1? Radu
  6. EoF81

    Simple Array Question

    Well, you can't really remove a position from an array, what you can do is overwrite all the elements from that position to the end of the array with the one imediatelly on the right.
  7. EoF81

    run time memory location

    I'm not sure, but I think you have declared something like unsigned char *ptr_pri_img_red_part; unsigned char *ptr_pri_img_green_part; unsigned char *ptr_pri_img_blue_part; From what you posted I understand that the allocation doesn't work after the first time it executes the loop. Well, if...
  8. EoF81

    Updating files

    You can use the seekoff() function to go to a specific position in a file, then just overwrite your text.
  9. EoF81

    RANDOM SELECTION OF NUMBERS i.e MONTE CARLO

    Well, let's say you want to generate a value between a and b. What you could do is generate a number between 0 and (b-a) and than adding it to a. This way your smallest number will be a and your biggest will be b. Hope that helps. Remember that Visual C doesn't have the random() and randomize()...
  10. EoF81

    Common Languages

    I'm not sure about Quake (I think it's C/C++ if I remember correctly) But some of the newer games are written in Visual C++ since it has both OpenGL and Direct3D support
  11. EoF81

    display a string

    cout<<&quot;Enter A String : &quot;; cin.getline(szStr,40,'\n'); for(nI=0;szStr[nI]!='\0';nI++) { cout<<szStr[nI]<<endl; } } This will display the text the way you need it since after each character is displayed endl is called (this'll make your program jump to the...

Part and Inventory Search

Back
Top