Advertisement
Guest User

words

a guest
Jul 6th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #ifndef SNAKE_H
  2. #define SNAKE_H
  3. class snake{
  4.    
  5.     private:
  6.         vector<string> words;
  7.        
  8.     public:
  9.         string wordsnake;
  10.         string getwords()
  11.         {
  12.             return words;
  13.         }
  14.         string computesnake()
  15.         {
  16.             for(const string &word : words)
  17.             {
  18.                 //gets the number of elements in the array words[]
  19.                 for()
  20.                 {
  21.                     //gets individual characters to print from
  22.                 }
  23.             }              
  24.         }
  25.         void printwords(NULL)
  26.         {
  27.             //function to print the results of the computesnake function
  28.         }
  29.         void setwords(tempword)
  30.         {
  31.             tempword -> words[];
  32.         }
  33.        
  34. } snake;
  35. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement