You need to do your drawing in the WM_PAINT message handler.
Type: Posts; User: DaveH
You need to do your drawing in the WM_PAINT message handler.
Okay, I found a solution. I use FillRectangle of the Graphics class :
using (Graphics g = e.Graphics)
{
Pen WhitePen = new Pen(Color.White, 1);
...
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.
...
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.
What?! You mean that is still the case? I thought they changed this after I was out of school? :D
Get a government or military job. Your head will explode. :D
Without seeing what your code looks like, it will be almost impossible to answer.
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...
I solved it. It was pretty easy. :)
There is no outputting of any kind in that code, so an empty output file would be expected.
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.
A problem I see :
#define MAX_N 10
double integral_yn[MAX_N]
for(n=1; n<10; n++)
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.
You can define them as floats. It just depends on the size of number you expect to fill it.
How much are you paying?
Discount1 and Discount2 are not int's, but you declared them as int's.
From :localtime - C++ Reference
/* localtime example */
#include <stdio.h>
#include <time.h>
int main ()
{
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...
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.
For one, declare your floats dtl, has, and dbb above the switch block.
As in :
float dtl;
float has;
float dbb;
#include <string>
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...
I'll bet your final_hours is not > 1300. Thats a lot of hours.
Look at strcat
Sorry I don't have a microscope so I can't read the code.
Have you tried setting break points and debugging the code?