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 Wanet Telecoms Ltd 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. Ninkazu

    Simple array question

    I pascal and QBasic, you can specify a beginning entry number and ending entry number. Is this possible to do in C++? ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum! -----------------------
  2. Ninkazu

    Trigonometry

    Actually, cos is a function included in math.h, and uses radians, so it would be prototyped with int. To convert degrees to radians, just multiply degrees by pi, then divide by 180. Or, to save processing time, multiply it by a constant you make called PI180, than holds pi/180...
  3. Ninkazu

    Opening files from the current directory?

    Is it possible to use a CHDIR "." or will that not work? ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum! -----------------------
  4. Ninkazu

    chat program

    You could also make a windows slave program in C++ or *shudder* VB. That's what DS4QB++ did (and the others). It allowed you do use direct sound in QB, but actually had a windows program taking commands from the qb program. ----------------------- http://www.venosoft.com Soon to come - a QBasic...
  5. Ninkazu

    Darkness Ethereal back from the dead?

    I knew the old bugger would come back! :) ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum! -----------------------
  6. Ninkazu

    int main() not found, but it's there

    Here's my error message: Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Algebra.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum...
  7. Ninkazu

    int main() not found, but it's there

    I'm just starting to do SDL in C++, and I wrote a program to test it out, and basically it plots a big spray of particles on the screen. The problem I'm having is an external error in compilation saying int main() doesn't exist, when it's clearly there. Please help, because it's driving me nuts...
  8. Ninkazu

    Masking an image.

    What format are you reading the gif into? PUT format, or a multidimensional array? You should just write your own drawing routine. (Are you using SCREEN 13? I know most about that) ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum! -----------------------
  9. Ninkazu

    What is the default of PALETTE?

    Unless you're going to flip palettes around every 1/30th of a second, I don't see why you'd waste so much memory... ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum! -----------------------
  10. Ninkazu

    What is the default of PALETTE?

    You really don't have to waste the memory like that. A simple PALETTE call will suffice. ----------------------- http://www.venosoft.com Soon to come - a QBasic contest forum! -----------------------
  11. Ninkazu

    What is the default of PALETTE?

    actually, I'm pretty sure the original colors can be restored by using the PALETTE command with no parameters. If you want to manipulate the palette, and you're in SCREEN 13, I suggest you use the much faster way doing this: OUT &H3C8, palIndex OUT &H3C9, r OUT &H3C9, g OUT &H3C9, b I know it...
  12. Ninkazu

    Renameing a file.

    I'm not sure about this, but I think there's a NAME command. I know this because I tried to use name$ for a variable once, and it wouldn't let me. Ok I just looked and its prototype is: NAME oldfilename AS newfilename Hope this helps :) This signature is subject to change without notice.

Part and Inventory Search

Back
Top