I am new to C++ programming language. I have done some mathematical computation in my program and right now I am interested in displaying "σ" notation in my output such that the output should display "σ<a,b>".
I know the uni code for "σ" that is "\u03C3" but I don't know how to display it on screen.
Can anyone tell me how to display this sign or other mathematical signs in C++.
I tried both the methods but its not working.I got the decimal value of sigma which is 963 and tried to use it by the way discussed in the link provided by you kevin but it displays s only and not the "σ" sign.
I have solved the problem.The below program displays the sigma sign on output screen.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main ()
{ setlocale(LC_ALL,"Greek"); //This accepts the greek value wchar_t orig = 963; // This is the decimal value of sigma....In order to display any other sign write its decimal value
#include "stdafx.h"
#include <iostream>
usingnamespace std;
int main ()
{
setlocale(LC_ALL,"Greek"); //This accepts the greek value
wchar_t orig = 963; // This is the decimal value of sigma.
cout<<"\n\n";
std::wcout<<orig<<endl; //Prints sigma sign
system("pause");
return 0;
}