Thread: Invalid Operands to Binary Error

  1. #16
    Registered User
    Join Date
    Sep 2009
    Posts
    10
    Yup, just caught that myself. I'm using ssh to connect to my school's UNIX server and my school's version of VI doesn't support syntactic highlighting.

    :-( I guess I'm just up too late.

    I just downloaded Netbeans so hopefully this won't happen again.

    Unfortunately, the program (although free of errors) doesn't do anything.

  2. #17
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Did you mean to close the file that you're trying to read from on the first pass through the loop?


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #18
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I'd look at this loop, for sure:
    Code:
        for( j = 0; instring[ j ] != '\0'; j++ ) { //Error with j
          --j;
        }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  3. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 05:45 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM