Look up memset.
Type: Posts; User: /Muad'Dib\
Look up memset.
Obviously. Exatly what requires them? I'm sure there are several reasons, one or two would help.
Could someone explain to me the purpose of the STL iterators and generally when they should be used? Thanks.
Thanks for the links.
I was trying to use the _outp, _in functions in my code, but under windows xp those are priveleged instructions. How can I allow my program access to kernel mode (like device drivers) so I can use...
t is just a pointer to a test object. Your code does not tell t to point to any object. If you wrote Test * t = Test_Object (Where Test_Object was already defined in your code) deleting it should not...
Ok I see. I suppose theres no real way to decode dlls either.
I'm trying to view the implementation of windows functions by looking at the libraries. (kernel32.lib in this case) However, I only get machine code, which I expected, but can't make anything out of...
Yours compiles correctly on my machine. Post the entire code, it looks like there might by a global variable name conflict.
Post the code.
Inline assembler is used for optimizing code inside your program, or writing routines that are much faster when written in pure assembler and not c++. I do not believe that you can include a full...
How does one create their own file format in c++? I'm going to store some rather complex data for a game I am writing, and the .txt or .dat format is to convoluted and not exatly what I'm looking for.
Delete double post. You probably are getting an access violation, i.e. j is larger than the vector size.
I was wondering If anyone here knows how to load bitmaps into a console window without using win32 specific code. I know I have to use BITMAPFILEHEADER, BITMAPINFOHEADER, and RBGQUAD, but I haven't...
The exception errors are probably due to problems within your linked list. For a simple sorting algoritm, google for 'bubble sort'.
WSAGetLastError() should not be returning five. All error codes are within the bounds of 10000 and above. On a side note, the function requires winsock2; make sure you're not using plain winsock. If...
void Shoot_Left (void Draw( CHAR_INFO scene[50][80] ), CHAR_INFO scene[50][80], Linked_List<Entity> &LL_ENTITY );
and the function placed in paramater 1:
void Draw_Maze(CHAR_INFO...
Ok sorry. I was under the impression that system was strictly windows. My mistake. And as for CreateProcess, yeah its less portable. I didn't bother looking that up. :o
How will it not work? CreateProcess() can open any app as long as the path is specified. If you wanted me to go into a full description of the function, sorry I don't have the time.
system() calls aren't portable. You would be better of using CreateProcess(). It allows you to control the application you spawn better as well.
Thanks for the help. I fixed the problem.
It depends on what your looking for. If you want to take the string "This is a string. This is another part of this string." And separate it into two strings (one for each sentance) you would iterate...
Parsing a string. I.e. taking "This is a string" and turning it into several strings. ("This", "This is a", Thi", "a stri" etc)
Not quite sure about the image. Heres the simplest code to open a program.
#include <windows.h>
int main()
{
WinExec("notepad.exe", SW_NORMAL);
return 0;
#include <iostream>
int main()
{
char input[20]; //the buffer should be larger
std::cout << "Enter input: ";
std::cin >> input;
int count = 0;