Invalid Operands to Binary Error

This is a discussion on Invalid Operands to Binary Error within the C Programming forums, part of the General Programming Boards category; Yup, just caught that myself. I'm using ssh to connect to my school's UNIX server and my school's version of ...

  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;
        }

Page 2 of 2 FirstFirst 12
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, 01:53 AM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09: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, 12:10 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21