Created
January 16, 2023 04:34
-
-
Save bmcculley/836183ca0073c3f2e72379ef9539f328 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Greeting { | |
public: | |
void say_hello() { | |
using std::cout; | |
using std::endl; | |
int hw[13] = {72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33}; | |
for (int i = 0; i < 13; i++) { | |
cout << char(hw[i]); | |
} | |
cout << endl; | |
} | |
}; | |
int main(){ | |
Greeting greet; | |
greet.say_hello(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment