Anonymous
Hi
Anonymous
Ciao!
Jattu
Hi
DEV 7
#findprojects
Anonymous
https://api.whatsapp.com/send?phone=+917065970659&text=Hi Telegram api or bot like this?
Neither. It's just a part of the WhatsApp API WhatsApp itself has made public
Vimal
http://hastebin.com/raw/ifefohixof
ᴴᴼᴹᴮᴼᴷᴺᴵ
Hi
ᴴᴼᴹᴮᴼᴷᴺᴵ
/get
Kartik
/get cbook
Kartik
/get cppbookguide
Abhishek
/get
Ehsan
I forgot what does void** do?
Talula
I forgot what does void** do?
A void ** is just a pointer to a pointer to memory with an unspecified type. You can only dereference it once (since you can't dereference a void *). However, apart from that, it is basically like any other pointer type. If it helps you, think of it the same way as you would with int *.
Strife
I forgot what does void** do?
looks like box you can partition what you want
Talula
Brilliant what I meant was what is its use cases
Pointing to a pointer in memory without any specific type.
Talula
Basically it is just a pointer to a pointer in memory.
Strife
int get(int a,int b,int c) { cout<<"Enter the number:"<<endl; cin>>a>>b>>c; return a+b+c; } int multiply(int h) { return 3*h; } int odd(int h) { if(h%2==0) cout<<"incorrect"; else cout<<"correct"; return h; } main() { int h; int a,b,c; h=get(a,b,c); cout<<endl; h=multiply(h); h=odd(h); cout<<endl; cout<<h; getch(); }
Strife
its my first code with void
Anonymous
Brilliant what I meant was what is its use cases
When your function doesn't return anything (not recommended, as if it doesn't return zero or a computer value it's harder to debug the code) or when a function doesn't take any arguments.
Anonymous
@ehsan687 Take a look at the following code snippet: #include <stdio.h> int funOne(void) { printf("Hello"); return 0; } int main() { funOne(); return 0; } If I you change "int funOne(void)" to "int funOne()" and "funOne()" to "funOne(["Any Argument"])" the program will still run, but the code is wrong and might cause problems in the future. Using "void" when the function takes no arguments prevents this from happening by halting the program and throwing the following error: // too many arguments to function call, expected 0, have 1
Anonymous
int get(int a,int b,int c) { cout<<"Enter the number:"<<endl; cin>>a>>b>>c; return a+b+c; } int multiply(int h) { return 3*h; } int odd(int h) { if(h%2==0) cout<<"incorrect"; else cout<<"correct"; return h; } main() { int h; int a,b,c; h=get(a,b,c); cout<<endl; h=multiply(h); h=odd(h); cout<<endl; cout<<h; getch(); }
I'd personally change the last function for the reasons explained above. - From: main() { ... } - To: int main(void) { ... return 0; } Fun fact: void main() is the old way to do it which doesn't solve the problems I mentioned. You'll certainly find this style in old tutorials on the internet.
~Jhe_rhy✊🏽
Hi guys I’m new here
~Jhe_rhy✊🏽
Is cyber security a good thing to do please??
~Jhe_rhy✊🏽
I want to get into it but I know nothing about it
Anonymous
What exactly would you be interested in. Like what exactly would you like to be able to do. Cyber Security isn't a small field by any means, so it would help to know what your goals are and where you are coming from :)
Anonymous
@admin
Ибраги́м
Crypto ad
a Semicolon
static char *get_Chars(monoString *names, int indexs) { char (*_get_Chars)(monoString *name, int index) = (char (*)(monoString*, int))getRealOffset(Global.get_Chars); return _get_Chars(names, indexs); }
a Semicolon
How to fix it? Someone help
~Jhe_rhy✊🏽
Is that a lie
Anonymous
What? How is that related to my question 😅
Anonymous
Also "best" in what regard
~Jhe_rhy✊🏽
I heard you get a job with that certificate easier
Anonymous
How to fix it? Someone help
I'd suggest you: 1 - Provide an explanation about what your code should do 2 - State the expected output and the output or error you got 3 - Send a minimal working example of your faulty code in a well-formatted fashion
Suyash
Good morning 🌞
Shivam
https://programmingknowledge.in/blog/
Anonymous
#include <stdio.h> #include <stdlib.h> int main() { int a; float b; double c; char d; printf("Enter an integer: "); scanf("%d",&a); printf("Enter a value with decimal places: "); scanf("%f",&b); printf("Enter a value with decimal places: "); scanf("%lf",&c); printf("Enter a character: "); scanf("%c",&d); printf("\n %d is a integer\n %f is a float\n %lf is a double\n %c is a character",a,b,c,d); } printf("Enter a character: "); isn't works well, because it prints a new line. How to avoid it and get the input from user. when I rearrange the code like this, it's work perfectly.Anyone can explain the reason? #include <stdio.h> #include <stdlib.h> int main() { int a; float b; double c; char d; printf("Enter a character: "); scanf("%c",&d); printf("Enter an integer: "); scanf("%d",&a); printf("Enter a value with decimal places: "); scanf("%f",&b); printf("Enter a value with decimal places: "); scanf("%lf",&c); printf("\n %d is a integer\n %f is a float\n %lf is a double\n %c is a character",a,b,c,d); }
KS
#include <stdio.h> #include <stdlib.h> int main() { int a; float b; double c; char d; printf("Enter an integer: "); scanf("%d",&a); printf("Enter a value with decimal places: "); scanf("%f",&b); printf("Enter a value with decimal places: "); scanf("%lf",&c); fflush(stdin); printf("Enter a character: "); scanf("%c",&d); printf("\n %d is a integer\n %f is a float\n %lf is a double\n %c is a character",a,b,c,d); return 0; }
Anonymous
To remove the buffer in keyboard we should use fflush(stdin);
Thank you so much bro, Learned something new 👍
Manish
Heyy friend
Anonymous
I wanna ask something related to graph, just a small doubt, and ofc, it's based on C++. Am I allowed to ask?
Anonymous
Don't ask to ask, just ask :)
I know that, but I am not sure whether I am allowed to ask data structures/ algos here
Anonymous
Suppose I need to find articulation point from island (making it disconnected) How do I find it? The island being an implicit graph. Also, how would you convert an implicit graph to adjacency list?
DEV 7
Print this pattern in c++ (no of rows =4) ABCD BCDE CDEF DEFG
DEV 7
what
Anonymous
Do +1 in each row
DEV 7
why
Suyash
why
Yo..! Rose is Bot
Suyash
She never reply
DEV 7
Yo..! Rose is Bot
but Why it gives warning ?
klimi
why
because you have send me a personal message which is against the rules you have agreed upon
Anonymous
@disrupttheflow kalimeres
Артём
a bit confused: Given object obj1 of class A and number n, how to create an array of n copies of obj1, if I don't want to call A's default constructor, e.g. by arr = new A[n] ?
Droningbro
Can anyone send me resources of recursion,it seems to be difficult to understand in c++
YUSUF
Hello
Anonymous
Anshul
Why the height of a balanced binary tree O(logn), also explain me please what is the meaning of height being O(logn).
Anonymous
#include<iostream.h> #include<conio.h> void main() { int i,n,even=0; cout<<"enter no"; cin>>n; for(i=1;i<=n;i++) { if(n%2==0) { cout<<"even no"<<n; even++; } } else { cout<<"not even no"<<n; } getch(); }
Anonymous
What's problem with this guys?
Chandu
}
Chandu
This the problem for for
Chandu
#include<iostream.h> #include<conio.h> void main() { int i,n,even=0; cout<<"enter no"; cin>>n; for(i=1;i<=n;i++) { if(n%2==0) { cout<<"even no"<<n; even++; } Problem is here with } else { cout<<"not even no"<<n; } getch(); }
Anonymous
I tried many times i can't figure it out
Chandu
#include<iostream.h> #include<conio.h> void main() { int i,n,even=0; cout<<"enter no"; cin>>n; for(i=1;i<=n;i++) { if(n%2==0) { cout<<"even no"<<n; even++; } else { cout<<"not even no"<<n; } } getch(); }