Quick error.

This is a discussion on Quick error. within the C Programming forums, part of the General Programming Boards category; For some strange I get this error: "Inventory.cpp", line 72.17: 1540-0063 (S) The text "<=" is unexpected. For this code(small ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Posts
    19

    Quick error.

    For some strange I get this error:

    "Inventory.cpp", line 72.17: 1540-0063 (S) The text "<=" is unexpected.


    For this code(small piece):


    Code:
    if(s[j] >='A' && <= 'z') {
           a= a - spacecnt;
           d[j] = temp[a];
           spacecnt = 0;
    
      }

    The "<=" in the if condition is unexpected for some reason. I'm trying make the condition true if it is a Character.

    Edit: This can be closed now.
    Last edited by David101; 09-24-2004 at 01:31 PM.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Did you mean this?
    Code:
    if(s[j] >='A' && s[j] <= 'z') {
           a= a - spacecnt;
           d[j] = temp[a];
           spacecnt = 0;
      }
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 11:17 AM
  2. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 02:17 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11:03 AM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM

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