Search:

Type: Posts; User: knave

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    3,642

    // Assuming only 26 numbers on 1 line #include...

    // Assuming only 26 numbers on 1 line
    #include <fstream>
    #include <iostream>
    #include <string>
    #include <sstream>

    using namespace std;

    int main(void)
    {
  2. Replies
    10
    Views
    7,452

    http://msdn2.microsoft.com/en-us/library/ms686028....

    http://msdn2.microsoft.com/en-us/library/ms686028.aspx

    BOOL WINAPI SetConsoleDisplayMode(
    HANDLE hConsoleOutput,
    DWORD dwFlags,
    PCOORD lpNewScreenBufferDimensions
    );
  3. Thread: New to C++

    by knave
    Replies
    30
    Views
    3,791

    You're right, text can be "taken the wrong way." ...

    You're right, text can be "taken the wrong way." However, in this case it wasn't. It was an "accurate assessment."


    He doesn't even understand a compiler. This is almost random...

    Is...
  4. Replies
    7
    Views
    1,183

    A guess. int main() { unsigned short i =...

    A guess.


    int main()
    {
    unsigned short i = 0;
    char a;
    people tdata // ??

    do
  5. Thread: New to C++

    by knave
    Replies
    30
    Views
    3,791

    MacGyver, first thing you need to learn is how to...

    MacGyver, first thing you need to learn is how to communicate with other humans (not birds, bears, snakes or those extra terrestrials) who happen to be completely new to programming. Because we...
  6. Thread: pointers

    by knave
    Replies
    18
    Views
    1,724

    if (toLowerChoice == 'b') { pttt = new ......

    if (toLowerChoice == 'b')
    {
    pttt = new ...
    }
    else if (toLowerChoice == 'r')
    {
    pttt = new ...
    }

    // What if neither of the conditions are met...? What will you be returning?
  7. #include using namespace std; ...

    #include <iostream>
    using namespace std;

    const char * ONES[] = { "Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
    ...
  8. Replies
    1
    Views
    1,065

    MSVS.NET'03 .. Help.

    What happened?
    I opened MSVS.NET 2003 just as I have many times before. I Created a new Win32 Console Project, and selected "Empty Project." I then proceeded to add a new ".CPP" file and... and......
  9. Thread: Clearing Buffer

    by knave
    Replies
    11
    Views
    2,028

    No need for sarcasm.

    sizeof on a pointer will only return 4 bytes on an x86 (depends). Because its just a "pointer."

    Thus,

    {
    ...
    memset(buffer, '\0', sizeof(buffer));
    ...
    }
    would not...
  10. Replies
    10
    Views
    1,277

    C or C++?. 'printf's' are mixed with 'cout's';...

    C or C++?. 'printf's' are mixed with 'cout's'; all of your variables are declared above main(). Can you not decide?

    Change all of your printf's to cout's.
    {
    End your cout's with
    ...
  11. Thread: Clearing Buffer

    by knave
    Replies
    11
    Views
    2,028

    safeGet()

    #include <iostream>
    #include <conio.h> // getch()

    using namespace std;

    int safeGet(char *buffer, unsigned short len)
    {
    const char BACKSPACE = 0x08;
    const char ENTER = 0x0D;
  12. Replies
    5
    Views
    1,209

    Idling and not looping.

    How does one idle a program? If I use a loop that keeps searching for data to act on, the CPU usage will
    be around 98% because the program sends instrutions to the processor over and over again...
  13. I typed: cl /GX ../pcname.cpp -o pcname.exe /link...

    I typed: cl /GX ../pcname.cpp -o pcname.exe /link user32.lib

    And it got rid of all those warnings... I just don't understand.. why?

    What is the /GX? Why/How did it get rid of the warnings?
  14. The compiler works fine... its just I get those...

    The compiler works fine... its just I get those warning everytime I use the the commmand prompt compiler... MSVC++ 6.0 already sets everything up for you when you intstall it.



    It was already...
  15. Warnings when compiling with command prompt (MSVC++)

    Take a look. (I placed a code]tag around the output to make it slightly more readable.)


    D:\...\...\...\Debug>cl ../pcname.cpp /link user32.lib
    Microsoft (R) 32-bit C/C++ Optimizing Compiler...
  16. I didn't say I used 'string', that was just an...

    I didn't say I used 'string', that was just an example.

    But... you just said




    I have read that line over and over again trying to think, why placing a 'struct' containing all the members...
  17. I see. The reason I asked, was because I have...

    I see.

    The reason I asked, was because I have a hard time figuring out what to name my variables within my classes; heres why.

    For example: Lets say I have the member "char *string" within my...
  18. Why is the "_" character in front of most variable names?

    Why is the "_" character in front of most variable names?

    Example:

    _SomeVar;
    _Str;

    I also notice:

    m_SomeVar;
  19. Anyone know of a "cool, or nice looking" text editor for C++?

    Anyone know of a "cool, or nice looking" text editor for C++?
    Most text editors out there are ugly, and look like a... just an
    original text editor.

    Is there any editor out there that has a...
  20. Replies
    9
    Views
    1,277

    So many books, so little time.

    After learning C++ enough to start writing things on your own...

    Seeing books 300-400 pages long written on 1 subject such as templates, kind of brings you down... you know?

    Its like these...
  21. Replies
    1
    Views
    2,606

    Visual C++ .NET Standard Edition

    Ok, does anyone here own the "Visual C++ .NET Standard Edition?"
    If so, is there a major difference from VC6.0?
    Why is the ".NET" in the name? Or what is .NET?
    Can this compiler be used with...
  22. Is this right?(about a class) (code to download) etc..

    What does this code do?
    It doesn't really do anything, except draw a small character-based rectangle from top to bottom, left to right ( it looks like a window)... Eventually this rectangle will...
  23. Replies
    3
    Views
    1,259

    Hiding the console.

    ...
    Is there a way to hide the win32 console window?
    (Ex. When the program opens, the console doesn't show up but still runs in the background.)
  24. Replies
    11
    Views
    1,219

    ReadConsoleOutputAttribute() is not returning a...

    ReadConsoleOutputAttribute() is not returning a "useable" color, its returning some huge number that definitely isn't marked as a color in the console... any examples?
  25. Replies
    17
    Views
    2,125

    I thought you were supposed to keep peoples...

    I thought you were supposed to keep peoples social security numbers private?
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4