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
User Profile
Collapse
-
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...Leave a comment:
-
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 functionLeave a comment:
-
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 << "__"; }
...Leave a comment:
-
use your random number generator twice for each random move
case:
array[generator()][generator()];
How is you generator constructed?Leave a comment:
-
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...Leave a comment:
-
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?Leave a comment:
-
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?
No activity results to display
Show More
Leave a comment: