Anonymous
o'zbeklaram borakanda a😂
Anonymous
Pavel
on lines 30-45.
these lines are not leaking themselves but if you'll use this class and not delete every item using your delete_from it will leak because the items won't be deleted on the list deletion what you need is to write a destructor that will delete the items
NXiss7
wow man, thank you a lot. have been waiting for this so long! simple question, nobody wants to give an answer
Answering over codes easier, most people ask wrong thing or just don't supply enough information. Keep that in mind.
I_Interface
/warn Read the rules: no screen photo.
Pavel
can you next time past it through pastebin.com, as the rules say
П 0 D Ξ
Sorry
Pavel
also, what kind of mistake you're looking for?
П 0 D Ξ
The output is repeating......
П 0 D Ξ
I am using Do while loop but i gave it in the correct syntax but.....it didn't get out of the loop
Anonymous
#include<stdio.h> int main() { char a,b; do { printf("Enter the password : "); scanf("%d",a); if(a == "letmein") { printf("Access Granded"); } else{ printf("Access denaid \n"); printf("Do you want to continue..(Y/N)"); scanf("%d",b); } }while(b == "Y"||"y"); return 0; }
Anonymous
This is the code
Anonymous
What is letmein
Just my password......😂
Anonymous
its true
Pavel
to read a string
Anonymous
Yes.....thanks...guys...i got it....
Pavel
#include<stdio.h> int main() { char a,b; do { printf("Enter the password : "); scanf("%d",a); if(a == "letmein") { printf("Access Granded"); } else{ printf("Access denaid \n"); printf("Do you want to continue..(Y/N)"); scanf("%d",b); } }while(b == "Y"||"y"); return 0; }
and if you still want to use one character for b (you can do that), you need to compare with character 'y' and 'Y' in single quotes (and read as %c as mentioned before) https://stackoverflow.com/questions/3683602/single-quotes-vs-double-quotes-in-c-or-c
Anmol
#reference-the-standard
Anonymous
Guys can you explain which compiler is best....
Anmol
Are there any good video resources for stl and newer c++ standards?
klimi
just chose from clang/gcc/msvc
Anonymous
That has all header file
Anonymous
Best site to learn shell scripting?
Anonymous
Thank you
Beast
How to do web dev using c++
klimi
and
klimi
compile
klimi
and run it
NXiss7
How to do web dev using c++
Check Wt, it's interesting
Anonymous
Sinh(x) Taylor series How to write in c program
Anonymous
This is for sin x
Mat
Read the ruleeeeeees
I_Interface
This is for sin x
/warn read the rules
klimi
This is for sin x
That is just a "sin"
Vitaliy ◀️TriΔng3l▶️
Use minimax polynomial approximation from DirectXMath
Marián
any crossplatform sound library?
Marián
always used NAudio + C# on windows (to make soundplayer, FFT visualiser and stuff), is there anything like this for C++ and linux (+ windows)?
Marián
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
Marián
what about OpenAL?
Marián
but I ideally need something that can open wave files and buffer them out to soundcard on both linux + windows... xd
Ravi Sankar
I want to center align my text in the terminal How can i do it? Is there any function in C for this purpose?
Ravi Sankar
Thanks for the suggestion.but I use win10.is ncurses library compatible with windows10?
Ravi Sankar
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
Anonymous
ncurses is hot
Anonymous
#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; }
Raj
Jay Hind
klimi
@Neko_cpp too sad
Dima
Dayum why people can’t understand
klimi
Dayum why people can’t understand
Maybe because....... No... I dont have an answer
Sasuke
hey i need little help i have pointer to node call it current.
Sasuke
i want exactly same pointer but different from current.
Sasuke
solderingCurrent = current;
Sasuke
both are pointer to Node. this statement does is solderingCurrent is now pointing to same location as current right? how can i make a copy of current and solderingCurrent should point to that copy
Sasuke
node is a struct which contains a struct and pointer to next struct
Tom
hey i need little help i have pointer to node call it current.
auto solderingCurrent = new Node(*current);
Tom
On C plz
Node * solderingCurrent = malloc(sizeof(Node)); memcpy(solderingCurrent, current, sizeof(Node)); // Or some other operations for copying