473,396 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

help on relational operators

hello,

I am new to this group.

I am doing self study using a book "C by example" by Mr.Greg
Perry.Currently am in the end of chapter 9 of the book which is about
relational operators.

I tried to compile a program which gives me errors. I tried to compile
it in different compilers but I get the same error.I tried to debug on
my own but my effort failed.Also I checked about the error to see
whether it has been posted elsewhere but couldnt find it anywhere and
hence decided to post it here.

I use CodeBlocks IDE which uses GCC compiler . I also tried it in
Bloodshed Dev C++.

The build log is ,
-------------- Build: Debug in c811 ---------------

Compiling: c811.c
D:\c programs\c811\c811.c: In function `main':
D:\c programs\c811\c811.c:42: error: stray '\166' in program
D:\c programs\c811\c811.c:42: error: stray '\166' in program
D:\c programs\c811\c811.c:42: error: called object is not a function
Process terminated with status 1 (0 minutes, 0 seconds)
3 errors, 0 warnings
I have uploaded the program as a text file and the link is ,

http://www.uploading.com/files/HZDO7...ogram.txt.html

Kindly help.

regards.
Oct 5 '08 #1
5 2614
warrior85 wrote:
hello,

I am new to this group.

I have uploaded the program as a text file and the link is ,
Please post the code rather than a link.

--
Ian Collins.
Oct 5 '08 #2
Ian Collins wrote:
warrior85 wrote:
>hello,

I am new to this group.

I have uploaded the program as a text file and the link is ,
Please post the code rather than a link.
As Ian wrote, the next time please post the code.

Anyway:

You are having a problem with the character '|' ("vertical line") which
has the code 0x7C.

Your program uses a similar character with the code 0xA6. Your compiler
doesn't recognize a "similar" character.

What language is your keyboard made for?

What keys did you use to enter this character?

Werner
Oct 5 '08 #3
You are having a problem with the character '|' ("vertical line") which
has the code 0x7C.
Your program uses a similar character with the code 0xA6. Your compiler
doesn't recognize a "similar" character.
Thank you so much for the explanation .Now there is more clarity in my
understanding.
As Ian wrote, the next time please post the code.
Yes ,from next time i ll post the code. First I thought pasting the
code here will be very lengthy and thought it would frustrate the
reader.So thats why I put it as a seperate text file.
What language is your keyboard made for?
My keyboard is german.
What keys did you use to enter this character?
I did not type the program. It was an example program in chapter 9
from the book that am reading. I also have that e-book.So i copied the
program and tried to run it....

Regards.

On Oct 5, 11:55*am, Werner Wenzel <wgwen...@t-online.dewrote:
Ian Collins wrote:
warrior85 wrote:
hello,
I am new to this group.
I have uploaded the program as a text file *and the link is ,
Please post the code rather than a link.

As Ian wrote, the next time please post the code.

Anyway:

You are having a problem with the character '|' ("vertical line") which
has the code 0x7C.

Your program uses a similar character with the code 0xA6. Your compiler
doesn't recognize a "similar" character.

What language is your keyboard made for?

What keys did you use to enter this character?

Werner
Oct 5 '08 #4
On 5 Oct, 08:30, warrior85 <pcrkis...@gmail.comwrote:

<snip>
*I have uploaded the program as a text file *and the link is ,

http://www.uploading.com/files/HZDO7...ogram.txt.html
this doesn't lead to your program but to site
that appears to be trying to sell me some
sort of web hosting (I think).
--
Nick Keighley
Oct 6 '08 #5
warrior85 wrote:
>You are having a problem with the character '|' ("vertical line") which
has the code 0x7C.
Your program uses a similar character with the code 0xA6. Your compiler
doesn't recognize a "similar" character.
....
>What language is your keyboard made for?
My keyboard is german.
>What keys did you use to enter this character?
I did not type the program. It was an example program in chapter 9
from the book that am reading. I also have that e-book.So i copied the
program and tried to run it....
Consider notifying the publisher of the error.

--
Thad
Oct 11 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John Benson | last post by:
Hi, I've been looking at the "Oracle9 i Database New Features" guide, from which I quote: XML Generation In response to the challenge of generating XML in bulk from a database, XML generation...
9
by: Balaji | last post by:
Dear Jeff, Thanks for your reply. I see that the PEP and the current docs specify that __ge__ and __le__ are their own reflection. Given that PEP 207 proposes rich comparison to handle cases...
27
by: glen herrmannsfeldt | last post by:
The subject recently came up in comp.compilers, though I believe that I asked here before. If you use relational operators, other than == and !=, on pointers to different objects, is there any...
8
by: Greenhorn | last post by:
Hi, Those relational operators have operands of all numerical type int,char,float etc. They also are working for character arrays. Whats the logic behind their working. Is the length of the...
49
by: raju | last post by:
hi can we compare two integers without using relational operators (== != < <= > >=) thanks rajesh s
14
by: AliceB.Toklas | last post by:
In my Absolute Beginner's Guide to C book by Greg Perry where it is instruction how relational operators work it gives the following example: int i = 5; so the following statement is true: ...
1
by: jsparks57 | last post by:
I want to cin two characters for any of the six relational operators. '>=' no problem or '!=' no problem. The problem is for reading single character '<' and '>'. My code wants to read two...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.