Sorry for asking the topic that asked before... but im still dont know how to use that..
Below is an example create by me.. I hope that someone can tell me which part have to fix ...
This is the header file:
int check_SkipCard (string input)
{
int SkipCard=0;
if (input=="skip")
SkipCard=1;
return SkipCard;
}
Now is the main .cpp file:
#include <iostream>
#include <cstring>
#include "SkipCard.h"
using namespace std;
main()
{
int skip;
int i,j;
for(i=0;i<2;i++){
for(j=0;j<2;j++){
cout<<"enter"<<i<<j<<": ";
cin>>skip;
if(skip==1)
j=2;
else
cout<<"no skip dou\n";}}
system("pause");
return EXIT_SUCCESS;
}
The error i get is :
`string' was not declared in this scope, and
expected `,' or `;' before '{' token