السلام عليكم عندى كود لكلمة سر بس يعطى اخطاء وحقيقي ما عرفت كيف اصلحه يا ريت تفيدونى
هذا هو الكود
#include<iostream.h>
#include<stdio.h>
#include<string.h>
main()
{
char *pass = "nono";
char p;
char *pass1;
int i = 0;
while (i < 5)
cin >> p;
if (p != '/b')
{
cout << "*";
i++;
}
else
{
i--;
}
if (p == '/r')
{
pass1 = &p;
if (strcmp(*pass1, *pass) != 0);
cout << "yup";
else
cout << "no";
}
else
cout << "nahi";
return 0;
}يا ريت لمساعدة فى اقرب اقرب اقرب وقت
شكرا
