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...
Show off your group to the world. Share a photo of your group with us.

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 44939 - 44968 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
44939
We are looking for a presence of a particular character sequence in order. The overall objective is to evaluate the presence of the character sequence within...
unix_c_cpp lover
unix_c_cpp_l...
Offline Send Email
Jun 1, 2005
11:01 am
44940
... What kinds of "illegal values" stored at the offset would make a string compare operation crash? As long as the memory is really allocated to the string in...
Dan Engel
eineubergoober
Offline Send Email
Jun 1, 2005
12:08 pm
44941
... [deleted] ... 1) what the heck do you expect your list do DO? 2) why aren't you using std::string? ... Victor A. Wagner Jr. http://rudbek.com The five...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Jun 1, 2005
12:54 pm
44942
... Well, sort of. These are similar stuctures, not the same structure. It's not proper containment (in the sense of strictly greater) of the parent stucture...
Bernd Stramm
berndstramm
Offline Send Email
Jun 1, 2005
1:36 pm
44943
Thanks for the information. I tested out a few examples and found that string operation functions would only crash if we pass a NULL char or const char pointer...
unix_c_cpp lover
unix_c_cpp_l...
Offline Send Email
Jun 1, 2005
2:25 pm
44944
Check out this page: http://www.scit.wlv.ac.uk/cbook/chap1.strings.html You have to use the escape equivalents to test non-printable characters. Here are some...
Andre
ralph_malph
Offline Send Email
Jun 1, 2005
2:47 pm
44945
... Which operations are you talking about? And how does that tie in with representing the string as an unsigned int? The only constraint that string...
Dan Engel
eineubergoober
Offline Send Email
Jun 1, 2005
2:47 pm
44946
... And, of course, the string must have that null character at the end to prevent the operation from running all over the place....
Dan Engel
eineubergoober
Offline Send Email
Jun 1, 2005
2:56 pm
44947
... list of ... I think what he is looking for is a list template that lets him specify what to use instead of the copy constructor for the objects in the...
Bernd Stramm
berndstramm
Offline Send Email
Jun 1, 2005
2:56 pm
44948
... Why not just use memmem: if ( memmem( message, length_of_message, char_sequence, length_of_char_sequence) == the_right_place) { . . . the sequence is...
Dan Engel
eineubergoober
Offline Send Email
Jun 1, 2005
3:12 pm
44949
... Actually, I have decided to use std::string for this project. What I am hoping to eventually accomplish is to write my own allocator class that will...
Don Shrout
madwhit
Offline Send Email
Jun 1, 2005
4:02 pm
44950
... I think you have misunderstood the purpose of the allocator. All of those classes (list, vector, etc.) have constructors that will do the appropriate deep...
Barry Gold
bgoldnyxnet
Offline Send Email
Jun 1, 2005
4:25 pm
44951
On 6/1/05, Barry Gold <barry@...> wrote: Ok, duh! I was being stupid. The list was acting just as it should. The list was allocating space for...
Don Shrout
madwhit
Offline Send Email
Jun 1, 2005
6:06 pm
44952
... Read the STL manual on allocators. I found SGI's version http://www.sgi.com/tech/stl/Allocators.html Generally speaking, you write your own allocator if...
Barry Gold
bgoldnyxnet
Offline Send Email
Jun 1, 2005
6:42 pm
44953
Hello All, Please can anyone show me the usage of the function clrscr() in c. Regards, Siraj [ It depends on which library you're using but... ...
sirajus@...
siraj_khan12
Offline Send Email
Jun 1, 2005
10:38 pm
44954
... Better to use the term 'null char' or 'null byte' rather than 'NULL char' which confuses the issue in that NULL is a null pointer constant macro and is not...
peternilsson42
Offline Send Email
Jun 1, 2005
11:44 pm
44955
Is there any way to detect the name of function you are currently in? I want my small piece of software to write a log having details of each function called....
Hemant Jangid
jangid_hemant
Offline Send Email
Jun 2, 2005
4:28 am
44956
HI :), There is no such API's or system functions to display function names in which you are in as far i know !!!. I think this is not necessary to include in...
Ramprasad Ramprasad
ramprasad_i82
Offline Send Email
Jun 2, 2005
6:10 am
44957
... Generally, __LINE__ and __FILE__ are sufficient, but C99 did introduce __func__ to be an implicit identifier which is the name of the enclosing function......
peternilsson42
Offline Send Email
Jun 2, 2005
6:23 am
44958
Just have the Program Function enter it's name into the log and remove it when it leaves. __________________________________ Discover Yahoo! Have fun online...
Benjamin Scott
benjamin_cai...
Online Now Send Email
Jun 2, 2005
6:49 am
44959
I know this topic has been discussed before, but i am running into some problems and cannot figure out what's going on. Below i have included the code i am...
ofilha
Online Now Send Email
Jun 2, 2005
3:56 pm
44960
... absent writing his/her own, ain't gonna happen. [deleted] [Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Jun 2, 2005
4:11 pm
44961
... you've misunderstood the purpose of the allocator. I think you've also misunderstood the purpose of the containers in the library. the usual thing is to...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Jun 2, 2005
4:16 pm
44962
... some compilers have built-in macros that you can use for example: Microsoft VC++7.1 has: __FUNCTION__: Valid only within a function and returns the...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Jun 2, 2005
4:24 pm
44963
The function clrscr( ) should be used only after variable declarations. say use this piece as an example: { int a, b, c, d ; char a1, b1, c1; float a2; double...
Sanjeev Gopinath
sanjeev902001
Offline Send Email
Jun 2, 2005
4:53 pm
44964
... I just mentioned that the clrscr( ) should be used after var. decl. Its not like that.... For that reason you can just say... after any declaration... say...
Sanjeev Gopinath
sanjeev902001
Offline Send Email
Jun 2, 2005
5:00 pm
44965
It can be placed anywhere in Borland C++. I always did that way when I programmed using that IDE several years ago. In fact, clrscr( ) was traslated directly...
Jaime Stuardo
jstuardo@...
Send Email
Jun 2, 2005
5:00 pm
44966
One difference between C and C++ is that, in C, all the local variables have to be declared at the beginning of a function block. In C++, they can be placed...
Andre
ralph_malph
Offline Send Email
Jun 2, 2005
6:02 pm
44967
I was talking about placing clrscr() anywhere, not variables. Of course, in C, variables has to be declared only at the beginning of the block. Maybe I...
Jaime Stuardo
jstuardo@...
Send Email
Jun 2, 2005
7:31 pm
44968
... I slightly reformatted your code and inserted some comments. void getnew(char** list) ... /* try argv = (char**)malloc(3 * sizeof(char*)); */ argv =...
Don Shrout
madwhit
Offline Send Email
Jun 2, 2005
9:58 pm
Messages 44939 - 44968 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