Search:

Type: Posts; User: timberwolf5480

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    4,733

    By using 2 get() statements, I got my program to...

    By using 2 get() statements, I got my program to work, I have been struggling with this code because I wrote this program in windows and used some windows only stuff like __int64, a 64 bit...
  2. Replies
    2
    Views
    4,733

    cin.get() inside switch statement

    This works, it pauses my program as desired:


    std::cout << "\n [S]ave Report [O]pen Report";

    std::cout << "\n [Q]uit" << std::endl;



    std::cout << "\n Enter Choice: ";
  3. Replies
    4
    Views
    874

    I think I may do this differently, by making a...

    I think I may do this differently, by making a sleep function........although, the getch() function works great in windows, compiler specific however, we need a standard <conio.h> :)
  4. Replies
    4
    Views
    874

    problem with pausing the program

    I am having a problem porting some windows code to Linux and having that "press any key to continue" thingee, I have tried every scrap of code in your FAQ regarding this issue, and they all work in...
  5. Nope, tried all three examples and it still...

    Nope, tried all three examples and it still doesn't work, I think it may have something to do with how our compilers are set up somehow, I tried all three on my Windows XP machine, and then on my...
  6. Umm, how does it work on your system and not...

    Umm, how does it work on your system and not mine?


    #include <iostream>
    int main()
    {
    __int64 myInt = 9223372036854775807;
    std::cout << "Big number: " << myInt << std::endl;
    return...
  7. Thanks, I think I will try that first, before...

    Thanks, I think I will try that first, before figuring out a class or struct or something.
  8. I know it doesn't, and I have a bad feeling...

    I know it doesn't, and I have a bad feeling keeping my program portable from windows to linux to whatever, I am going to have to make my own class or function or something that is at least 18 digits...
  9. data type ranges, what is the largest?

    I was wondering what is the largest range any data type can hold and still be portable to another OS? I noticed MSVC++ compiler can compile __int64, which is the numbered range I need for this...
  10. Thanks, I didn't know I couldn't initialize it...

    Thanks, I didn't know I couldn't initialize it like that in a class, which means I'll have to do it the hard way. Thank you for your time and knowledge.
  11. My first time posting code.....here's a try.. ...

    My first time posting code.....here's a try..


    struct CUSTOMVERTEX
    {
    float x, y, z, rhw; // The transformed position for the vertex
    DWORD color; // The vertex color

    };
  12. syntax for initializing an array in a class

    I have been studying the DirectX tutorials trying to learn graphics programming and struck out on my own trying to create a tetris clone to learn from. I would like to build the shapes using classes...
Results 1 to 12 of 12