SHARE
TWEET

14877368768

a guest Oct 21st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ConsoleApplication51.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. #include <cstdlib>
  7.  
  8. using namespace std;
  9.  
  10. int _tmain(int argc, _TCHAR* argv[])
  11. {
  12.     setlocale(LC_ALL, "Rus");
  13.  
  14.     int* pt_var = new int ();
  15.     int a = 546;
  16.     int b = 698;
  17.     int c = 777;
  18.     int d = 456;
  19.     int v = 345;
  20.     int f = 354;
  21.     int p = 368;
  22.     int l = 589;
  23.  
  24.     pt_var = &a;
  25.     pt_var = &c;
  26.     pt_var = &f;
  27.  
  28.     cout << "Измененные значения." << endl;
  29.  
  30.     cout << "a = " << *pt_var + a << endl;
  31.     cout << "c = " << *pt_var * c << endl;
  32.     cout << "f = " << *pt_var % f << endl << endl;
  33.  
  34.     cout << "Изначальные значения." << endl;
  35.  
  36.     cout << "a = " << a << endl;
  37.     cout << "c = " << c << endl;
  38.     cout << "f = " << f << endl;
  39.  
  40.     delete pt_var;
  41.  
  42.     system("pause");
  43.  
  44.     return 0;
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top