我现在使用Visual C++ 2010打开一个 txt 文件。
fp = fopen("E:\\CProg\\Huffman\\Debug\\Huffman.txt","r"); //Right
//Wrong
//fp = fopen(".\\Huffman.txt","r");
//fp = fopen("\\Huffman.txt","r");
//fp = fopen("Huffman.txt","r");
在VB.NET中,我曾经这样写:Application.Startpath & "\"。那么我如何在C中制作它?