Search:

Type: Posts; User: fiska

Search: Search took 0.01 seconds.

  1. Thread: Draw dot by dot?

    by fiska
    Replies
    3
    Views
    4,246

    I know the algorithms perfectly well, I just have...

    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...
  2. Thread: Draw dot by dot?

    by fiska
    Replies
    3
    Views
    4,246

    Draw dot by dot?

    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...
  3. Thread: Dll problem

    by fiska
    Replies
    3
    Views
    1,223

    I did that extern "C" __declspec( dllexport...

    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;
  4. Thread: Dll problem

    by fiska
    Replies
    3
    Views
    1,223

    Dll problem

    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...
  5. Thread: Finding primes

    by fiska
    Replies
    19
    Views
    5,924

    my metyhond would work fine with int data types...

    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...
  6. Thread: Finding primes

    by fiska
    Replies
    19
    Views
    5,924

    here you go, I just wrote very efficient method...

    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)
  7. Thread: prime ring

    by fiska
    Replies
    7
    Views
    1,185

    This code is wrong! You should not divide by 1 ->...

    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)
  8. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    C++ Primer Plus (5th edition) by Stephen Prata ...

    C++ Primer Plus (5th edition) by Stephen Prata

    do you think this is a good book? I was thinking to order this book
  9. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    I would go with dev but being honest I don't like...

    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...
  10. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    ah another thing, very quickly: do you recommend...

    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...
  11. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    thanx very very much, you just provided a great...

    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,...
  12. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    well there is a misunderstanding, I know that...

    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...
  13. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    but I want to use borland (freecommandlinetool)...

    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....
  14. Thread: C++ newbie

    by fiska
    Replies
    13
    Views
    1,522

    C++ newbie

    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:...
Results 1 to 14 of 15