C++----------------
Conver type
There's a few things you can try to supress the warning.
int i = (int)56.33;
int i = static_cast<int>(56.33);
int i = reinterpret_cast<int>(56.33);
(I'm not 100% sure if you can use reinterpret_cast for this purpose... ?)
-------------------
block scope
http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.debugtool5.doc/eqa5ug03355.htm---------------
Constant Member Functions
Declaring a member function with the const keyword specifies that the function is a "read-only" function that does not modify the object for which it is called.
To declare a constant member function, place the const keyword after the closing parenthesis of the argument list. The const keyword is required in both the declaration and the definition. A constant member function cannot modify any data members or call any member functions that aren't constant.
int Date::getMonth() const
{
return month; // Doesn't modify anything
}
http://duramecho.com/ComputerInformation/WhyHowCppConst.html--------------
signed/ unsigned char:
http://home.att.net/~jackklein/c/inttypes.htmlhttp://en.allexperts.com/q/C-1040/signed-vs-unsigned-char.htm---------
cin.string/ string class:
http://gcc.gnu.org/onlinedocs/libstdc++/21_strings/howto.htmlhttp://bruce-eckel.developpez.com/livres/cpp/ticpp/v2/?page=page_5 C string:
http://www.cprogramming.com/tutorial/lesson9.htmlEOF:
http://www.cs.utk.edu/~cs102/lectures/cinLecture.htmlcin.eof() checking immediately after the cin<<; only after that can receive the EOF signal
Tokenizer:
http://www.oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html---------
retern a pointer by reference:
http://www.functionx.com/cpp/examples/returnrefpointer.htmCompiler and link
http://www.cfm.brown.edu/tutorials/C++.html
--------------
http://www.functionx.com/cppcli/variables/Lesson22.htm-O3 -ffast-math -funroll-loops- All systems
- g++ 2.7.2
- safe: -O3
- high: -O3 -ffast-math -funroll-loops
- On the Suns with SunOS 4.1.* (Solaris 1.*):
- CC
- safe: -fast
- high: -fast -native -O3 -bsdmalloc (-O4 will also inline routines)
--------------
JAVAQ. Why did a client-server message generate a StackOverflowException?
A. If you are sending a particularly large data structure using java.io.Serialization, you may exceed the per-thread size limit for either the Java or native stack. You can increase the stack size by using the following command line options:
-ss Stacksize to increase the native stack size or
-oss Stacksize to increase the Java stack size,
where Stacksize is expressed as an integer followed by "k" or "m" for kbytes or mbytes. For example,
$java -ss156k (native)
$java -oss600k (Java)
The default
native stack size is 1
-----------
In java , u cannot pass an argument explicitly as reference using any keyword.
All primitive/fundamental data types are always passed as values only, while arrays and objects are passed always as references.
So if u want to pass a primityve type of data as refernce, convert into string and pass. Then in the function convert back to the type. Or else convert the values into equivalent objects of the respective wrapper calss and then pass the object.
Insert Char in String:
I don't have the javadocs up in front of me, but there's probably an
insert method as an alternative, something like:
String newString = oldString.insert(3, "-");
-------------
Latex:http://firefighter.cs.binghamton.edu/mediawiki/index.php/Latex_Notes
http://yum.math.hmc.edu/ctan/macros/latex/contrib/cite/
System:
tried disabling the Search Indexer?
That's essentially what
cidaemon.exe is. And yes it can cause a similar problem.
You can turn off the indexer two ways -- I've done both:
1 > open Search, select the "Indexing" arrow and set it to "do not turn on"
2 > run
services.msc and double click the "indexing service", set it to disabled and reboot.
----- Yuanteng Jeff PEIGraduate Research Assistant,Department of Computer Science & Eng.,Michigan State University peiyuant@msu.eduhttp://www.cse.msu.edu/~peiyuant