Really, who writes this stuff? Sounds worse than my physics textbook.
I recommend just reading several different website's tutorials on friend classes to get a better idea. Sometimes books can...
Type: Posts; User: execute
Really, who writes this stuff? Sounds worse than my physics textbook.
I recommend just reading several different website's tutorials on friend classes to get a better idea. Sometimes books can...
It's really a needless code, I wouldn't ever use something like that. It doesn't even look right. I don't even think it's used in this code heh. I don't even know what the typedef is called... Is it...
In other languages like C# and Java there is a
try {
Something
} catch(Exception e){
} finally {
delete ....;
file.close();
Of course it's good practice. You learn that when you create something new, you learn to delete it. You use malloc you learn to free. It is good practice and it frees up memory faster than letting it...
If you try to search for some C++ IRC clients, there may be open source tiny programs that implement basic IRC features (they are popular so there should be many). They are very simple commands that...
Definitely make sure you check the error messages if any with WSAGetLastError(), make sure you log and output everything to make sure you diagnosed the problem correctly.
I'm not sure if I'm just imagining things but is this right?
HINSTANCE hinstDLL_;
myClass myInstance( _hinstDLL );
I think your code should be in Windows Programming section.
And it seems like you have too much information here, you need to isolate your problem.
You know a simple googling of a file/vector tutorial might have helped you out a lot more.
You know I always seem to use strings instead, never had a need to use stringstream except in special cases, especially conversions. Perhaps if you keep having to reuse a stringstream might as well...
When using ofstream it is good practice to definitely always stream.close(); after you've finished using it. It's definitely the safer way.
This might be old but I thought i'd help some of you out...
If you have "cout << right << num1 << num2 << num3 << num4;
I don't think num2,3,4, will have the right align. Doesn't seem to work...
What is the IDE you are using?
Code::Blocks should be fine way to compile things. Even DEvC++ is that what you're using?
Perhaps you downloaded the IDE but clicked "no" to download the mingw...
You could try using a tutorial online for C++ Classes or cplusplus.com has a nice one as well. Hope it helps.
It looks like you are building it in C#...
If you wanna build it in C++, you would need to use a graphics library such as SDL or allegro, but if you want it simple like yours, a normal GUI library...
Yep indeed we are.
I do believe an array name IS the first value's address.
For example:
int array[5];
*(array) = 5;
array[0] = 5; // same thing
Wow guys, awesome delayed slow-motion response :P. I already said that :P. hehehe
A C array is very simple, you can ask the user:
int value;
int array2d[10][5];
for(int k = 0; k < 10; k++){
for(int i = 0; i < 5; i++){
cout << "What is value for index i " << i << "...
I believe it's 3 times the loop.
and why do you do :
pid = fork();
if ( (pid=fork()) > 0) {
Isn't one pid = fork() enough?
If you mean in the code, I believe there is a way to grab a BMP handle and check it's dimensions using RECT.
If you mean outside, use photoshop or something.
If you are in the same program, then yes you check the WM_PAINT being sent to the program. However, in a separate program, you'll have to do some DLL injection or Hooking probably.
Everyone seems to be encouraging me to really look into DirectX itself.
The thing is, I was always assuming that a game engine that wraps itself for DirectX would simplify things, but when I look...
Do you mean in console?
system("cls");
That should do it.
I was wondering about all the choices for game engines.
Learning DirectX and OpenGL is one option, but it can be tedious to learn especially since resources online are scarce (somewhat). There's...