Search:

Type: Posts; User: sean345

Page 1 of 14 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,152

    You probably want to print each number on a new...

    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);
  2. Replies
    1
    Views
    1,177

    ostream and ofstream

    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...
  3. Replies
    20
    Views
    242,953

    I'll enter the contents. When you say this,...

    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
  4. Replies
    8
    Views
    2,216

    I found...

    I found http://www.gamedev.net/reference/articles/article2066.asp to be helpful when I was first starting to learn about hashes.

    - Sean
  5. If I understand you correctly, you can do this in...

    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...
  6. Replies
    21
    Views
    3,804

    I wrote a small BASIC compiler. It does not have...

    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...
  7. Replies
    3
    Views
    1,410

    You might try checking out the comp.compilers...

    You might try checking out the comp.compilers newgroup.

    - Sean
  8. Replies
    1
    Views
    1,991

    I'm not sure what the assignment is, but I...

    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
  9. Replies
    6
    Views
    1,016

    I think what you are describing is your program...

    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:

    ...
  10. Replies
    5
    Views
    966

    I ran a quick test using this code #include...

    I ran a quick test using this code


    #include <stdio.h>

    int main(void)
    {
    int nc;
    for (nc = 0;getchar()!='\n';nc++)
    ;
  11. Replies
    6
    Views
    989

    > printf("Total Score: %d\n\n", &player_score);...

    > 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);

    -...
  12. Replies
    2
    Views
    1,667

    I wrote a parser which does something similiar,...

    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...
  13. Replies
    15
    Views
    33,113

    Very nice tutorial. It seems to explain...

    Very nice tutorial. It seems to explain everything well and is easy to follow.

    - Sean
  14. Replies
    10
    Views
    2,366

    Check out the Property program with source code...

    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
  15. Thread: void main()

    by sean345
    Replies
    15
    Views
    2,442

    When using #include anything between < and > is...

    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...
  16. Replies
    4
    Views
    1,148

    If you want to run your program then don't use...

    If you want to run your program then don't use the file pointer. You would want to do this:


    system(argv[0]);


    - Sean
  17. Replies
    7
    Views
    2,504

    I use Win XP and I just compiled and ran using...

    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
  18. Replies
    7
    Views
    2,504

    The program compiles and runs fine for me using...

    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:

    ...
  19. Thread: linked list

    by sean345
    Replies
    2
    Views
    797

    Just move through the linked list and at each...

    Just move through the linked list and at each node just write to the text file.

    - Sean
  20. Replies
    4
    Views
    1,006

    Thanks. It took a while to come up with the...

    Thanks. It took a while to come up with the layout.

    - Sean
  21. Replies
    14
    Views
    1,226

    Could you just record the time and then every...

    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
  22. Replies
    4
    Views
    1,006

    Go to the projects menu and choose project...

    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
  23. Replies
    24
    Views
    3,978

    We had to do a project where we built a rocket to...

    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...
  24. Replies
    15
    Views
    2,257

    > if (*Drive == "bleh") Use strcmp. ...

    > if (*Drive == "bleh")
    Use strcmp.

    if(strcmp(Drive, "bleh")==0)

    - Sean
  25. I belive he can do this because like they said in...

    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...
Results 1 to 25 of 347
Page 1 of 14 1 2 3 4