User Profile

Collapse

Profile Sidebar

Collapse
DemonPiggies
DemonPiggies
Last Activity: Jan 3 '07, 02:46 PM
Joined: Dec 7 '06
Location: Westerly, RI
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • DemonPiggies
    replied to game help
    in C
    I know my toshiba satelite using metrowerks in java don't like anscii it uses some other default as it's base I can't remeber which...
    I believe C++ and Java have a function where you can format your char's into anscii values instead of it's default
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    replied to game help
    in C
    that does not work for every system
    getting anscii values depends (A) on hardware and (B) on the enviroment in which your programming

    ...there is probably some table with those values you can go against....
    some enviroments have a unction for that but that'll depend on the enviroment...
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    replied to game help
    in C
    use char[ letters ][ numbers ]
    you can always cast the numbers as char using some one line function
    char convert( int number )
    {
    switch( number )
    case 1 etc.
    }

    or
    use an enumerator (probably the easiest)
    or submit and use an int array[][] and whenever you need a letter use something like some function
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    replied to game help
    in C
    Are you having problems getting the user's input for cord.'s? or just gernerating then?
    is this code for graphically showing the table?
    (I added some '{' for better reading )
    for(int i=0; i<=size; i++)
    {cout << setw(1) << top << " ";}

    cout << endl;

    for(k=0; k<=27; k++)
    { cout << "__"; }


    ...
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    replied to game help
    in C
    use your random number generator twice for each random move
    case:
    array[generator()][generator()];

    How is you generator constructed?
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    replied to find word in file
    in C
    it also covers the " in.seekg(0,ios: :beg) "
    which you'll probably use to read each line and then maybe dump it in to a string (which might be easier to compare) and compare sl ( the user's string) with each character in the file...
    like if( sl[x] == (Character from File) )...
    well something like that, just make sure you add so error coding tho...
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    replied to find word in file
    in C
    this site has info about the ios::beg
    http://www.cplusplus.c om/doc/tutorial/files.html
    it should be able to help you thru the search
    I've used those funct.'s before so I can't really help without rewrite the program
    but i'm assuming you need it to work with the one you posted right?
    See more | Go to post

    Leave a comment:


  • DemonPiggies
    started a topic How to Get Disk Size (CD or DVD) in VC++ 6.0?
    in C

    How to Get Disk Size (CD or DVD) in VC++ 6.0?

    I'm trying to create an error checker for copying to disk( CD/DVD )...
    I need to check if object is too big for user's blank disk...
    case: user puts in a blank disk (CD) but needs a DVD instead because file/object is too big for CD...
    there must be some MFC function for this right?
    See more | Go to post
No activity results to display
Show More
Working...