yes 1+1 is 2
Type: Posts; User: Noxir
yes 1+1 is 2
The program is not ment to type a text in a specific program, it will just type the text in the program that is active.
If you still don't know what i'm talkin' about then download this:
...
Edited:
cin.getline (choice, 0);
void menu (char choice[0])
char choice[0];
Done as you guys said, here's the..
Errors:
ISO C++
ISO C++
Oks.......I've begun to make a text game, here's the code
#include <iostream.h>
#include <windows.h>
#include <string.h>
void menu ()
{
cout << "\n\n--Menu--";
I'm using Dev-C++, when I compile I get these errors:
[Warning] In function:
ISO C++
ISO C++
It says the wrong code are
if(choice == 'R' || choice == 'r')
You mean like this?
{
switch(Msg)
{
case WM_DESTROY:
PostQuitMessage(WM_QUIT);
break;
case WM_KEYDOWN:
argl...................................................
Is it SO hard to understand?
I press f12 on a game, there it stands "Password:", and have my program open.
My program types my password so I...
Ok, I'm making a program that does this:
Doubleclick: Starts the program.
Press F12: Type the text inside file.ini, so you press F12 and it types the password inside file.ini (that the user have...
Here is one easy..
WM_CLOSE:
break;
lol.. works for me
Hello, I'm going to make a program that first reads from program.ini and then writes what stands inside (when a key is pressed), like, you press f12 and it writes your password directly, but I've got...
thnks xD
Hello, I'm going to make a program that first reads from program.ini and then writes it when a key is pressed, like, you press f12, it writes your password, but I've got stuck here:
switch...
I just wrote this program, whats wrong? I get a lot of errors >.<
#include <windows.h>
const char classnamn[] = "myWinClass";
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam,
...
Hey, some hotkeys wouldn't be wrong, like
if(press.key==VK_F1)
{
write #include <iostream.h>
}
lol
I know you can load an image on win32, but, can you load an image in DOS?, if you can, tell me the code :D
Thnks all :D
#include <iostream.h>
#include <conio.h>
int main ()
{
int x;
x=getche();
cout << "1+1=";
cin>>x;
system("PAUSE");
I'm using Dev-C++,
It didn't worked manofsteel >.< I need a code so I can make an input without pressing ENTER, thanks for help anybody
Is it possible to do so when you make a input you don't need to push enter?
like "1+1="
then you just press 2 and it outputs "right!" for an example
if it works, then how?
Nice game!
Sad my screen is black :D
well I can see the shadows of the map but no colors, I'm running windows XP if u wanna know
Hey, I learned DOS then win32 API myself, here is some links
http://www.cplusplus.com/doc/tutorial/index.html
learn basics&much more
http://www.hal-pc.org/~johnnie2/windows.html
when you feel...
Many asks "why cin.getline instead of cin>>?" the answer is:
• You can't write sentences in cin>>
• You can write sentences in cin.getline
x)
thnx a lot :D
nope Lloy it didn't worked
ok, thnx Lithorien!! (not) :p