User Tools

Site Tools


cpp:object_creation

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:object_creation [2017/04/20 08:41] – [Δημιουργία και ανάθεση αντικειμένων σε δείκτες] gthanoscpp:object_creation [2017/04/20 08:45] gthanos
Line 85: Line 85:
  
 int main() { int main() {
-  int x=5;+  int x=5, y=3;
   foo();   foo();
-  cout << "x: " << x << endl;+  cout << "x: " << x << ", y: " << y << endl;
 } }
 </code> </code>
cpp/object_creation.txt · Last modified: 2021/05/07 06:22 (external edit)