Hi, I'm new in programming. We just learned how to use functions. In my opinion, i did everything ok in my program, but the code does not run in C++ studio 2008 neither 2010. I dont know why. I used code just like in the book. I noticed that there are several types of programming languages that run in C++. For instance, the #include <stdio.h> is simply ignored in C++ i'm using. I dont wanna change my code now, so here is the question: what language should i use to run my code?
int isprime(int b)
{
int c;
for(c=2;c<b;c++)
if(b%c!=0)
return false;
return true;
}
Here is the code. When i debug it, it executes only the first two statements. Then cursor is blinking on next line, when i type anything in it, window closes.
If i am really using C, what program is compartible with that?
Thanks