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...
Message search is now enhanced, find messages faster. Take it for a spin.

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 68030 - 68059 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
68030
Hi Friends, One simple doubt: const int a = 10; // global my_function() { const int b = 20; // local } Will both 'a' and 'b' be stored in data segment? If...
Arindam Biswas
biswaari
Offline Send Email
Oct 1, 2008
8:35 am
68031
The way I understand Constants Only the compi.lier "Knows" about it.  The end program doesn't.  In this sence, Constants aren't even data. ... From: Arindam...
Benjamin Scott
benjamin_cai...
Offline Send Email
Oct 1, 2008
9:41 am
68032
... Why do you care? What's more important is whether const means 'constant' or 'don't write'. It means the latter. So in the above fragments, you tell the...
peternilsson42
Offline Send Email
Oct 2, 2008
12:48 am
68033
... I suppose it depends on the compiler. K&R say that the const keyword may even be ignored by a compiler! This sort of thing is very implementation-dependent...
David Hamill
dc_hamill
Offline Send Email
Oct 2, 2008
12:48 am
68034
Hi, I'm having a class with lots of variables, and each one has a set get method. Its actually not very important but I hate having too much names in a class. ...
Jos Timanta Tarigan
jos_t_tarigan
Online Now Send Email
Oct 2, 2008
12:49 am
68035
... Yes, in the sense that if you remove every instance of const (outside of string literals and the like obviously), the semantics of the program will not...
peternilsson42
Offline Send Email
Oct 2, 2008
12:54 am
68036
... Parameter names will 'shadow' globals in function methods. It's a matter of style, I prefer not to name parameters the same as a global that I need to use....
peternilsson42
Offline Send Email
Oct 2, 2008
1:00 am
68037
Can someone show me an example of how to use perror? For example, if((fp=fopen("file","wb"))==NULL perror() /* What goes into the char *string parameter */ ...
Bill Cunningham
billcu34
Offline Send Email
Oct 2, 2008
1:16 am
68038
... It's used for any custom message that precedes the actual error message. You could put, for example, perror("YIKES! I was trying to open a file, but "); ...
~Rick
thefirstrepa...
Offline Send Email
Oct 2, 2008
1:42 am
68039
... Typically you pass in a prefix, like the name of the program being run, and it prints out a string corresponding to the global variable errno (as returned...
Brett McCoy
smartandkewl
Offline Send Email
Oct 2, 2008
1:52 am
68040
Hi, I am just planning to start learing C++. I was wondering if someone could tell me the best free compiler online. Thanks a lot, .......
Davood Karimi
dkarimi57
Offline Send Email
Oct 2, 2008
6:01 am
68041
... When you joined the group, you should have received the group welcome message. It contained information on how to find a compiler. In general, beginners...
Thomas Hruska
shininglightpro
Offline Send Email
Oct 2, 2008
6:12 am
68042
... I have to disagree with this. IMO reliance on a debugger, especially by beginners, encourages sloppy thinking, poor understanding, and suck-it-and-see...
David Hamill
dc_hamill
Offline Send Email
Oct 2, 2008
10:13 am
68043
... I don't think Thomas was suggesting that a beginner rely on a debugger. But beginners should learn how to use a debugger early on, because it's a highly...
andrew clarke
zoomosis
Online Now Send Email
Oct 2, 2008
12:02 pm
68044
... I don't think using a debugger encourages sloppy thinking or poor understanding at all -- if anything, it helps increase one's understanding of the code....
Brett McCoy
smartandkewl
Offline Send Email
Oct 2, 2008
12:20 pm
68045
Hello All, I want to ask about volatile types, is it possible to use the volatile var as a mutex or just an always fresh var? if yes , how i can do that? ...
ayman el-barbary
ayman.imam
Offline Send Email
Oct 2, 2008
1:42 pm
68046
... If the OS allows 32-bit programs to run in a 64-bit environment, then it is the OS' responsibility to handle that. The compiler may have something to do...
Thomas Hruska
shininglightpro
Offline Send Email
Oct 2, 2008
1:53 pm
68047
Hi everyone, Thank you for reading my post. I hope this is the right place where to post it. Here is my problem. I want to do some file uploading (sending...
lmhelp
lmbox@...
Send Email
Oct 2, 2008
2:52 pm
68048
... Have a look at this web page: http://www.ddj.com/cpp/184403766 David...
David Hamill
dc_hamill
Offline Send Email
Oct 2, 2008
3:25 pm
68049
... Assuming that the correct value of content length is being reported, variable i seems to be getting set to EOF too early. Now, getchar() returns EOF at the...
David Hamill
dc_hamill
Offline Send Email
Oct 2, 2008
4:07 pm
68050
Hi, Thank you for your answer. So, I modified the code in the following way: ============================================================ int main() { int...
lmhelp
lmbox@...
Send Email
Oct 2, 2008
5:54 pm
68051
Is this proper use of perror. FILE *fp; if ((fp=fopen("file","w"))==NULL) { perror(fp); clearerr(fp); exit(EXIT_FAILURE); } I am passing the pointer to perror...
Bill Cunningham
billcu34
Offline Send Email
Oct 2, 2008
5:58 pm
68052
... No, that is incorrect. perror() takes a character string argument, not a FILE pointer. Take a look here: ...
~Rick
thefirstrepa...
Offline Send Email
Oct 2, 2008
6:36 pm
68053
... From: "~Rick" <Mowgli53@...> To: <c-prog@yahoogroups.com> Sent: Thursday, October 02, 2008 2:35 PM Subject: Re: [c-prog] perror ... Ok so the string...
Bill Cunningham
billcu34
Offline Send Email
Oct 2, 2008
6:46 pm
68054
Ok I will try this again, FILE *fp; if((fp=fopen("data","wb"))==NULL { perror("fopen"); clearerr("fopen"); exit(EXIT_FAILURE); } Is this the way to use perror...
Bill Cunningham
billcu34
Offline Send Email
Oct 2, 2008
7:20 pm
68055
... It can be whatever you want it to be. Traditionally, the name of the program is used, so you get something like this printed to the terminal window: ...
Brett McCoy
smartandkewl
Offline Send Email
Oct 2, 2008
8:05 pm
68056
As you seem to have no errors reading stdin, perhaps the data being uploaded is corrupt or in the wrong format? Your HTML form should look like this: <form...
David Hamill
dc_hamill
Offline Send Email
Oct 2, 2008
10:16 pm
68057
... Try this instead: #include <stdio.h> #include <stdlib.h> int main(void) { FILE *fp; fp = fopen("nonexistent.file", "r"); if (fp == NULL) { perror("Unable...
David Hamill
dc_hamill
Offline Send Email
Oct 2, 2008
10:42 pm
68058
I want to learn c++.Is the knowledge of c required for that? What should i do for learning c++ From where can i start?...
manna309
Offline Send Email
Oct 3, 2008
3:02 am
68059
On Thu, Oct 2, 2008 at 1:17 AM, Jos Timanta Tarigan ... Hi This should be possible by using the scope resolution (::) operator to access the global variable. ...
Jaspreet Singh
js_oberoi79
Offline Send Email
Oct 3, 2008
3:43 am
Messages 68030 - 68059 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