Since 4/14/2012 6:53:40 PM, skarpio has written 8 articles and participated in 188 conversations. skarpio signature: skarpio
skarpio's articles:
Items(8) /1
Can I use accumulate to do this?437 (3/7/2009 4:42:45 PM) comp.lang.c++ I just can't get my head around to create a suitable binary_function that will do this i.e. call a member function from within accumulate. In fact I rolled my own template. But I have a terrible feeling of rein... Suman
Cross referencing objects: Am I invoking UB?329 (3/1/2009 12:34:22 PM) comp.lang.c Let us take the sample code below: /* start of translation unit */ struct foo { int datum; struct foo *link; }; static struct foo bar; /* declare bar to have internal linkage and static duration */ ... Suman
H[y]stery behind the structure name FILE?333 (4/19/2007 1:04:46 PM) comp.lang.c I don't seem to recall having seen any other structure defined in the standard libraries that has an all uppercase name. FILE, is a glaring exception. Does anyone know as to why this is so? I am not too sure i... Suman
Multiple calls on same std::string object323 (4/10/2007 11:54:32 AM) comp.lang.c++ Hello All, Is the following fragment well defined? std::string some_str("Hello World"); .... some_str.replace(some_str.find("Wor"), strlen("Wor"), other_str); Or does the nested call on the same string objec... Suman
Is ':' an operator?324 (3/21/2007 5:58:54 AM) comp.lang.c++ Hello All, I have never ever thought about this, till recently I cam across a book (COM/DCOM Primer) where ':' is referred to as the scope resolution operator used in the following context: class Derived : pu... Suman
Q: char, wchar_t and operator << overloading129 (9/21/2006 9:44:18 AM) comp.lang.c++ Hello All, Given a structure: struct s { char *name; wchar_t *surname; }; I wish to define a friend function for the above struct: std::ostream& operator<<(std::ostream& out, const s& x); or whatever suit... Suman
Can we overload *_cast<> operators?524 (6/14/2006 6:22:42 AM) comp.lang.c++ Having had a look at the C++ FAQ, comp.lang.c++ & comp.std.c++ archives and Stroustrup's FAQs (particularly the following: ) I am left to wondering why Stroustrup doesn't mention the *_cast operators cannot be ... Suman
Doubts:Steve Summit's page/Chapter 221429 (11/8/2004 5:03:59 AM) comp.lang.c Hi all, Please clarify the following piece of code: /* delete node containing i from list pointed to by lp */ struct list *lp, *prevlp; for(lp = list; lp != NULL; lp = lp->next) { if(lp->item == i) ... skarpio
doubts430 (6/30/2006 7:21:50 AM) comp.lang.c i m new to programming and i m in the beginning stage of learning. can you tell me exactly what is meant by the term software developing. what are steps involved in software development? i know only the very ba... monadev(1)
void vs void* (philosophical question)1828 (6/30/2006 9:52:51 AM) comp.lang.c According to the standard (ISO C99 draft WG14/N1124), void is the incomplete type that cannot be completed and comprises the empty set of values. Since it declares the absense of a value can it be considered a ... ipapadop(140)
What is wrong? #32825 (7/4/2006 9:35:44 AM) comp.lang.c Hi everybody! I have this function: int Scan(char String[]) { printf("%s", String); } it works but when I try to pass a dotted string o separetad with (" ", "_" , "-" ...ecc) it return only first word. I p... federico_bertola(16)
Can I use accumulate to do this?437 (3/7/2009 4:42:45 PM) comp.lang.c++ I just can't get my head around to create a suitable binary_function that will do this i.e. call a member function from within accumulate. In fact I rolled my own template. But I have a terrible feeling of rein... skarpio(196)
Cross referencing objects: Am I invoking UB?329 (3/1/2009 12:34:22 PM) comp.lang.c Let us take the sample code below: /* start of translation unit */ struct foo { int datum; struct foo *link; }; static struct foo bar; /* declare bar to have internal linkage and static duration */ ... skarpio(196)
H[y]stery behind the structure name FILE?333 (4/19/2007 1:04:46 PM) comp.lang.c I don't seem to recall having seen any other structure defined in the standard libraries that has an all uppercase name. FILE, is a glaring exception. Does anyone know as to why this is so? I am not too sure i... skarpio(196)
Multiple calls on same std::string object323 (4/10/2007 11:54:32 AM) comp.lang.c++ Hello All, Is the following fragment well defined? std::string some_str("Hello World"); .... some_str.replace(some_str.find("Wor"), strlen("Wor"), other_str); Or does the nested call on the same string objec... skarpio(196)
Is ':' an operator?324 (3/21/2007 5:58:54 AM) comp.lang.c++ Hello All, I have never ever thought about this, till recently I cam across a book (COM/DCOM Primer) where ':' is referred to as the scope resolution operator used in the following context: class Derived : pu... skarpio(196)
pointers to structures #21126 (7/6/2006 11:58:40 AM) comp.lang.c I am a bit confused here, having not programmed for some time. Any help would be gratefully received. If I define a couple of structures thus: struct sfinfo { double srate; short ssize; ... rjd(2)
Is not printf("%p", &i) correct?1022 (7/6/2006 5:23:10 AM) comp.lang.c Is parameter type conversion required for the 2nd argument on printf("%p", (void *)&i); ? But one would never call memcpy like: memcpy((void *)pi, (void *)pj, sizeof *pj); /*memcpy((void *)pi, (void *)pj, ... lovecreatesbeauty(723)