Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool shoda(char* a,char* b)
- {
- for(int i=0; i < 6; i++)
- {
- if (a[i] != b[i])
- {
- return (false);
- }
- }
- return (true);
- }
- int main()
- { /*float y,x,v;
- cin >> y >> x >> v;
- cout <<"Aritmeticy prumer je: " <<prumer(y,x,v) << endl;
- */
- /*float p1[3] = {5,4,3};
- float p2[4] = {5,2,3,4};
- cout << prumer(p1,3) << endl;
- cout << prumer(p2,4) << endl;
- */
- char p1[6];
- char p2[6];
- cin >> p1 >> p2;
- if(shoda(p1,p2))
- {
- cout <<"shoduje se" << endl;
- system("pause");
- }
- else{
- cout << "Neshoduje se" << endl;
- system("pause");
- return 0;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement