Search:

Type: Posts; User: DaveH

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    907

    You need to do your drawing in the WM_PAINT...

    You need to do your drawing in the WM_PAINT message handler.
  2. Replies
    2
    Views
    1,833

    Okay, I found a solution. I use FillRectangle of...

    Okay, I found a solution. I use FillRectangle of the Graphics class :



    using (Graphics g = e.Graphics)
    {
    Pen WhitePen = new Pen(Color.White, 1);
    ...
  3. Replies
    2
    Views
    1,833

    Draw single pixel

    Im new to c#. In c++ I have made a window and painted it with dots and concentric circles, like a radar PPI screen. Trying to do this in c#, I can't find how to draw a single pixel on the window.
    ...
  4. You do realize that your input expression is not...

    You do realize that your input expression is not just numbers. Its numbers and operators (+, -,...) You can't just add expr[i] to a sum.
  5. What?! You mean that is still the case? I...

    What?! You mean that is still the case? I thought they changed this after I was out of school? :D
  6. Replies
    6
    Views
    2,970

    Get a government or military job. Your head will...

    Get a government or military job. Your head will explode. :D
  7. Replies
    2
    Views
    1,455

    Without seeing what your code looks like, it will...

    Without seeing what your code looks like, it will be almost impossible to answer.
  8. Replies
    3
    Views
    1,183

    I don't know the reason it doesn't work, but your...

    I don't know the reason it doesn't work, but your code will work if you change the '+' and '-' to a different char. I change + = p and - = m and it worked.

    You might try reading one line at a...
  9. Replies
    20
    Views
    6,221

    I solved it. It was pretty easy. :)

    I solved it. It was pretty easy. :)
  10. Replies
    9
    Views
    3,970

    There is no outputting of any kind in that code,...

    There is no outputting of any kind in that code, so an empty output file would be expected.
  11. Replies
    7
    Views
    13,329

    For one, if the function is needed multiple...

    For one, if the function is needed multiple times, you save on code size (no repeated code) by using a function. Which would make for easier maintainability of the code.
  12. Replies
    19
    Views
    4,056

    A problem I see : #define MAX_N 10 ...

    A problem I see :




    #define MAX_N 10

    double integral_yn[MAX_N]

    for(n=1; n<10; n++)
  13. Replies
    6
    Views
    2,414

    The C version of atoi is used just like the C++...

    The C version of atoi is used just like the C++ version. I'm not sure what you mean by using it as an alternative to printf.
  14. Replies
    3
    Views
    1,428

    You can define them as floats. It just depends...

    You can define them as floats. It just depends on the size of number you expect to fill it.
  15. Replies
    3
    Views
    2,239

    How much are you paying?

    How much are you paying?
  16. Replies
    3
    Views
    1,428

    Discount1 and Discount2 are not int's, but you...

    Discount1 and Discount2 are not int's, but you declared them as int's.
  17. From :localtime - C++ Reference...

    From :localtime - C++ Reference



    /* localtime example */
    #include <stdio.h>
    #include <time.h>

    int main ()
    {
  18. Your scanf line is waiting for user input. Its...

    Your scanf line is waiting for user input. Its not adding elements to the array, which I think is what you were wanting. But just fixing that isn't going to solve all your problems. I think you...
  19. Replies
    4
    Views
    1,374

    On line 123 and 123 within your loop you set max...

    On line 123 and 123 within your loop you set max and min = gpa. This gpa will be the second student on the second iteration of the loop. Try intializing min and max outside the loop.
  20. Replies
    6
    Views
    915

    For one, declare your floats dtl, has, and dbb...

    For one, declare your floats dtl, has, and dbb above the switch block.

    As in :



    float dtl;
    float has;
    float dbb;
  21. Replies
    15
    Views
    2,432

    #include

    #include <string>
  22. Replies
    15
    Views
    2,432

    Obviously you don't yet understand about classes...

    Obviously you don't yet understand about classes in C++. You should go through some simple examples (actually typing in the code and compiling and running, even modifying) to thoroughly understand...
  23. Replies
    4
    Views
    971

    I'll bet your final_hours is not > 1300. Thats a...

    I'll bet your final_hours is not > 1300. Thats a lot of hours.
  24. Replies
    5
    Views
    16,983

    Look at strcat

    Look at strcat
  25. Replies
    7
    Views
    1,208

    Sorry I don't have a microscope so I can't read...

    Sorry I don't have a microscope so I can't read the code.

    Have you tried setting break points and debugging the code?
Results 1 to 25 of 223
Page 1 of 9 1 2 3 4