User Tools

Site Tools


cpp:exception

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:exception [2019/05/15 07:07] – [Δημιουργία και διαχείριση της εξαίρεσης] gthanoscpp:exception [2020/05/04 08:53] gthanos
Line 35: Line 35:
  
 int &Vector::valueAt(int pos) const { int &Vector::valueAt(int pos) const {
-  if(pos>=length()) {+  if(pos>=size) {
      cerr << "Invalid access position!\n";      cerr << "Invalid access position!\n";
      return array[size-1];      return array[size-1];
cpp/exception.txt · Last modified: 2023/05/15 14:01 by gthanos