mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-02-04 02:54:42 +08:00
support bazel complie this project and format code.
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
class Apple
|
||||
{
|
||||
public:
|
||||
// static member function
|
||||
static void printMsg()
|
||||
{
|
||||
cout<<"Welcome to Apple!";
|
||||
}
|
||||
};
|
||||
|
||||
// main function
|
||||
int main()
|
||||
{
|
||||
// invoking a static member function
|
||||
Apple::printMsg();
|
||||
}
|
||||
class Apple {
|
||||
public:
|
||||
// static member function
|
||||
static void printMsg() { cout << "Welcome to Apple!"; }
|
||||
};
|
||||
|
||||
// main function
|
||||
int main() {
|
||||
// invoking a static member function
|
||||
Apple::printMsg();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user