Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //so in C++ you can do something cool that I actually super like
- class numberThingy{
- public:
- int variableToSaveTo;
- numberThingy(int userInput){
- this->variableToSaveTo = (userInput * 5);
- cout << variableToSaveTo << endl;
- }
- };
- //so now normally I would have to do
- numberThingy thisThing(5);
- //BUTTTTTTTTT
- // I found out I can do this
- numberThingy(5);
Advertisement
Add Comment
Please, Sign In to add comment