Difference between revisions of "C++"

From LPTMS Wiki
Jump to: navigation, search
m (Hashmap)
m
Line 12: Line 12:
 
* [[Using a hashmap]]
 
* [[Using a hashmap]]
 
* [http://wwwasd.web.cern.ch/wwwasd/cernlib/cfortran.html Interfacing C/C++ and Fortran]
 
* [http://wwwasd.web.cern.ch/wwwasd/cernlib/cfortran.html Interfacing C/C++ and Fortran]
 
----
 
 
quick example of c++ source display:
 
<source lang="cpp">
 
template<typename T> class B
 
{
 
private:
 
  T t;
 
public:
 
  B(T const& _t) : t(_t) {};
 
  T value() const {return t;};
 
};
 
 
int main()
 
{
 
  B<int> b(2);
 
}
 
</source>
 

Revision as of 08:28, 12 May 2011

Reference websites

Pointers handling

pointers are not always easy to handle, particularly for destruction, memory management... There exists some solutions provided by boost

Miscellaneous