I created a class and a function in the class after the main function in turbo C++ . So on compiling it is showing a bunch of errors . So can you make a program to declare the class and object in main function.

0 Divyansh Kapri · October 19, 2015
I created a class and a function in the class after the main function in turbo C++ . So on compiling it is showing a bunch of errors . So can you make a program to declare the class and object in main function.

Post a Reply

Replies

Oldest  Newest  Rating
0 Rafae Raees · October 20, 2015
#include <iostream>

using namespace std;

int example();

int main()

{

    cout << example() << endl;

}


int example(){
    cout << "Function example for Divyansh Kapr" << endl;
    return 0;
}
  • 1

C++

107,253 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator