#include <iostream>
#include <cmath>
using namespace std;
double fn(double a, double b, double x)
{
double result = a * (x * x) * sin(2 * x) + exp(-(2 * x)) * (x + b);
return pow( abs(result), 0.5 );
};
int main()
{
cout << fn(0.5, 3.1, 1.4) << endl;
}
std::vector в данном случае.
std::vector<bool>
Configuration
The shell used defaults to $SHELL on Linux and macOS, PowerShell on Windows 10 and cmd.exe on earlier versions of Windows. These can be overridden manually by setting terminal.integrated.shell.* in settings. Arguments can be passed to the terminal shell using the terminal.integrated.shellArgs.* settings.
// Command Prompt
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
// PowerShell
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"
Windows PowerShell
(C) Корпорация Майкрософт (Microsoft Corporation), 2016. Все права защищены.
PS C:\Users\Roman> chcp
Текущая кодовая страница: 866
PS C:\Users\Roman> chcp 65001
Active code page: 65001
PS C:\Users\Roman> chcp
Active code page: 65001
PS C:\Users\Roman>
// The default character set encoding to use when reading and writing files. This setting can also be configured per language.
"files.encoding": "utf8",
пользуйтесь std::string.
C char* будет много мороки.