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@...
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...
... 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...
... 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....
... 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?)....
... 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...
... Oops. (Copied and pasted my first example). <?=(int)(1234 / 100)?> ... -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get...
... 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....
... I suppose the former is more correct for the general case. The OP really should have been more specific. -- Thomas Hruska CubicleSoft President Ph:...
... ...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...
... 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...
... 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"...
... (InnoSetup is something like Delphi 3-based since later versions apparently bloat the file size or introduce dependencies). I realize a number of popular...
... 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...
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@...
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@...
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 //...
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...
... 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 ...
... 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...
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 -...
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...