im trying to use this very simple code, but both VC++6.0 and DevC++4.0 have problems to identify the string....!!!
im wondering why?
Code:#include <stdio.h>
#include <iostream.h>
#include <string.h>
int main(int argc, char *argv[])
{
std::cout<<"yess";
std::cout<<"helloo"<<200;
int a;
std::cin>>a;
std::string s="moemen ahmed";
string ss=s.substr(7,5);
cout<<ss;
cin>>a;
return 0;
}
thanks in advance :)