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...
Want to share photos of your group with the world? Add a group photo to Flickr.

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 68896 - 68925 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
68896
... ...and you could also use a function to simplify: #include <stdio.h> static char get_reply(const char *prompt) { char buf[100], c; printf("Enter %s:\n",...
John Matthews
johnmatthews...
Offline Send Email
Dec 1, 2008
9:06 am
68897
... It's clearly invalid, due to the existence of huge amounts of prior art. If corporations want to waste their money on patenting things like this, let them...
David Hamill
dc_hamill
Offline Send Email
Dec 1, 2008
9:53 am
68898
Dear all, I allocated memory to one array, which stores data from one file, and I made a condition that if one data being read using fscanf() is larger than...
Titi Anggono
tiang_ono
Offline Send Email
Dec 2, 2008
4:38 am
68899
... It's a good idea to use fgets(), where you can specify a maximum number of characters to read. If you malloc() 42 bytes then tell fgets() to read 42...
andrew clarke
zoomosis
Online Now Send Email
Dec 2, 2008
5:09 am
68900
... Is that OS/environment-dependent?...
John Matthews
johnmatthews...
Offline Send Email
Dec 2, 2008
6:28 am
68901
... In the case of fgets(), a terminating '\0' is helpfully included in the count, unlike most string functions where a string of n chars needs storage of n+1...
David Hamill
dc_hamill
Offline Send Email
Dec 2, 2008
9:33 am
68902
... And don't forget that fgets() adds a '\n' to the end of the string if there are n-2 or less characters in the input. Actually I think what the OP was...
John Matthews
johnmatthews...
Offline Send Email
Dec 2, 2008
1:35 pm
68903
Hi, STL map's comparison functor expects one that returns a bool. struct strCmp { bool operator()( const char* s1, const char* s2 ) const { return strcmp( s1,...
Indika Bandara Udaged...
indikabandara19
Offline Send Email
Dec 2, 2008
4:11 pm
68904
... Are you trying to read a whole file? If so, why? ... Only if it is dynamically allocated. Since you haven't shown any code, most of the replies have...
peternilsson42
Offline Send Email
Dec 2, 2008
10:32 pm
68905
[mod pn-- <http://www.google.com.au/search?q=how+to+check+a+pixel+is+either+inside+or+outside+or+on+a+polygon>] dear friends                 ...
maya maya
selfmaya
Offline Send Email
Dec 2, 2008
10:38 pm
68906
... First you need to come up with a data structure to represent polygons. Then you need an algorithm to work out whether a point is inside or outside the...
David Hamill
dc_hamill
Offline Send Email
Dec 3, 2008
11:46 am
68907
I have a old but looks like a good book on learning c++ it uses a codewarrior professional 5 series. Do's anybody know is this version still available new or...
alan.dutton
alandutton64
Offline Send Email
Dec 4, 2008
9:40 am
68908
hi, I came across several books named "brain-friendly" and think this term is cool, so I use it here. :) To C beginners, I hope my explanation would help you...
frank zhu
frankzhu_2001
Offline Send Email
Dec 5, 2008
8:34 am
68909
... Hi Frank, What you have written is interesting, but I'm not sure it will help beginners. I think they would be better just learning how to use the stdarg.h...
John Matthews
johnmatthews...
Offline Send Email
Dec 5, 2008
10:20 am
68910
I am trying to work on an old project that a coworker developed under MVS 2005. He has since left the compnay and I've pulled the project out of our source...
Mike Unger
munger60
Offline Send Email
Dec 5, 2008
7:52 pm
68911
vector<char> v; is this an empty vector or is it vector<char>; without the v [Non-text portions of this message have been removed]...
Robert Ryan
bobzcplpl
Offline Send Email
Dec 6, 2008
6:32 am
68912
... You can call v.empty() to determine that. ... vector<char> is a datatype. You can't call vector<char>.empty(). Your question is equivalent to: int x = 42;...
andrew clarke
zoomosis
Online Now Send Email
Dec 6, 2008
12:19 pm
68913
is vector<char>    ------    a char of type vector or  is it  vector<char> the whole data type with vector<string> names; is names the name of the vector...
Robert Ryan
bobzcplpl
Offline Send Email
Dec 6, 2008
2:58 pm
68914
... Your question is turning into a riddle. You may want to read this: http://en.wikipedia.org/wiki/Vector_(STL) And refer to a decent C++ book that covers the...
andrew clarke
zoomosis
Online Now Send Email
Dec 6, 2008
6:55 pm
68915
Hi, it's me again. :) I'm almost finished with my school project, the only thing I need is to find and count such numbers in an array (it's a matrix) that...
jagomaniak
Offline Send Email
Dec 6, 2008
8:02 pm
68916
... Use two loops, an outer one for the rows, and an inner one for each cell within the row. Steve -- (o< www.stevesearle.com //\ Powered by Fedora ...
Steve Searle
reddishsteve
Offline Send Email
Dec 6, 2008
8:19 pm
68917
Hi all, I am sure this question has been discussed many times... but once more I got a code written in C, it makes use of the type: long long int code compiles...
step0ut
Offline Send Email
Dec 6, 2008
8:48 pm
68918
sorry if you thought it was a riddle, I just finished writing a code for several people to perform some tasks and the code worked. It was setting up the...
Robert Ryan
bobzcplpl
Offline Send Email
Dec 6, 2008
9:11 pm
68919
... ...with a test that the cell isn't the one in the middle. Alternatively, use a function that takes a cell position relative to the cell of interest in...
John Matthews
johnmatthews...
Offline Send Email
Dec 6, 2008
9:15 pm
68920
... Think carefully about what you mean by "in their surroundings". For example, do diagonally adjacent numbers count as neighbours, or only vertically and...
David Hamill
dc_hamill
Offline Send Email
Dec 6, 2008
11:40 pm
68921
... Just because .NET is in the name doesn't mean it always links against the .NET runtimes. Most people use VC++ for what it is intended for - authoring...
Thomas Hruska
shininglightpro
Offline Send Email
Dec 7, 2008
3:06 am
68922
... Yes, actually. http://dn.codegear.com/museum That and India hasn't understood that Turbo C is an ancient compiler and still probably has warehouses of it....
Thomas Hruska
shininglightpro
Offline Send Email
Dec 7, 2008
3:17 am
68923
... I second the IDE. That and the IDE (assuming it is halfway decent) makes debugging code a zillion times easier. A good IDE will automagically manage...
Thomas Hruska
shininglightpro
Offline Send Email
Dec 7, 2008
3:20 am
68924
... You can abbreviate this to just "long long". ... Works for me. $cat long-long-test.cpp long long int slot_pattern = 0ll; $make long-long-test.o c++ -O2...
andrew clarke
zoomosis
Online Now Send Email
Dec 7, 2008
4:55 am
68925
... It can still be useful to have a makefile - where I work engineers have to be able to rebuild some of the in-house utilities we use themselves (in Linux)....
John Matthews
johnmatthews...
Offline Send Email
Dec 7, 2008
9:34 am
Messages 68896 - 68925 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