- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 50
- Posts with Upvotes
- 42
- Upvoting Members
- 39
- Downvotes Received
- 55
- Posts with Downvotes
- 34
- Downvoting Members
- 33
- PC Specs
- Ubuntu 12.04, and Windows 7 (almost never use it). Currently trying to setup FreeBSD.
Re: Working program [CODE]#include <windows.h> void getcoords(int &x, int &y) { POINT cursorPos; GetCursorPos(&cursorPos); x = cursorPos.x; y = cursorPos.y; } int main() { int x,y; int x2,y2; int dx,dy; while(true) { getcoords(x,y); Sleep(30); getcoords(x2,y2); dx = x2 - x; dy = y2 - y; SetCursorPos(x-dx,y-dy); } return 0; } [/CODE] … | |
Re: I don't know about Turbo C++. I thought graphics.h was only for DOS?? But I know you can change colors and fonts with some Windows functions in <windows.h> | |
Re: In batch??? Why would you want to do that??? Batch is really old. It does not have graphics either, nor multiplayer capability. You can make a super simple word-based game but not much more. I advise you try C++ with DirectX or OpenGL or XNA Studio. PS.Is there any difference … | |
Re: A lot of the servers are Linux nowadays, and it seems it will stay that way for a while. So I would say PHP. But PHP has a lot of shortcomings that it still needs to overcome. The engine itself and the language. | |
Re: Granted. You know all the pain now which scars you for life. I wish I was the best programmer in the world | |
Re: yew, why conio? It is not standard and not even c++. It is c! And wtf is [CODE]#include <sstream>[/CODE] Never heard of it. sounds like it was developed by nazis lol | |
Re: Cool, thanks for posting! | |
Re: [QUOTE]Anything you can do with a while loop, you can do with a for loop.[/QUOTE] Anything you can do with a for loop, you can do with a while loop. To the OP: If you get ANY programming book about C or C++, you WILL find both kinds of loops … | |
Re: Not sure if it works but this is what I found [CODE]#include "bloader.h" int main(); /*Global Variables BAD BAD:) */ unsigned int oldEBP; struct boot_dir *viewableDirectory; int totalMem; char * passedParams; /*end global vars */ void _start(int memSize, char *parms, struct boot_dir *loadedfiles) { asm("mov %%ebp, %0":"=m"(oldEBP)); viewableDirectory = loadedfiles; … | |
Re: Good job, but I don't see the reason to post it here unless you have a question, or just want to share something cool/smart idea from your program. At first you didn't even post the link to the program :D | |
Re: Normal cin sucks so I midified it and this is are 2 functions I use instead of cin: [CODE]int kcin(int i) { int variable; while(1) { if (cin >> variable) { break; } if(cin.fail()) { cout << "Input Again: "; cin.clear(); cin.ignore( 1024, '\n' ); //spend a lot of time … | |
Re: I like my life, and I don't have any "wishes", unless you consider the goals in life as a wish. This is what happens if your wishes come true: [QUOTE]1) Earn big bucks 2) Have the opportunity to unravel the screts of the Ancients or mystery Example : Bermuda Triangle, … | |
Re: Yes, he cannot not be Chuck Norris. Why are you not asking funny questions and the replies are not that funny either? | |
Re: Lenin. He tried to create something good and Stalin destroyed it. | |
Re: Linux is kernel. It does all that stuff. Maybe you mean different distributions of Linux? I advise you read the book The Linux Porgrammer's Toolbox by John Fusco. It has a big section about Linux kernel and how it operates. It is impossible to cover all the aspects of it … | |
Re: An Englishman, Frenchman, Mexican, and Texan were flying across country on a small plane when the pilot comes on the loud speaker and says " We're having mechanical problems and the only way we can make it to the next airport is for 3 of you to open the door … | |
Re: What is your OS? | |
Re: The Ten Commandments [CODE] char * commandment[10]; commandment[0] = "Thou shalt not dereference a null pointer.\n"; commandment[1] = "Thou shalt not dereference a null pointer, in any case whatsoever.\n"; commandment[2] = "dmr cannot stress this enough: thou shalt not dereference a null pointer.\n"; commandment[3] = "Thou shalt not dereference a … | |
Re: You change your signatures really often! I remember you used to have a different one! | |
Re: I started programming almost 3 years ago, when I was 11. First I did some HTML (which is not programming language indeed), but then I really quickly jumped into C++, which is still my language of choice. Currently, I know C++, Python, some Lisp, and trying to learn Assembly. Sadly, … | |
Re: cat? Would you like to get a million dollars? Yes/No are the possible answers. |