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...
Type: Posts; User: timberwolf5480
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...
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: ";
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> :)
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...
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...
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...
Thanks, I think I will try that first, before figuring out a class or struct or something.
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...
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...
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.
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
};
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...