Getting "'string' does not name a type" Error

If I want to use string what will I do?

Step 1: Understand the difference between a string and a String.
Step 2: Use a string - a NULL terminated array of chars - whenever you like. No header file needed.

You are NOT programming a PC. Drop the bad habits.