Search the web
Sign In
New User? Sign Up
c-prog · C/C++ Programmer's Mailing List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 67761 - 67790 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
67761
The header file is included in all the program. Hope it will compile fine... ... #include <stdio.h> #include <errno.h> #include <string.h> #include <stdlib.h> ...
subhankar katyayan
subhankar_k@...
Send Email
Sep 1, 2008
8:21 am
67762
Hi People,                     I have a doubt in C program. Suppose i have declared int i = 1234; If I want to print only 12 (first 2...
prakaashganth d
prakaashganth
Offline Send Email
Sep 1, 2008
10:31 am
67763
... You can convert the int to a string with sprintf(), then truncate the string after the first two characters, then display the string. Alternatively, if you...
andrew clarke
zoomosis
Offline Send Email
Sep 1, 2008
11:05 am
67764
... printf("%i\n", i / 100); Although, if you are wanting a general solution, convert it first to a string, then lop off the first two bytes and display those....
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
11:20 am
67765
... There is no need for subtracting the modulus. It is redundant. Integers are truncated automatically. -- Thomas Hruska CubicleSoft President Ph:...
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
11:27 am
67766
... For some reason I was thinking the division would promote the result to a floating point value. I think this happens in PHP (and possibly Pascal?)....
andrew clarke
zoomosis
Offline Send Email
Sep 1, 2008
11:34 am
67767
Hi All,         I have 2 idea... 1)     main()    {         int j, i = 1234;         for ( j = i; j > 100; j /= 10) ...
Rajath N R
rajath_nr
Offline Send Email
Sep 1, 2008
11:40 am
67768
... Yes, that happens in PHP. However, you can do typecasting in PHP: <?=(1234 / 100)?> 12.34 <?=(int)(45 / 100)?> 12 I'm pretty sure Pascal doesn't promote...
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
11:47 am
67769
... Oops. (Copied and pasted my first example). <?=(int)(1234 / 100)?> ... -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get...
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
11:55 am
67770
... Novel approach. Won't work on multiples of 100. 100, 1000, 10000, etc. for (j = i; j >= 100; j /= 10); Would be more correct. But both are unnecessary....
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
11:58 am
67771
... I suppose the former is more correct for the general case. The OP really should have been more specific. -- Thomas Hruska CubicleSoft President Ph:...
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
12:04 pm
67772
... And Delphi? http://www.codegear.com/products/delphi/win32...
John Matthews
johnmatthews...
Offline Send Email
Sep 1, 2008
12:16 pm
67773
... ...although on the 'Overview' page they call it 'the Delphi language', and Pascal isn't mentioned at all. On the 'Reasons to Buy' page they call it 'the...
John Matthews
johnmatthews...
Offline Send Email
Sep 1, 2008
12:21 pm
67774
... Also, I was sitting next to a (UK) college lecturer on the train the other day, and she said they still teach students Pascal to get them started in...
John Matthews
johnmatthews...
Offline Send Email
Sep 1, 2008
12:35 pm
67775
... I spent about 5 years in the early 90s learning Pascal before I took up C. Old habits, etc. Delphi is fairly heavily based on Borland's "Object Pascal"...
andrew clarke
zoomosis
Offline Send Email
Sep 1, 2008
12:50 pm
67776
... (InnoSetup is something like Delphi 3-based since later versions apparently bloat the file size or introduce dependencies). I realize a number of popular...
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
12:55 pm
67777
... Actually, that is pretty common. I don't see any particular differences between C and Pascal that would make Pascal "ideal" for learning. Basically, such...
Thomas Hruska
shininglightpro
Offline Send Email
Sep 1, 2008
1:03 pm
67778
... Perhaps it's C's tolerance of things like: if (x = y) that offends the 'purists' :-)...
John Matthews
johnmatthews...
Offline Send Email
Sep 1, 2008
2:59 pm
67779
Try ipcrm -m $( ipcs -m | cut -d ' ' -f 5 | grep "^[1-9]" ) SK Karthik ... [Non-text portions of this message have been removed]...
Sk karthik
catchskk@...
Send Email
Sep 1, 2008
3:17 pm
67780
Thanks for your response, I could able to solve it as follows. Hope it may be helpful to others as well #!/bin/ksh PID=$(ipcs -m |grep "subh" |awk '{print...
subhankar katyayan
subhankar_k@...
Send Email
Sep 1, 2008
10:12 pm
67781
Hi, I got a strange issue in aix ,when I deal with funtion which retunrs pointer. And same works fine in Linux system. My function looks like as below //...
mano M
blaunche
Offline Send Email
Sep 1, 2008
10:12 pm
67782
The problem is this: We did a software and it works with: LIB AXIS2C 1.0.0 and AXIOM_SOAP_12 But when we tried to compile it on client´s PC the LIB AXIS2C...
Rodrigo Bortholin
rbortholin
Offline Send Email
Sep 1, 2008
10:13 pm
67783
... The trouble with pseudo code is it only shows pseudo problems. If you want to know the real answer, post the smallest compilable snippet that exhibits the ...
peternilsson42
Offline Send Email
Sep 2, 2008
3:18 am
67784
... Sounds more like homework to me. ... The use of implicit int is lazy, as is the lack of include for <stdio.h> which is _required_ for the correct use of...
peternilsson42
Offline Send Email
Sep 2, 2008
3:40 am
67785
Hi All, Anyone know how to determine the CPU register size (32 bits or 64 bits) from within a program? Regards, Vipul...
vipul_lal_100
Offline Send Email
Sep 2, 2008
5:39 am
67786
... You really must stop talking to yourself John... ;) -- PJH http://shabbleland.myminicity.com/...
Paul Herring
shabble
Offline Send Email
Sep 2, 2008
10:36 am
67787
On Tue, Sep 2, 2008 at 4:21 AM, vipul_lal_100 ... Why would you want to? -- PJH http://shabbleland.myminicity.com/...
Paul Herring
shabble
Offline Send Email
Sep 2, 2008
10:42 am
67788
... If there was any other way of getting a sensible conversation, I would :-) John...
John Matthews
johnmatthews...
Offline Send Email
Sep 2, 2008
12:43 pm
67789
Hi Folks,    I have a small query. Upto my knowledge , every process will have 4GB of virtual memory and in that the last 2 GB (I mean from 0x00400000 -...
Gopi Krishna Komanduri
gopikomanduri
Offline Send Email
Sep 2, 2008
2:54 pm
67790
Hi, anyone know any openGL discussion group on yahoo or elsewhere? Last time I subscribe to an openGL on yahoogroups, I win tens of lottery every day and no...
Jos Timanta Tarigan
jos_t_tarigan
Offline Send Email
Sep 2, 2008
7:12 pm
Messages 67761 - 67790 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help