dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: simonovic

Search: Search took 0.02 seconds.

  1. Replies
    21
    Views
    2,009

    Re: Prime Numbers Help?

    agree with amadeus, use % to detect non-primes if its equal to 0 for any j, if not 0 for any j>1 then say its prime

    another way is


    int nonprime[100];//initialize all elements to 0
    ...
  2. Replies
    1
    Views
    2,402

    char array to istream

    hello,

    I am using a static library(NTL), and it has a function I need to use, problem is it accepts inputs by cin, while I need to pass it by command line arguments.

    here is the code
    ...
Results 1 to 2 of 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)