473,385 Members | 1,492 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,385 software developers and data experts.

how c language to realize multiple ?

liu
how c language to realize multiple ? can anyone tell me , thank you!
Nov 13 '05 #1
12 1940
liu <li******@126.com> scribbled the following:
how c language to realize multiple ? can anyone tell me , thank you!


Multiple *what*?

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"My absolute aspect is probably..."
- Mato Valtonen
Nov 13 '05 #2
"liu" <li******@126.com> wrote in news:bp***********@mail.cn99.com:
how c language to realize multiple ? can anyone tell me , thank you!


That's easy, just define it, e.g.

int main(void)
{
int multiple; /* <-- multiple now realized */

return 0;
}

Glad to help.

--
- Mark ->
--
Nov 13 '05 #3
liu wrote:
how c language to realize multiple ? can anyone tell me , thank you!


Liu...

English language problem:

multiple == more than one

Did you mean multiply (mathematical operation) ?

--
Morris Dovey
West Des Moines, Iowa USA
C links at http://www.iedu.com/c
Read my lips: The apple doesn't fall far from the tree.

Nov 13 '05 #4
On Fri, 21 Nov 2003, liu wrote:
how c language to realize multiple ? can anyone tell me , thank you!


Bizarrely. Avoid them.
(or look up trigraphs if you really need the gory details)

Nov 13 '05 #5
liu wrote:

how c language to realize multiple ? can anyone tell me , thank you!


char queries[] = "????????????????";

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 13 '05 #6
On 2003-11-21, Jarno A Wuolijoki <jw******@cs.Helsinki.FI> wrote:
On Fri, 21 Nov 2003, liu wrote:
how c language to realize multiple ? can anyone tell me , thank you!


Bizarrely. Avoid them.
(or look up trigraphs if you really need the gory details)


Aha! You have an excellent natural language parser in your noggin.

Does the OP mean in a string literal or character constant? The answer
is to use the \? escape sequence.

-- James
Nov 13 '05 #7

On Fri, 21 Nov 2003, CBFalconer wrote:

liu wrote:

how c language to realize multiple ? can anyone tell me , thank you!


char queries[] = "????????????????";


Quick -- what is the output of

puts(queries);

No peeking! :)

-Arthur,
?????
Nov 13 '05 #8
"Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote in message
news:Pi***********************************@unix45. andrew.cmu.edu...

On Fri, 21 Nov 2003, CBFalconer wrote:

liu wrote:

how c language to realize multiple ? can anyone tell me , thank you!
char queries[] = "????????????????";


Quick -- what is the output of

puts(queries);


????????????????
No peeking! :)


A more interesting scenario is...

char queries[] = "'????????????????'";

Mac programmers of old should know, or at least know there's a potential
problem.

--
Peter
Nov 13 '05 #9
"Arthur J. O'Dwyer" wrote:
On Fri, 21 Nov 2003, CBFalconer wrote:
liu wrote:

how c language to realize multiple ? can anyone tell me


char queries[] = "????????????????";


Quick -- what is the output of

puts(queries);

No peeking! :)


It is "????????????????" without the quotes and with a final
'\n'. Assuming a system that conforms to the C standard.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 13 '05 #10

On Sat, 22 Nov 2003, Peter Nilsson wrote:

"Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote...
On Fri, 21 Nov 2003, CBFalconer wrote:

char queries[] = "????????????????";
Quick -- what is the output of

puts(queries);


????????????????


Whoops -- my memory was faulty! I could've sworn there
was an "escape" trigraph ??? => ?, so that the above would
print fewer ?s than expected. But there's not. Peter and
Chuck are correct.

A more interesting scenario is...

char queries[] = "'????????????????'";

Mac programmers of old should know, or at least know there's a potential
problem.


<ot>
Did some Mac language contain the ??' => ^ trigraph?
</ot>

-Arthur
Nov 13 '05 #11
On Sat, 22 Nov 2003 05:14:52 -0500, Arthur J. O'Dwyer wrote:

On Sat, 22 Nov 2003, Peter Nilsson wrote:

"Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote...
> On Fri, 21 Nov 2003, CBFalconer wrote:
> >
> > char queries[] = "????????????????";
>
> Quick -- what is the output of
>
> puts(queries);


????????????????


Whoops -- my memory was faulty! I could've sworn there
was an "escape" trigraph ??? => ?, so that the above would
print fewer ?s than expected. But there's not. Peter and
Chuck are correct.

A more interesting scenario is...

char queries[] = "'????????????????'";

Mac programmers of old should know, or at least know there's a potential
problem.


<ot>
Did some Mac language contain the ??' => ^ trigraph?
</ot>


Old Mac C compilers let you pack 4 8-bit characters in an int by including
them all in a character literal:

int creator = 'PROG';
int type = 'myTp';

This was necessary because such multi-character constants were used by the
operating system to as program and file-type identifiers. I don't know if
that's exactly what Arthur is talking about though, because I don't
remember there being an issue with including such character constants in
string literals. I guess it's been too long.
Nov 13 '05 #12
"Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote in message
news:Pi***********************************@unix50. andrew.cmu.edu...
On Sat, 22 Nov 2003, Peter Nilsson wrote:
A more interesting scenario is...

char queries[] = "'????????????????'";

Mac programmers of old should know, or at least know there's a potential
problem.


<ot>
Did some Mac language contain the ??' => ^ trigraph?
</ot>


It was avoided by writing '???\?' instead of '????' (a common constant).

--
Peter
Nov 13 '05 #13

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

Similar topics

9
by: Limey Drink | last post by:
Hi I have used recently for the odd shell scrit hear and there but nothing really serious. Software I have previously written has been in VB(urgh) and C++. I have been thinking of changing my...
105
by: Peter Hickman | last post by:
Well after all this discussion it would appear that a 'Python like' language has appeared => Prothon. http://www.prothon.org/index.html Very alpha, sort of like Python (if you consider the...
32
by: nobody | last post by:
This article is posted at the request of C.W. Yang who asked me to detail my opinion of Lisp, and for the benefit of people like him, who may find themselves intrigued by this language. The...
4
by: liu | last post by:
how c language to realize multiple ? can anyone tell me , thank you!
11
by: Andrew | last post by:
Hello, I understand that this is a good place to post suggestions about future changes to the language, and that the Microsoft developers who develop C# read this newsgroup. If there is a more...
15
by: Marshal | last post by:
First... let's deal with Delegates. Comments welcome. 1) Invoking a NULL delegate is annoying. ** (It should just do nothing rather than crash.) 2) It's too easy to accidently attach multiple...
126
by: ramyach | last post by:
Hi friends, I need to write a parallel code in 'C' on the server that is running SGI Irix 6.5. This server supports MIPS Pro C compiler. I don't have any idea of parallel C languages. I looked...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
17
by: CoreyWhite | last post by:
I bought this book years ago, when I was just learning C++. Since then I've gone through every math course offered at my college, taken courses on coding C & thinking in terms how how to make the...
43
by: Adem24 | last post by:
The World Joint Programming Language Standardization Committe (WJPLSC) hereby proclaims to the people of the world that a new programming language is needed for the benefit of the whole mankind in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.