Anonymous
AKILA
Aman
Can anyone suggest me about the free courses of C language on youtube ?🙂
Anonymous
Anonymous
check out his channel
Kiss
Anyone with experience related to Extended Page Tables and windows programmimg ?
Aman
Yasas
#ot
.
Anyone know how to delete after a given position element in linked list implementation.
Mahi_way❤
void printmaxofcurrentAndBelow(int R, int C, int *matrix){
for(int i=0;i<R-1;i++){
for(int j=0;j<C;j++){
if(matrix[i][j]<matrix[i+1][j])
matrix[i][j]=matrix[i+1][j];
}
}
for(int i=0;i<R;i++){
for(int j=0;j<C;j++){
printf("%d ",matrix[i][j]);
}printf("\n");
}
}
Mahi_way❤
Help me with the error fr the above👆
Talula
Mahi_way❤
Talula
Mahi_way❤
Call by its value
Talula
Is it a multi dimensional array?
Mahi_way❤
Yes
Mahi_way❤
Let me dm u👍
Anonymous
Why unit testing is difficult in case of singleton pattern??
Anonymous
ᛈᛊᚹᛚᛊᛋ
Testing on a singleton class
You can read about it here. Paragraphs 2 and 3.
https://dzone.com/articles/singleton-anti-pattern#:~:text=The%20use%20of%20Singletons%20makes,Singleton%20and%20other%20is%20not.
Anonymous
Mazen
Diego
@Singhajeet23 PM'd me without permission
/report
強さと決意
Los desiertos de comida por los que cada año mueren miles de personas en Estados Unidos - BBC News Mundo
https://www.bbc.com/mundo/noticias-56781149
J.K. – Tessier-Ashpool Customer Support
J.K. – Tessier-Ashpool Customer Support
@ch0ngyang PM'd me without permission
/report
Anonymous
Anonymous
what is PM?
J.K. – Tessier-Ashpool Customer Support
what's the reason?
I have no reason to provide to you. You should already know what you did. And I think the other members don't even care about our issues.
So, according to the disrespectful treatment I received from you I friendly request you to stop talking to me ever again. Thank you.
Anonymous
強さと決意
Why?
Pavel
Why unit testing is difficult in case of singleton pattern??
Because singletones are very difficult to mock.
Imagine you have a singleton that handles connection to a database, and you want to unittest some code that works with database. If this code works with this singleton directly it will be really difficult to test with having a "fake" connection. To test it you would need to create a real connection or to make big changes to this singleton class
Anonymous
€
hello guys,how I can request the user to enter a string consisting of non-white-space characters ?
Diego
You can use string.IsNullOrEmpty or string.IsNullOrWhitespace to check if it doesn't contain any letters or numbers at all first
Diego
But if you want to ensure that they are not present at any point of the string... then use a Regex that matches whitespace, and if it finds ANY match, it should be invalid
Diego
If you want to test Regex patterns, try Regex Hero, it's plenty useful imo
I'm not sure if there are any better alternatives but its worked for me
Adarsh
#include<bits/stdc++.h>
using namespace std;
int maxpiecies(int n,int a,int b,int c)
{
if(n==0)return 0;
if(n<0)return -1;
int res=max(maxpiecies(n-a,a,b,c),maxpiecies(n-b,a,b,c),maxpiecies(n-c,a,b,c));
if(res==-1)return -1;
return res+1;
}
int main()
{
cout<<maxpiecies(23,11,9,12);
return 0;
} I am getting this error in this :- error: '__comp' cannot be used as a function
if (__comp(__a, __b))
~~~~^~~~~~~~ Can Anyone suggest what changes i have to make in this?
Diego
Well for starters I think better indenting would go a long way in making your code readable to begin with
Anonymous
``
Adarsh
Diego
Hey there's this person here called pushpendra Singh Chauhan
I can't seem to @ them, but they DM'd me without permission 😒
Ayush Kumar
#include<bits/stdc++.h>
using namespace std;
int maxpiecies(int n,int a,int b,int c)
{
if(n==0)return 0;
if(n<0)return -1;
int res=max(maxpiecies(n-a,a,b,c),maxpiecies(n-b,a,b,c),maxpiecies(n-c,a,b,c));
if(res==-1)return -1;
return res+1;
}
int main()
{
cout<<maxpiecies(23,11,9,12);
return 0;
} I am getting this error in this :- error: '__comp' cannot be used as a function
if (__comp(__a, __b))
~~~~^~~~~~~~ Can Anyone suggest what changes i have to make in this?
max compares two numbers only, I think you have given three there.
Adarsh
GXUP320
max(a,max(b,c))
Ayush Kumar
max(a,max(b,c))
@am_adarsh Use this or you can learn more from here: https://codereview.stackexchange.com/questions/26100/maximum-of-three-values-in-c
Adarsh
Os Os
Hi
klimi
Os Os
Hllo
Os Os
Nameful
klimi
Os Os
Of you a common Arab
klimi
Os Os
Of you arab her..
Os Os
there from here from the Arab countries?
Os Os
..
Os Os
You'r donki
Os Os
Oobs
Os Os
👋🏻
Os Os
Fu...............🤦🏻♂️
Anonymous
Can anyone help me make a program
佳辉
😊
Anonymous
Hii , I want to make AI virtual assistant can you help me . Please..
Anonymous
Hanz
Aura
Anonymous
Anonymous
A class has one data member and one method member This class is used in a program that declares 10 objects of this class The number of addresses for data member and method member are,
respectively?
Anonymous
Anyone??
Hanz
Anonymous
Anonymous
Actually exam
Anonymous
Need help can i ping you please