我是C++的新手,我实际上是在学习并在实验部分,然而,在试验时我遇到了cout函数的问题.编译时程序失败.我想知道你们是否可以帮助我:这是我写的来源.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
signed short int a;
signed short int b;
signed short int c;
a = 25;
b = 8;
c = 12;
cout << a << endl;
cout << b << endl;
cout << c << endl;
cout << "What is the sum of a + b - c? The answer is: ";
cout << a + b - c;
cout << endl;
cout << "Why is this?" << endl; …Run Code Online (Sandbox Code Playgroud)