can anyone tell me how to compare a char variable to a constant char?
the code below shows what i want to do but it doesnt compile
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
char s[10];
int i;
s="sf(sf)fs";
for (i=0;i<10;i++) if (s=="(") cout<<"";
system("PAUSE");
return EXIT_SUCCESS;
}
gives no error but it doesnt make the exe
pls help
thanx
the code below shows what i want to do but it doesnt compile

#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
char s[10];
int i;
s="sf(sf)fs";
for (i=0;i<10;i++) if (s=="(") cout<<"";
system("PAUSE");
return EXIT_SUCCESS;
}
gives no error but it doesnt make the exe
pls help
thanx
