Hello there, I was just practicing my Linked Lists. I have come out with some code, works well with exception of the first element that I insert. Can anyone please tell me what I did wrong? So far...
Type: Posts; User: toonlover
Hello there, I was just practicing my Linked Lists. I have come out with some code, works well with exception of the first element that I insert. Can anyone please tell me what I did wrong? So far...
Well....to load a bitmap you have to declare a BITMAP pointer like this:
BITMAP* my_picture = loadbitmap( file to load here );
What I want to do is this:
(BITMAP*) *frames[size];
Hello there! I am starting allegro and am getting familiarized with it... I am trying to device a structure that holds a dynamically sized (BITMAP*) array. However I get a compile error when I try to...
Well that's odd. I originally began to code this with Code::blocks, and then I migrated to Visual Studio 2005 w/out any service packs installed ( might be the reason? ). I tried to recompile the code...
Crap! Did not know why I was doing that! That was an error generated right after fixing the errors I previously asked. It all works now! Although when I compile it in DEBUG mode it still forces that...
I have provided the definitions, although I don't think the constructors or Add() functions are the problem. I runs fine in Release Mode, however when i try to access a container through the pointer...
Yes, I did check the debugger and it breaks before entering the first iteration. I have fixed the *it++ but the error still prevails. I am getting a headache here....:(
This is what I got for Call Stack:
> NewMedicine.exe!main(int argc=1, char * * argv=0x00365ea8) Line 19 C++
NewMedicine.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
...
Go ahead and try Code::Blocks @ http://www.codeblocks.org/
In contrary to netbeans it is completely dedicated to C/C++. I also downloaded netbeans two days ago, after already having Code::Blocks...
Well this is the section of code located on list.h that apparently is making my code break:
304: #if _HAS_ITERATOR_DEBUGGING
305: void _Compat(const _Myt_iter& _Right) const
306: { //...
How about instead of using
clrscr(); to clear the screen, you use
system("cls");?
was int load() declared on your load.h header? Here your just declaring another function called load() on a...
Thanks for the reply! Well here are my thoughts:
while( *it != mynewList->GetList()->end())
{ //EXPLANATION(S)
Results->push_back(&**it); //*it = iterator which points to a...
Thanks for your replies! Daved, I cannot add the type at line 309 because it is from <list.h>, I mess with that I mess with the entire library, anyhow VC++ 2005 locks the file from being modified. ...
Currently I haven't practiced pointers that often, and I want to know all aspects of C++. Thanks for your reply! Unfortunately I still receive the same error.
Hello there! I am currently coding the base of a future program. However, after compiling the code(no errors), there is a forced brake point. The Error says: Debug Assertion Failure, Expression: List...
Hello there! I am reacquainting myself with C/C++ after a few years of not practicing it. I am practicing Linked Lists but I cannot succeed in compiling a code. Take a look:
Base Class Declaration...
thanx!!
So how exactly do I implement that function in this case??
Hello you guys! I don't know why my compiler is giving me this error:
code.cpp(23) : error C2296: '^' : illegal, left operand has type 'float'
code.cpp(26) : error C2296: '^' : illegal, left...
Does the program create the file that's being read?? If not, that may be the problem....since some compilers create a temporary .exe somewhere else to run after compilation... Could be the cause...
ok, thanx, I'll try that!
Yes, it was made in VC++ 2005, should I make compile it on an earlier version, such as C++ 6.0??
Hello everyone! Currently, I've done some programs, yet when I try them in other computers, an error comes out saying that it couldn't execute the program because it wasn't configured right, and that...
Hello everyone! I am supposed to do a science project, and I lack of ideas. Can anyone here give me some Ideas that may involve programming with C++??
Thanx in Advance!!
ur my hero anonytmouse!!!