I know the algorithms perfectly well, I just have problems implementing it.
I dont know how to draw a single point so then I can then construct the whole line dot by dot, it is perfectly well...
Type: Posts; User: fiska
I know the algorithms perfectly well, I just have problems implementing it.
I dont know how to draw a single point so then I can then construct the whole line dot by dot, it is perfectly well...
Hi folks,
I'm trying to implement Brasenham's algorithm, I need to draw a line on a given coordinates (x1,y1,x2,y2). The problem is that when I try to do this in C# (GDI+) I have this function...
I did that
extern "C" __declspec( dllexport ) int foo;
and on the actuall project I tried to import it this way:
extern "C" __declspec( dllimport) int foo;
Hi folks,
after being recommended on using VS 2005 here from you folks I did so, and everything fine so far but now there is a problem, I was following a tutorial, and the writer was using VS...
my metyhond would work fine with int data types and is efficeint, you see it first check wether the number is divisible by 2 n%2 if so it does not let you go further so the time factor is reduced...
here you go, I just wrote very efficient method to find primes for ya
bool IsPrime(int n) {
if (n<=2)
return true;
if(n%2 == 0)
This code is wrong! You should not divide by 1 -> (n%1)!!!!
here u have more efficient one :)
BOOL IsPrime(int n) {
if (n<=2)
return true;
if (n%2 == 0)
C++ Primer Plus (5th edition) by Stephen Prata
do you think this is a good book? I was thinking to order this book
I would go with dev but being honest I don't like their compiler. Since I work with C# as well, then I'll try out VS 2005, or Borland 2006 I'm not sure which one yet...
As it concerns VS 2005 I'm...
ah another thing, very quickly:
do you recommend using an IDE? I just watched the demo for Borland C++Builder 2006 it looks pretty good...
thanx very very much, you just provided a great explanation... I gotta learn C++ :)
well I need to learn C++ for the mechatronics too, cuz we can't program robots in other language other than C,...
well there is a misunderstanding, I know that everything will work just fine, but the thing is that I wanna see the classes, see the methods avaliable that C++ offers, like a schema, I have the same...
but I want to use borland (freecommandlinetool) where do I get and API for C++?
I'm so ........ed of with Internet Explorer, so I avoid as much as possible the microsoft products....
Hi folks,
Pardon my ignorance, I'm very new to C, C++ and I have some simple questions here for 'ya, I hope u could clear up things for me a bit, in turn I would be very thankful,
so here we go:...