k0v3T Shell GPX

Path : /home/maddyteddy/public_html/
File Upload :

Name
Size
Permission
Modify
12_01_2017BackUp
--
drwxr-xr-x
application
--
drwxr-xr-x
cdownload
--
drwxr-xr-x
cgi-bin
--
drwxr-xr-x
download
--
drwxr-xr-x
huge-it-google-map-custom-icons
--
drwxr-x---
portal.isssearch.in
--
drwxr-xr-x
quiz-program
--
drwxr-xr-x
wp-admin
--
drwxr-xr-x
wp-content
--
drwxrwxrwx
wp-includes
--
drwxr-xr-x
.htaccess
18.891 KB
-rw-r--r--
BingSiteAuth.xml
0.083 KB
-rw-r--r--
error_log
100.553 KB
-rw-r--r--
index.php
0.408 KB
-rw-r--r--
license.txt
19.468 KB
-rw-r--r--
readme.html
7.239 KB
-rw-r--r--
robots.txt
0.097 KB
-rw-r--r--
test.php
0.022 KB
-rw-r--r--
wp-activate.php
5.319 KB
-rw-r--r--
wp-blog-header.php
0.355 KB
-rw-r--r--
wp-comments-post.php
1.589 KB
-rw-r--r--
wp-config-sample.php
2.786 KB
-rw-r--r--
wp-config.php
3.015 KB
-rw-rw-rw-
wp-cron.php
3.209 KB
-rw-r--r--
wp-links-opml.php
2.365 KB
-rw-r--r--
wp-load.php
3.224 KB
-rw-r--r--
wp-login.php
33.522 KB
-rw-r--r--
wp-mail.php
7.859 KB
-rw-r--r--
wp-settings.php
15.82 KB
-rw-r--r--
wp-signup.php
29.223 KB
-rw-r--r--
wp-trackback.php
4.407 KB
-rw-r--r--
xmlrpc.php
2.993 KB
-rw-r--r--

SinonX
friend function in cpp programs

Friend Function : Cpp Program : 6

Friend Function in Cpp Program

In this blog, we will see how to make different between normal function and friend function in cpp programming language.

Friend Function in Class :

No Need any object for calling. – Check fun1() in program

Normal Function in Class :

Must Need object for calling. – Check fun2() in program


Program :

#include<iostream.h>
#include<conio.h>
class Example
{

public:
friend void fun1()
{

cout << “Welcome in Friend Functions:\n”;

}
void fun2()
{

cout << “Welcome in Class Function:\n”;

}

};
void main()
{

clrscr();

fun1();

Example obj;
obj.fun2();

getch();

}


Output :

Welcome in Friend Functions

Welcome in Class Function


Try Yourself

Create Simple Nested Loop Programs in Friend Functions

Program 1:

A

**

ABC

****

ABCDE


For More Programming Language:

Free Java Programs

Free C Programs

 

1213total visits,1visits today


mayank

Hello, I am Maddy a Java blogger, trainer and developer

Related articles

Comments are closed.