About 50 results
Open links in new tab
  1. c++ - incompatible declaration error [SOLVED] | DaniWeb

    Hi, I was wondering if someone could look at this person class I am working on. The first part is the class header with the constructors for the class. ...

  2. c++ - check if file is empty | DaniWeb

    In C++, the most reliable definition of an "empty file" is a regular file whose size is 0 bytes. You can check this without opening the file by using filesystem metadata (C++17+), which avoids …

  3. Snake game (graphics.h) turbo c++ | DaniWeb

    IN TURBO C++ COMPILER... PLEASE ADD TWO MORE FEATURES... USING AN "+" CHARACTER TO INCREASE VELOCITY OR REDUCE DELAY AND ALSO AN OPTION TO RECORD HIGHER …

  4. How do you add spaces between numbers to ... | DaniWeb

    In C++20, consider locale-aware formatting with std::format. If you hit Visual Studio precompiled header errors (e.g., with stdafx.h), either include it and enable PCH, or disable PCH for the file: see …

  5. c++ - Undefined reference to 'vtable for ...' [SOLVED] | DaniWeb

    Mar 18, 2008 · I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise ...

  6. microsoft - Connecting C++ to MS-Access | DaniWeb

    If you just need to open an existing .mdb/.accdb from native C++, ODBC is the simplest, most stable route. Install the Microsoft Access ODBC driver that matches your app’s bitness (x86 app -> 32-bit …

  7. c++ cashier [SOLVED] | DaniWeb

    Jan 9, 2011 · A reliable way to load this file is to read it in triples (key line, name line, price line) and parse each without mixing operator>> and getline. That avoids the common newline-buffer pitfall. …

  8. c++ - error C2065: 'CString' : undeclared identifier | DaniWeb

    native c++ does not support CString -- that is a MFC c++ class. The cstring header file you included is the same as C's string.h, which is not at all like CString or c++ string. >>what is the problem? include …

  9. c++ - unterminated #ifndef [SOLVED] | DaniWeb

    Oct 27, 2011 · Hi,I spent all night trying to figure this out. Could someone take a look and show me what I'm missing? I getting this compiler error: unterminated #ifndef . But I have ifndef at the beginning and …

  10. c++ - error C3861: identifier not found [SOLVED] | DaniWeb

    Common cause of C3861 here: you declared member functions of Tools, but in main you attempted to call them as free functions. Non-static member functions must be invoked on an object (or …