Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. int main()
  2. {
  3.  
  4. /* int n;
  5. cout << "Enter dictionary size: ";
  6. cin >> n;
  7.  
  8. char(*dictionary)[40] = new char[n][40];
  9.  
  10. cout << "Enter dictionary words: ";
  11. for (int i = 0; i < n; ++i) {
  12. cin >> dictionary[i];
  13. }
  14. */
  15.  
  16. const int maxsize = 80;
  17. char str[maxsize];
  18. cout << "Enter your string: ";
  19. cin.getline(str, sizeof(str));
  20.  
  21.  
  22. for (int i = 0; i < strlen(str); ++i) {
  23. cout << str[i];
  24. }
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement