In a message dated 7/31/2004 11:36:37 PM US Eastern Standard Time, ... You can get the kernel hacking howto at: www.kernelhacking.org/docs/kernelhacking-HOWTO ...
Hi: This can be done with templates. Templates can work with non previously defined types and constant values, in this case, only a constant value N is used. ...
This is a kind of optimization generally done by all C / C++ programmers who want better execution speed. If you know that you are going to use value of...
Hello All, I want to store the string of integers to integer data type on HP-UX. I do not have atoi function to convert. I need like that: int main() { int...
Durai
tech_durai@...
Aug 2, 2004 12:11 pm
38570
int main(int argc, char *argv[]) { int n; if(argc != 2){ puts("Usage: myprog "); exit; } n = atoi(argv[1]); printf("%d\n",n); return 0; } ... From: Durai...
From: Paul Herring Sent: 02 August 2004 13:19 ... In too much of a hurry to post. This should have read: if ((c>1) && (sscanf(argv[1], "%d", &i) == 1)){ ... --...
hi buddy, i am no expert but i tried ur prob of convertin char string to int and dont have a very satisfyin ans but i thought u might be interested to know......
Hi, You said that you have not an 'atoi()' function and you like to implement one. To do so you must consider the string "1234" as if it was four separate ...
Okman Moshe
Moshe.Okman@...
Aug 2, 2004 12:46 pm
38575
great way to cal factorial man truely awesome.. arnt u the kinda guy who likes to travel in riksha havin a farrari at ur home.. i mean ppl should really...
From: [mailto:mayank_yankeeguy_007@...] Sent: 02 August 2004 13:44 ... How about: int i=0,j=0; char x[]="15325"; while ((x[i]-'0' >=0) && (x[i]-'0' >=0))...
well thats the reason that it doesnt work with some values i said i am not satisfied with my sol well keep tryin we may come up with somthin MAYANK ... Do you...
well wait a sec... ur char string x="12345" or whatever will end with '/0' right. i hope i rem my basics so.... how abt for(i=0;x[i]!='/0';i++) y=y+x[i]; y...
I think you are new to programming and still stuck with the basic factorial programs that are given as assignments in the college. And I bet for sure " You...
Glad that you've found that out yourself. Yes, you can only pass static member function to _beginthreadex (or its relatives). If you need to access the...
*** shouldn't this be: ( Correct me if I am wrong ); y *=10; y = y+(x[i] - '0'); ... From: Mayank To: c-prog@yahoogroups.com Sent: Monday, August 02, 2004 8:02...
real world people don't calculate FACTORIAL at compile time grow up yourself, "kid"!! ... Victor A. Wagner Jr. http://rudbek.com The five most dangerous...
Hey Guys, What include path is stdafx.h, I have VS 6.0 and VS Toolkit, and I couldn't find "stdafx.h" header in non of there include directories. George...
it's supposed to be in the local directory somehow you managed to tell your system that you want to use precompiled headers and then forgot to include it or...
... You're not wrong, but ideally, you should check that the characters being converted are actually digits... for (y = 0, i = 0; '0' <= x[i] && x[i] <= '9';...
Well, you'd never need to calculate the factorial at compile time though it can be achieved using templates. It is just a simple problem which clears up some...
Hello All, Thanks to all to clarify my doubt. Regards, Durai. ... From: peternilsson42 To: c-prog@yahoogroups.com Sent: Tuesday, August 03, 2004 4:30 AM ...