Thread: comments

  1. #31
    eh ya hoser, got a beer? stumon's Avatar
    Join Date
    Feb 2003
    Posts
    323
    >>why was another thingy created just so you dont have to have a '.h' at the end of your includes?

    Because if your building a 1000 line file, why would you want that much more to type. lol, count the number of times you typed ".h" since the first time you started programming and think about how much time you would save not having to type them. 1 is miniscule (spelling???) but 100,000 is a lot. That goes the same thing for "typedef" which isn't needed anymore in C++.
    The keyboard is the standard device used to cause computer errors!

  2. #32
    Registered User
    Join Date
    Jul 2003
    Posts
    30

    Lightbulb prime

    another question: i've written a prg to detect prime number. well, using VC, the largest number i can detect is a 11digit one. using C, well, it's only a 10 digit number. i want to detect at least a 17 digit number(17 is my fav number )

    how i gonna declare my variable in C for this? and in the printf what i gonna use?

  3. #33
    Registered User
    Join Date
    Jun 2003
    Posts
    124
    You can't have a number with 17 digits since the longest number you can get is pow( 2, 31 ) - 1 ( = 2147483647 = 10 digits )
    Loading.....
    ( Trying to be a good C Programmer )

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. removing comments of type '//' and '/*'
    By rohit83.ken in forum C++ Programming
    Replies: 3
    Last Post: 10-20-2007, 02:24 AM
  2. String parsing(parsing comments out of HTML file)
    By slcjoey in forum C# Programming
    Replies: 0
    Last Post: 07-29-2006, 08:28 PM
  3. GCC not able to distinguish comments inside string
    By Yasir_Malik in forum C Programming
    Replies: 11
    Last Post: 06-23-2005, 12:11 PM
  4. The Art of Writing Comments :: Software Engineering
    By kuphryn in forum C++ Programming
    Replies: 15
    Last Post: 11-23-2002, 05:18 PM
  5. comment on my comments
    By anthonye in forum C Programming
    Replies: 8
    Last Post: 02-01-2002, 11:31 AM