You probably want to print each number on a new line. I would change your do-while loop to this:
do{
x=0;
cout << x <<end;
x++;
} while(x < c_num);
Type: Posts; User: sean345
You probably want to print each number on a new line. I would change your do-while loop to this:
do{
x=0;
cout << x <<end;
x++;
} while(x < c_num);
I have been designing a class and trying to come up with a better way of handling error output. If a file is specified, I want all errors to be written to the file, if no file is specified, I want...
I'll enter the contents.
When you say this, do you mean that it is a requirement of the contest that the expression evaluator convert the infix to postfix or is this just a suggestion?
- Sean
I found http://www.gamedev.net/reference/articles/article2066.asp to be helpful when I was first starting to learn about hashes.
- Sean
If I understand you correctly, you can do this in microsoft word. You have to put a section break where you want to start the section that contains a new header/footer. The help section that deals...
I wrote a small BASIC compiler. It does not have offer much in terms of a language, but it was fun to write. It generates assembly code for NASM. If anyone cares you can download it at...
You might try checking out the comp.compilers newgroup.
- Sean
I'm not sure what the assignment is, but I learned a lot from the link below.
http://www.programmersheaven.com/2/Art_Expressions_p1
- Sean
I think what you are describing is your program asking for input and then displaying the answer, but closing before you can read anything. To fix this try adding the system("pause") like this:
...
I ran a quick test using this code
#include <stdio.h>
int main(void)
{
int nc;
for (nc = 0;getchar()!='\n';nc++)
;
> printf("Total Score: %d\n\n", &player_score);
You want to initialize player score and instead of using the address of operator (&) do this:
printf("Total Score: %d\n\n", player_score);
-...
I wrote a parser which does something similiar, but does not include things like functions. You can take a look at it and see how it works at: http://blackfrog.pagemac.com/programming/Libraries.php...
Very nice tutorial. It seems to explain everything well and is easy to follow.
- Sean
Check out the Property program with source code at http://www.john.findlay1.btinternet.co.uk/comctrl/comctrl.htm
It uses property sheets to create a wizard.
- Sean
When using #include anything between < and > is taken to be in the default include directory of your compiler. If you use quation marks (") then it will look for the file in the same directory as...
If you want to run your program then don't use the file pointer. You would want to do this:
system(argv[0]);
- Sean
I use Win XP and I just compiled and ran using Dev-C++ 4.9.8.5 and it worked just fine. Are you giving it any strange linker settings or commands?
- Sean
The program compiles and runs fine for me using Lcc-Win32 available at http://www.cs.virginia.edu/~lcc-win32/
Of course it seems like you pasted it several times so I just compiled this much:
...
Just move through the linked list and at each node just write to the text file.
- Sean
Thanks. It took a while to come up with the layout.
- Sean
Could you just record the time and then every time the user right clicks you just check to see that the last time was at least 3 seconds ago?
- Sean
Go to the projects menu and choose project options and click on the general tab. Click browse and choose a .ico file as your icon.
- Sean
We had to do a project where we built a rocket to launch an egg up and try and bring it down without breaking it. Some used parachutes and streamers, but because we were limited in the amount of...
> if (*Drive == "bleh")
Use strcmp.
if(strcmp(Drive, "bleh")==0)
- Sean
I belive he can do this because like they said in the beginning of the 3rd: his brainwaves look like he's in the Matrix. He can communicate with the Matrix even when he is not plugged in. If he is...