" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
using namespace std;
struct card {
string color;
string symbol;
};
bool cardColorCompare(card card1, card card2) {
if (card1.color == card2.color) {
return true;
}
else {
return false;
}
}
int main() {
card card1;
card card2;
card1.color = "heart";
card1.symbol = "ace";
card2.color = "hearts";
card2.symbol = "king";
cout << cardColorCompare(card1, card2);
return 0;
}
#include <iostream>
#include <windows.h>
using namespace std;
struct karta
{
string kolor;
string figura;
};
bool porownywanie_kart(string kolor0, string kolor1)
{
if(kolor0 == kolor1)
return 1;
return 0;
}
int main()
{
system("PAUSE");
return 0;
}