[SOLVED] CS // Workshop 1:

$25

File Name: CS_//_Workshop_1:.zip
File Size: 160.14 KB

5/5 - (1 vote)

// Workshop 1:
// Version: 0.91
//(removed #include that was included by mistake)
// Date: 2021/10/16
// Author: Fardad Soleimanloo
// Description:
// This file tests the DIY section of your workshop
///////////////////////////////////////////////////
#include
#include cstring.h
using namespace sdds;
using namespace std;
int main() {
char str1[80] = abcdefghijklmnopqrstuvwxyz;
char str2[80];
const char* fadd;
strCpy(str2, str1);
cout << str2 << endl; strnCpy(str2, “@@@”, 2); cout << str2 << endl; strnCpy(str2, “@@@”, 3); cout << str2 << endl; strnCpy(str2, “@@@”, 4); cout << str2 << endl; cout << strCmp(“aab”, “aaa”) << endl; cout << strnCmp(“aab”, “aaa”, 2) << endl; cout << strnCmp(“aab”, “aaa”, 3) << endl; cout << strLen(“”) << endl; cout << strLen(str1) << endl; fadd = strStr(str1, “jkl”); cout << fadd << endl; fadd = strStr(str1, “bbb”); if (!fadd) cout << “Not found” << endl; strCpy(str2, “John “); strCat(str2, “Doe”); cout << str2 << endl; return 0;}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS // Workshop 1:
$25