Didn't even bother to make it look pretty, but here you go:
Code:
WowProcess.OpenProcessAndThread(SProcess.GetProcessFromWindowTitle("World of Warcraft"));
IntPtr baseAddress = WowProcess.MainModule.BaseAddress;
bool isLoggedIn = Convert.ToBoolean(WowProcess.ReadUInt((uint)baseAddress + 0xCC9EFA));
if (isLoggedIn)
Console.WriteLine("Logged in");
else
Console.WriteLine("Not logged in");
EDIT: Just as ejt said, I'd recommend you to start from searching for answers on this forum, there's more than enough information that you will need. If you get confused about variable types right now, you will definitely have problems later on when you'll move to more advanced stuff. Therefore, I would recommend to read some good book about the programming language that you're planning to use.