Anonymous
Hi
Anonymous
Hi
Hey
Anonymous
hi
FL45H
Tell me about bubble sorting
FL45H
I'm not getting it
Anonymous
What is it
www.geeksforgeeks.org/bubble-sort
Hidd3N
Has anyone read this book - c++ templates - the complete guide, 2nd edition
Anonymous
Anonymous
Can anyone explain this output.. How it came?
Anonymous
I need pdf of these book can anyone please help me to get it
Anonymous
binary
Didn't get it ..
Anonymous
binary
It prints binary equivalent..?
Anonymous
convert them to binary and calculate
Arun
I want to know what are all the inbuilt functions available in C
Mat
I want to know what are all the inbuilt functions available in C
There are no inbuild functions in C🤔 Do you mean the ones defined in the standard library? There are a lot of sites explaining them
BinaryByter
Hmm
See? I havent given you enough info to solve my problem.
El'maquess
Can anyone please help with a web development group, HTML5 or CSS group. Thanks
klimi
Amir already deleted c:
Anonymous
Thanks ı read this
Dima
what
Dima
Anonymous
How can I call friend function from main()
Anonymous
??
klimi
Dima
lol he removed his message
Dima
some gibrish question
Top T : Trollface Was Real
Servers down
Mat
Servers down
Servers up :)
Top T : Trollface Was Real
yap
Anonymous
#include<iostream> using namespace std; void access(); class A1 { int a,b,d; public: void getdata() { cout<<"Enter a:"<<endl; cin>>a; cout<<"Enter b:"<<endl; cin>>b; } void process() { d=a+b; } friend void access(A1); }; void access(A1 s) { int c; c=s.a+s.b; cout<<"Addition is "<<c<<endl; } int main() { A1 obj; obj.getdata(); void access(A1 s); obj.process(); return 0; }
Dima
Why
Anonymous
when I run it doesnt execute process();'
Dima
What’s going on in your code, why did you declare func again
Anonymous
means ?
Anonymous
Should I remove it from top
Anonymous
?
Anonymous
output
Mat
process doesn't have an output
Anonymous
access is not getting invoked
Anonymous
as it has line cout<<....
Mat
Oh, not process
Mat
access
Mat
What's that void in front of it
Mat
You declared access there🤔 Why?
Anonymous
if I remove that void it gives error
Mat
Which error?
Anonymous
friend.cpp: In function ‘int main()’: friend.cpp:37:12: error: expected primary-expression before ‘s’ access(A1 s);
Mat
Why are you declaring a fun there?
Mat
fun_name(args); That's how you call a fun
Mat
access(obj);
Anonymous
I did that but it gives error
Mat
Have you searched on the net that error?
Anonymous
yes but its code specific
Anonymous
its different for others
Mat
Have you tried to USE that function writing 37 access(obj); ?
Mat
yes but its code specific
Every error done writing code is code specific🤔
Mat
No you didn't
Mat
I've done it and it works
Anonymous
no it doesnt work for me :(
Mat
You are doing stuff wrong
Mat
Yuo take your code, delete that void access(A1 s); at line 37 and write in its place access(obj);
Mat
Then you compile it, run it and enjoy it
Anonymous
Thanks It worked :)
Mat
Now you go on the net and search how do functions work in C++?
Anonymous
OK
Mat
OK
Have a nice day :)
Anonymous
S2u :)
Anonymous
thanks
Anonymous
Hello.
klimi
Hello.
welcome