Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. int32 FBullCowGame::GetHiddenWordLength() const
  2. {
  3.  
  4. return MyHiddenWord.length;
  5.  
  6. }
  7.  
  8. // This is my original function (its in a class(public member))
  9.  
  10.  
  11. int32 FBullCowGame::GetHiddenWordLength() const
  12. {
  13. int32 i = MyHiddenWord.length;
  14. return i;
  15. }
  16. //Then I tried that there were still 2 errors
  17.  
  18. int32 GetHiddenWordLength() const;
  19. // This is in another file (the .h one) and this is the decleration of the function.
  20.  
  21. FString MyHiddenWord;
  22. // This is in the private section of the class (I tried moving it to public
  23. // but it didn't help) and that is the declaration of the string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement