#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
int main(int argc, char *argv[])
{
char s[] = "sesungguhnya yabg batil akan lenyap";
cout<<"s = ["<<s<<"]"<<endl;
char* p = strpbrk(s,"ghijkl");
cout<<"strpbrk(s,\"ghijkl\") terletak pada s["<<p-s<<"]\n";
p = strpbrk(s,"GHIJKL");
if(p==NULL);
cout<<"strpbrk(s,\"GHIJKL\") MENGEMBlikan NULL\n";
system("PAUSE");
return EXIT_SUCCESS;
}
output program
0 comments:
Posting Komentar