About 2,050,000 results
Open links in new tab
  1. visual studio - C++ cannot open source file - Stack Overflow

    0 In Visual Studio, Right click on project and in Configuration Properties find C/C++ and then General / In The window at the right side pick up a directory at Additional Include Directories row. All these …

  2. Run C++ in command prompt - Windows - Stack Overflow

    41 It depends on what compiler you're using. For example, if you are using Visual C++ .NET 2010 Express, run Visual C++ 2010 Express Command Prompt from the start menu, and you can simply …

  3. Read file line by line using ifstream in C++ - Stack Overflow

    The contents of file.txt are: 5 3 6 4 7 1 10 5 11 6 12 3 12 4 Where 5 3 is a coordinate pair. How do I process this data line by line in C++? I am able to get the first line, but how do I get the ...

  4. c++ - Cannot open include file with Visual Studio - Stack Overflow

    Make sure your include file is actually in the directory -- not just shown in the VS project tree. For me in other languages copying into a folder in the project tree would indeed move the file in. With Visual …

  5. filesize - How can I get a file's size in C++? - Stack Overflow

    1 In c++ you can use following function, it will return the size of you file in bytes.

  6. c++ - Get a file name from a path - Stack Overflow

    Dec 15, 2011 · What is the simplest way to get the file name that from a path? string filename = "C:\\MyDirectory\\MyFile.bat" In this example, I should get "MyFile". without extension.

  7. c++ - Visual Studio Code cannot open source file "iostream" - Stack ...

    Dec 23, 2020 · I am new to C++ and Visual Studio Code, so I'm not sure how to fix this issue. I've tried to go through the tutorial in Using Clang in Visual Studio Code, but I can't seem to paste their …

  8. How to compile c++ file in visual studio? - Stack Overflow

    The problem is, Visual Studio don't really know, what to do with your .cpp file. Is it a program? Try the following: File | New project Visual C++ | Win32 | Win32 Project Select a name and location for the …

  9. What is the correct way to declare and use a FILE * pointer in C/C++?

    First, keep in mind that a file pointer (and the associated allocated structure) is based on the lower level open () read () write () calls. The associated file descriptor (obtained by fileno (file_pointer) is the …

  10. Fastest way to check if a file exists using standard C++/C++11,14,17/C?

    I would like to find the fastest way to check if a file exists in standard C++11, 14, 17, or C. I have thousands of files and before doing something on them I need to check if all of them exist. Wh...