Planning to make a game(very basic game) using C++, will probably fail miserably but before i can i need a library which can be used to manipulate graphics. Also, would like it to be dos based....
Type: Posts; User: Ranorith
Planning to make a game(very basic game) using C++, will probably fail miserably but before i can i need a library which can be used to manipulate graphics. Also, would like it to be dos based....
I know it's ASCII value because i specified it when putting it in Notepad (ie, i created that file using the same program, and specified the ASCII value)
I have also confirmed that it is the...
hmm, probably does have to do with being a form feed character. You can "cout" those characters though, try it, many fun characters :D. Though it is probably that which is why C++ is ignoring it when...
I did the check thing (and even added an else statement to be sure), and it definetly is loading correctly. Also, I don't think it has to do with the how i outputted to the file - I've opened the...
tempstring is a character array :
char tempstring[1000];
dunno what other code u really need, but here is the whole load function:
int load()
{
char tempstring[1000] = ""; //the data...
hmmm, ill show u the relevant code:
ifstream lmdb("dataen.sdt"); //load file
cout << "Loading, please wait\n\n";
//load the file into a string
lmdb >> tempstring;
cout << tempstring;
...
Hello, another newb with another file i/o problem here.
I can output ok, not that much of a problem. The only thing is that one of those characters I output to file happens to be an odd one (ASCII...