Yes! finally something I can help with. anyways, return values are up to the programmer to decide what to do with. If you called a function from within another function, you could check the return...
Type: Posts; User: Bingo The Clown
Yes! finally something I can help with. anyways, return values are up to the programmer to decide what to do with. If you called a function from within another function, you could check the return...
ok, this is a simplified version that has the exact same problem. I included the whole program, which compiles in Visual C++.
#include <deque>
#include <iostream>
#include <fstream>
class...
I was trying to write a pretty simple class to a binary file. The class includes a couple integers, some other stuff and a deque. All went well writing and reading the data, but when I added elements...
One of my friends recently got a Pocket PC and he said that you could upload windows programs strait onto it and they would work (given you have enough storage obviously.) But I was wondering if this...
Yes, I don't like the way it indents either. I ended up switching to a different compiler for that along with other reasons, but it is sort of annoying. Anyways, you get what you pay for.
yes, this is where i found the function but i was confused about what all the parameters should equal and stuff like that
I am trying to find a way to read a character that has already been displayed on the screen. I found a function called ReadConsoleOutputCharacter. I am pretty sure this is what I want but I wasn't...
I was wondering if there was a way to test if a key the user pressed is a character.
ok thanks that worked, i didnt finish reading your post (not too bright today)
>Why are you using a macro for this anyway?
i was trying to think of a simple example as it would be easier to not...
in that case could you tell me what i am doing wrong here?
#include <iostream>
#include <conio.h>
using namespace std;
#define something(n) funct()
void funct(void)
{
in this code:
#define something(n) afunction()
would it be posssible to use n as an integer in afunction()?
Amazing game. mindless shooting+endless mode=extremly addictive. Improving the graphics would be the icing on the cake, so to speak. Nice job.
try something along the lines of:
for(int count=0; count<n; count++)
{
if (array[count, n]==array[count++, n])
cout<<"Equal! :)";
else
cout<<"Not equal :(";
}
thanks very much for the help :)
I have noticed that case and if seem to be very similar in c++. I was wondering what the advantages each has over the other. Thanks.
you might want to have an opening screen, just so the user doesn't die right away when the game starts up.
could you please direct me to a good tutorial or something, or post working code?
How would I go about creating a real time game in Dev-C++ on Windows XP? I am thinking along the lines of having the user and some other monster be able to move around the board, but without the user...
winsock being...?
I was wondering if it would be possible to run a program in DOS on two comps using a LAN. I checked the FAQ, but I couldn't find anything. Sorry if I overlooked it. Both the computers are running...
I have created a maze program, but i have become too lazy to create more maps for it. (yes, i know. i'm very lazy.) anyway, i was trying to think of ways to make a random map generator. if someone...
Just a thought, but could you reasign the long double with the newly calculated addition to pie after the previous had been printed on the screen. I'm not completly sure about the decimal place and...
If it's an if loop your looking then try changing around the code. This is basically just a variation of RoD's code, but here:
cout << "Enter age: ";
if(!(cin >> age))
...
I was wondering if there was any way to create a program which took a video of everything that was going on on the screen, or just pictures every certain amount of time. It would be cool if you could...
I did this once for a class I took. You might try putting it all in a while loop, such as: while (guesses[y] != mynumber)