User Profile
Collapse
-
Please take a look at header file cstdarg (stdarg.h) -
This sounds that you integer is stored in another form, so one method is to implement an structure use operator overloading to handle the case. you should provide you own algorithm of divide. one stupid way is sub if leftexpr is larger then the rightexpr and add the result by one. Please take care for the case c/0. And Good luck!Leave a comment:
-
Nicolai M. Josuttis, C++ Standard Library.
Peter van der Linden, Expert C Programming.
Scott Meyers, Effective C++, Effective STL, More Effective C++.
Stanley B. Lippman, C++ Primer, Inside the C++ Object Model.
Stephen C. Dewhurst, C++ Gotchas.
Bjarne Stroustrup, The C++ Programming Language Special Edition, The Design And Evolution Of C++.
Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language....Leave a comment:
-
I have remembered that a Book by Stan Lippman Essential C++ talk about this.
It is suggested to use reference as much as you can in C++. For the old C types there is no differece if you use reference or not.Leave a comment:
-
-
-
Python 2.4.3 (#2, Oct 6 2006, 07:52:30)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
eclipse3.2/PyDev1.2.6...Leave a comment:
-
-
multitasking each task hold its piece of memory.
multiprocessing all process in the task take only one piece of memory....Leave a comment:
-
It is really hard to get informations from ur code.
I suggest u do the followings;
1. write some assert(item);
2. provide u own copy constructor and copy operator.(put them into private if u do not want them.)
3. make sure the pointer u passed into is never deleted by this class if u delete them else where.Leave a comment:
-
it seems that u haven't "m_text.UpdateD ata( false);" in "OnBnClickedBut ton1()"Leave a comment:
-
This infact is a very hard question!
That depends on what is the use of the string. And how u use it!Leave a comment:
-
-
-
But as u are using stl u must follow some given rule of stl in your implementation. If u don't what to do this, please use assert, or u
may change your implementation.Leave a comment:
-
U might have not used the code, but it is needed in compile.
like this:
Code:a = 100; b = 2; if( a < b) { a = a * b; }
Leave a comment:
-
main( int argc, char** argv)
* argc is the count of the args.
* argv is the input from the command line
If ur application is Test.exe
u exec it like this: Test.exe -a -b Test.file
argc == 4
argv[0] == "Test.exe"
argv[1] == "-a"
argv[2] == "-b"
argv[3] == "Test.file"...Leave a comment:
-
that means what u have compiled should be execute urself, or it is only something like a library, a dll....Leave a comment:
-
There is no direct way of doing this in MFC, may be you can use some atl/.Net control provided by MS-Office, goto msdn.Leave a comment:
No activity results to display
Show More
Leave a comment: