Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include "myFunctions.h"
- using namespace std;
- int main()
- {
- const char str1[300] = "I seg you.";
- const char str2[300] = "I see you!";
- cout << str2 << endl;
- int res = myStrCmp(str1, str2);
- cout << res << endl;
- char str[300] = "14";
- int number = stringToNumber(str);// если число отрицательное, то работает неправильно!
- cout << number << endl;
- cout << number / 2 << endl;// проверила, что это действительно число
- int num = 12345;
- char* strDigit = numberToString(num);
- cout << strDigit << endl;
- char str3[300] = "I HAVE ate 143!";
- char* str5 = upperCase(str3);
- cout << str5 << endl;
- char* str6 = lowerCase(str3);
- cout << str6 << endl;
- char* str7 = myStrRev(str3);
- cout << str7 << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment