Hi ,

I am a beginner with C/ C++ ....

I would like to return a string ...something like this ...I am using VC7 to compile this code......I need to do this in exactly this way bcos it is going to be called by another third party application which will accept only strings ....
Do I need a pointer or some jazz.z?.....I am unable to declare it as a string ....only char is permitted...


Code:
#include <stdio.h>
---
---


string main() 
{
conf_str[100] = "Data is correct" ;
err_str[100] = "Data is incoorect"; 

if ( .....) 
 return conf_str
else 
  return err_str; 

}
Please give me some idea as to how to do this
Thanks

Mike