Message from C, C++ discussions

January 2020

— Always used NAudio + C# on windows (to make soundplayer, FFT visualiser and stuff), is there anything like this for C++ and linux (+ windows)?

Message permanent page

— 

I was about to run NAudio on .net core since it supports .net standard, but it's waveout (sound player) is deeply connected to winapi

— What about OpenAL?

— But I ideally need something that can open wave files and buffer them out to soundcard on both linux + windows... xd

Message permanent page

— I want to center align my text in the terminal
How can i do it?
Is there any function in C for this purpose?

Message permanent page

— Try the ncurses library

— Thanks for the suggestion.but I use win10.is ncurses library compatible with windows10?

— You will have to work with the terminal window

— Can you provide me any example?
Actually i'm a beginner and i don't know so much about the terminals

— Um ncurses, or https://en.wikipedia.org/wiki/ANSI_escape_code

— Ncurses is hot

— #include<iostream>
using namespace std;
int main()
{
int i,j,d,t,r,z;
int a[3][3];

// for determinates.
for(i=0;i<3;i++)
{

for(j=0;j<3;j++)
{
cin>>a[i][j];
d=a[i][i]*(a[2][2]*a[3][3]-a[3][2]*a[2][3]);
t= a[1][2]*(a[2][1]*a[3][3]-a[3][1]*a[2][3]);
r=a[1][3]*(a[2][1]*a[3][2]-a[3][1]*a[2][2]);
}
}

cout<<"the determinates is ="<<endl;
z=d-t+r;
cout<<z<<endl;
system("pause");
return 0;

}

Message permanent page