_int64 ( :-? )

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
User avatar
kallal
New poster
Posts: 4
Joined: Wed Jun 11, 2003 7:11 pm
Location: Bangladesh
Contact:

_int64 ( :-? )

Post by kallal »

I am using Turbo C/C++ , It doesn't have _int64. how can i handle 64 bit number ? :oops:
Hi to all from Kallal !
hijbul_ctg
New poster
Posts: 8
Joined: Sat Apr 19, 2003 5:41 pm
Contact:

Post by hijbul_ctg »

no u cannot do it in tc. u must use Visual C.

in turbo 3.1 version u can use long which is 32 bit.
and before submit u make it long long which 64 bit, in judge complier support it. it may be gcc compiler.
long long n;
printf("%lld",n);
Moni
Experienced poster
Posts: 202
Joined: Fri Mar 22, 2002 2:00 am
Location: Chittagong. CSE - CUET
Contact:

Post by Moni »

But Hijbul!

A generally use C++ so when using :
[cpp]

long long a;

long double b;

cout << a << b;
[/cpp]

It don't bother much ;)

But in C what will be appropiate for long double data type ??? :-?
ImageWe are all in a circular way, no advances, only moving and moving!
hijbul_ctg
New poster
Posts: 8
Joined: Sat Apr 19, 2003 5:41 pm
Contact:

Post by hijbul_ctg »

Hi Moni
I don't understand your question. if you want to know about the argument than in C it is as follows:
long double n;
printf("%Lf",n);
anupam
A great helper
Posts: 405
Joined: Wed Aug 28, 2002 6:45 pm
Contact:

Post by anupam »

yes moni bhai,
you can do it with borland c but u cannot use long long in visual c++.
because it is only supported by unix and linux operating system.
"Everything should be made simple, but not always simpler"
hank
Experienced poster
Posts: 146
Joined: Mon Feb 04, 2002 2:00 am
Location: VCORE.

Post by hank »

Hi everybody!
Can you tell me how to use "printf" to print a _int64 value?
(I use VisualC++ 6.0 and I don't have bc++,so I can't use "long long" data type)
Thanks a lot!! :P
Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Post by Dominik Michniewski »

printf("%I64d",x);

Best regards
DM
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
Post Reply

Return to “C++”