#include <iostream>
#include <string>
using namespace std;
class info {
public:
string myName = "Karthik Sankar",
myLocation = "Singapore",
myWebsite = "https://karthik.syntaxerrorfound.me/",
followMeOnInstagram = "@itsthekarthik",
mainCodingLanguages = "C++ and Python";
int myGrade = 10, numOfCodingLanguagesIKnow = 13;
void details();
};
void info::details(){
cout << "Hello! I am " << myName << " and I live in " << myLocation;
}
int main(){
info KarthikSankar;
KarthikSankar.details();
return 0;
}
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.