Re: why cross out cout make result different?

2013-08-03 Thread eric lin
appropriate for this kind of question, although it doesn't seem to be GCC related. Please do not send any follow ups to gcc@gcc.gnu.org On Fri, 2013-08-02 at 18:25 -0700, eric lin wrote: I have tried to copy QuickSort c++ programs: --- #include

why cross out cout make result different?

2013-08-02 Thread eric lin
I have tried to copy QuickSort c++ programs: --- #include iostream using namespace std; class Element { public: int getKey() const { return key;}; void setKey(int k) { key=k;}; private: int key; // other fields }; #define InterChange(list,

compile error on simple code , plz help

2011-05-13 Thread eric lin
practical c++ programming so plz help sincerely, Eric Lin, in USA-US citizen fixed_pt.cpp Description: fixed_pt.cpp fixed_pt.h Description: fixed_pt.h fixed_test.cpp Description: fixed_test.cpp

gcc (g++4.4.3) have no right to modify the name of my varialbe

2010-11-04 Thread eric lin
dear alex: thanks your email, but (1) your suggestion is not work, it still get same error (2) g++(4.4.3) have no right to modify the name of my variable, it is string that I use(or Bjarne Stroustrup use) not String that gcc/g++4.4.3 show on the compiler error (3) if I put std::string

Re: not quite polymorphism

2010-11-02 Thread eric lin
Dear gcc/g++ programers: that is in the book Programming-Principle and practice using C++ 4th Ed., Chapter 12, display model I can not compile first example chapter.12.3 or simplestchapter.12.7.2 by fltk 1.1.10 or 1.3 or 2.0 they all show name ambiguous Window, since it be

not quite polymorphism

2010-11-01 Thread eric lin
/usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of

gcc's(4.4.3) math lib :power

2010-10-29 Thread eric lin
dear gcc programers: I tried to use math lib's power by the following simple code (actually I copy from http://www.java2s.com/Code/C/Math/Howtousepow.htm that site show this code should run, but I get compiler error about not define pow, please help, Eric, in 4.4.3 -

simple for loop on g++ 4.4.3

2010-10-28 Thread eric lin
dear linux(or g++) user/programer with c++: my name is eric, when I use most current g++ 4.3.3 on ubuntu to test 2 simple c++ programs, one have compiler error, // formore.cpp -- more looping with for #include iostream using namespace std; const int ArSize = 16; //