اگر کد صحیح رو برام بفرستید ممنون میشمنقل قول:
+++
تابعی بنویسید که دو رته از ورودی گرفته و ان ها را با یکدیگر مقایسه کند (تابع strcmp)
[PHP]#include <iostream.h>
#include <string.h>
#include<conio.h>
void strcmp(char string1, char string2)
{
if(string1==string2)
cout<<"string1==string2)\n";
else
{
if(string1>string2)
cout<<"string>string2\n";
else
cout<<"string1<string2\n";
}
}
void main()
{
char book;
char pen;
cout<<strcmp(
book,pen);
getch();
}[/PHP]
اینو نوشتم ولی ارور میده میگه : illegal structure operation