Need help with String and .format (or good links to help)

This is a discussion on Need help with String and .format (or good links to help) within the C++ Programming forums, part of the General Programming Boards category; Hello cboard,
Im an engineering student working to another students old program, and their are some confusing bits of code ...

CString is an MFC class, so you can look in MSDN for information about how to use it. Note that Format is a CString member function, but getline is not. MSDN should also have information about standard C++ functions like getline if you want to use a single reference for both microsoft specific stuff (like CString) and standard C++ stuff like getline.

To find out what %.4f means, you can look up CString::Format, which will point you to printf style format specifiers. Basically, it indicates that the somepreviouslydelcared_variable value should be placed inside the string where the %.4f is, and the ., 4, and f all give information on how that value is formatted in the string.

MSDN is difficult to search through. Some people prefer to use site:msdn.microsoft.com in their google search (although msdn2.microsoft.com might be better) because google does a better job than the built in MSDN search. When you find results, just make sure you are looking at Visual C++ and not Visual Basic, CLR, C++/CLI, .NET, etc.