Код: Выделить всё
cout << '\'' << ch << '\''
<< " = " << int(ch) <<
" = " << oct << ch << dec << "\n";Код: Выделить всё
cout << '\'' << ch << '\''
<< " = " << int(ch) <<
" = " << oct << ch << dec << "\n";Код: Выделить всё
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int change(int *i,int *j);
int a = 6;
int b = 7;
int &c=a;
int &d=b;
cout << "a =" << c << "\n";
cout << "b =" << d << "\n";
change(&a,&b);
cout << "a =" << c << "\n";
cout << "b =" << d << "\n";
cin>>a;
return 0;
}
int change(int *i,int *j)
{
int q = *i;
*i = *j;
*j = q;
return 0;
}Код: Выделить всё
#include "stdafx.h"
#include
#include
#include Код: Выделить всё
#include "stdafx.h"
#include
#include
#include Код: Выделить всё
#include