Well, does it?
Type: Posts; User: Zahl
Well, does it?
BUFSIZ is declared in stdio.h but I havn't been able to find out exactly how big it makes the buffer when I use it.
I'm just curios. :)
As a last question (on this thread :D) why the i <= length? Wouldn't File.get(ch) not always end the loop when needed?
I've tested the following three while loops and it is only the one Salem have shown me that actually works without reading to few or to many characters.
Why is that?
Besides... I thought get()...
Yeah you might think so, but this code is made with borlands AnsiString instead of string, and when you use AnsiString it starts with 1 instead of zero. ;) - Besides... I've checked.
String TTextFile::Load() const
{
String Text;
ifstream File(itsPath.c_str());
if (File.is_open())
{
while (File.good())
{
The comments are in danish so you probably wont understand them, but since the code is fairly simple I don't think it will be a problem.
The error is this:
If you are to load a file that contains...
That WinXP like win98 and win95 accepts NULL-connections where win2000 don't?
The funny thing is that logically should WinXP like win2000 not accept these NULL-connectrions.
What do you mean by "MS Windows" how does that differ from Windows?
BTW do you give me that link be´cause MSDN and MFC is the same thing?
Besides being a "wrapper" for win32 what does MFC do (Microsoft foundation classes).
BTW is all API's that makes it possible to make windows applications based on win32?(SDL)
I doesn't have any further to add...
Now look at this:
2/3 = 0.666...7
How come that it then produce 2 in the example.
*EDIT* I just turned to my English-Danish book and found out what reaminder means. Sorry guys :rolleyes:
Well he shows how this work with:
rand returns - 0,1,2,3,4,5,...
rand%3 returns - 0,1,2,0,1,2,...
But if you say 2/3 the remainder wont be 2 but 3...
How come that modulus have this effect?
the word "seeds" seems strange to me. Plz help me out. (Denmark)
Oh, and besides that... what is the point of modulus in all this?
what about endif then... it's always placed in my code automaticly by my compiler so I really don't know what it does.
BTW can one use define to other things but values like including headers?
But I thought % <- was a modulus... how does this have to do with a random number?
Other then that... what is the difference betwem rand() and srand() along with what does this line do:...
I've never used these before, but from time to time when reading other peoples code I stumble upon #ifndef and #pragma. What does these do. they got a be in familly with #define and #include right?
#include <iostream.h>
#include <stdio.h>
It was made in C instead of C++... that amaze me man! :eek:
Union really isn't needed much anymore since todays computers can spare the memory you will waste when having an int and an double even if you only need the double in one situation.
So the only thing better about WIN32 is that it is perfect for windows apps.
Is there any good tut's anyone would recomend about how the regedit works and how one use it.
Further more... I've noticed that when people talk about regedit they say HKLM and stuff like that...
Is it a good idea to start learning win32 before SDL or is it a waste of time since SDL has win32 "in it".
I have already learnt both I would just like to know if I have completly wasted my time....
I have finally found out what is the hardest part of C++ (or any coding language) is isn't the language or the methods and "tricks" but those darn API's.
The problem is that since I havn't made the...