Closed Thread
Results 1 to 5 of 5

Thread: If you can answer this you are a genius

  1. #1
    kareem100 is offline Newbie
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    If you can answer this you are a genius

    Hi


    I wrote some code the other day which behaved in a very perculiar fashion.

    The compiler was telling me that I hadn't declared a variable, which in fact that I had declared. I am absolutely certain of this.


    My question is this - is it possible for some one to write some code ( perhaps using a language other than c ) that somehow corrupts the workings of the compiler and gets it to misreport any errors ( or correct statements as errors ). I do suspect some sort of foul play. I have seen this happen a number of times now.

    regards,
    Kareem

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Oct 2008
    Posts
    4,060
    Blog Entries
    6
    Rep Power
    45

    Re: If you can answer this you are a genius

    A) not really B) can you show us the code and the exact error message I suspect you have just made a error and how to fix it is not immediately obvious to you. Posted via CodeCall Mobile

  4. #3
    Jordan Guest

    Re: If you can answer this you are a genius

    I am often certain of several things when I code only to find I am wrong. Can you post your code that had an undeclared variable?

    Posted via CodeCall Mobile

  5. #4
    VCKicks is offline Newbie
    Join Date
    Jan 2008
    Posts
    24
    Rep Power
    15

    Re: If you can answer this you are a genius

    Don't take it the wrong way, but 12 out of 10 times the compiler is right and you are wrong lol.

    Maybe the compiler is saying you haven't initialized the variable (initializing inside an if statement or loop does not count). I've had that error give me headaches. Try setting it to null when you declare it.
    Visual C# Kicks - Everything C#.NET programming related

  6. #5
    Join Date
    Oct 2008
    Location
    Pahrump, Nevada
    Posts
    787
    Blog Entries
    1
    Rep Power
    20

    Re: If you can answer this you are a genius

    Well we won't know until you post the code lol. It is that simple

    +Friend Me | My Graphics | Forum Rules | Help Forum | Forum FAQ

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need to know the answer to this question
    By ToMegaTherion in forum Java Help
    Replies: 3
    Last Post: 05-10-2010, 07:02 PM
  2. does anyone know the answer to this question?
    By mmo-dev in forum PHP Development
    Replies: 0
    Last Post: 03-29-2010, 06:00 AM
  3. PHP genius needed
    By adzeds in forum PHP Development
    Replies: 2
    Last Post: 03-09-2010, 04:26 PM
  4. Is this answer an error?
    By big-tony in forum JavaScript and CSS
    Replies: 2
    Last Post: 11-06-2009, 10:29 AM
  5. need an answer
    By Chinmoy in forum General Programming
    Replies: 3
    Last Post: 02-20-2008, 09:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts