Skip to content

Instantly share code, notes, and snippets.

@bmcculley
Created January 16, 2023 04:34
Show Gist options
  • Save bmcculley/836183ca0073c3f2e72379ef9539f328 to your computer and use it in GitHub Desktop.
Save bmcculley/836183ca0073c3f2e72379ef9539f328 to your computer and use it in GitHub Desktop.
#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