Pesterevaev

pesterevaev_week16_task1_1_cpp

Feb 19th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include "myFunctions.h"
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     const char str1[300] = "I seg you.";   
  10.     const char str2[300] = "I see you!";
  11.     cout << str2 << endl;
  12.     int res = myStrCmp(str1, str2);
  13.     cout << res << endl;
  14.     char str[300] = "14";
  15.     int number = stringToNumber(str);// если число отрицательное, то работает неправильно!
  16.     cout << number << endl;
  17.     cout << number / 2 << endl;// проверила, что это действительно число
  18.     int num = 12345;
  19.     char* strDigit = numberToString(num);
  20.     cout << strDigit << endl;  
  21.     char str3[300] = "I HAVE ate 143!";
  22.     char* str5 = upperCase(str3);
  23.     cout << str5 << endl;
  24.     char* str6 = lowerCase(str3);
  25.     cout << str6 << endl;
  26.     char* str7 = myStrRev(str3);
  27.     cout << str7 << endl;
  28.     return 0;
  29. }
Add Comment
Please, Sign In to add comment