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 60106 - 60135 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
60106
hi This is the simple example #include<stdio.h> #include<string.h> typedef struct { char *m; int *k; char cm; int km; }B1; void main() { B1 *base ,*base1; char...
tamilselvan balan
tt_selvan
Offline Send Email
Jan 1, 2007
2:21 pm
60107
Hi, I tried to change the value of a constant variable whose memory will be in .rdata. But I am unable to do it. Could you please go through the following code...
Gopi Krishna Komanduri
gopikomanduri
Offline Send Email
Jan 1, 2007
4:26 pm
60108
... Erm - if it's constant, why are you trying to change it? [snip] -- PJH #713059 +(1255)- [X] <SaintAlvus> Does the name Doctor Pavlov ring a bell?...
Paul Herring
shabble
Offline Send Email
Jan 1, 2007
5:10 pm
60109
... sounds like a bad idea to me (like undefined results) ... Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Jan 1, 2007
5:32 pm
60110
... Why are you using a constant if you want to change its value? -- Brett ... "In the rhythm of music a secret is hidden; If I were to divulge it, it would...
Brett W. McCoy
smartandkewl
Offline Send Email
Jan 1, 2007
9:42 pm
60111
Hi, I am learning PE format and while going thru Sections details ,I just want to see whether I can change a constant value by changing characteristics of ...
Gopi Krishna Komanduri
gopikomanduri
Offline Send Email
Jan 2, 2007
1:22 am
60112
Hi, I am new to VC++ and trying to install OpenGL and trying get an example program to link with the "opengl32.lib". I found some instructions from: ...
Herbert Murray
hcm1955
Offline Send Email
Jan 2, 2007
11:52 am
60113
In the solution explorer, right click on the project and select properties. A dialog box should open with a tree control on the left side. On the left side,...
Joseph A. Marrero
darkshroomz
Offline Send Email
Jan 2, 2007
3:45 pm
60114
... <snip code> ... Think of a constant as read-only memory. Where you are going wrong is in trying to change a constant. <rant> There is no such thing as a...
Ray Devore
rbdevore2007
Offline Send Email
Jan 2, 2007
5:06 pm
60115
Hi all, I've seen this line in an opengl program, is it for the same purpose i.e. telling the compiler to link with opengl32.lib #pragma comment(lib,...
chetan verma
chetanism_gr...
Offline Send Email
Jan 2, 2007
5:11 pm
60116
... Actually you should do: #include "your-header.h" The quotes tell the compiler to look in the current directory first, then the system include directory. ...
Ray Devore
rbdevore2007
Offline Send Email
Jan 2, 2007
5:15 pm
60117
I will try this Thanks, Bert...
Herbert Murray
hcm1955
Offline Send Email
Jan 2, 2007
5:36 pm
60118
Hi Ray Devore, I understood upto some extent. But have small query. IN my program ,if I define as char * const myname="gk230012" , won't we call it as a ...
Gopi Krishna Komanduri
gopikomanduri
Offline Send Email
Jan 2, 2007
5:38 pm
60119
Yes. I have seen this as well. However, I don't think #pragma is well supported and/or portable. I'm not sure but I'm making such a statement based on...
Joseph A. Marrero
darkshroomz
Offline Send Email
Jan 2, 2007
8:58 pm
60120
... Um, you sure about that? http://tech.groups.yahoo.com/group/c-prog/files/html/headers.html -- PJH #713059 +(1255)- [X] <SaintAlvus> Does the name Doctor...
Paul Herring
shabble
Offline Send Email
Jan 2, 2007
9:02 pm
60121
Friend, You can declare a pointer and make it point to the constant. Then, you can use the indirection operator to write the new value in the address of the...
Adithyan K
adithyank
Offline Send Email
Jan 2, 2007
9:24 pm
60122
... http://tech.groups.yahoo.com/group/c-prog/files/html/headers.html ... No, I am not sure. Always thankful for greater enlightenment. Thanks, Ray ...
Ray Devore
rbdevore2007
Offline Send Email
Jan 3, 2007
3:18 am
60123
... Shouldn't this be: p = &c; ... Have you actually ran the code and printed the value of c? IIRC the last time this came up, *P printed out 1000 but c still...
Ray Devore
rbdevore2007
Offline Send Email
Jan 3, 2007
3:27 am
60124
... In char * const myname="gk230012"; myname is a constant pointer to variable data. Which means you can change the value of the data, but not the location...
Ray Devore
rbdevore2007
Offline Send Email
Jan 3, 2007
3:28 am
60125
I'm trying to measure the error of a double-to-float conversion, but I'm not having success. The following code demonstrates how: int main() { double x =...
rgearyiii
Offline Send Email
Jan 3, 2007
4:31 am
60126
... I'm not sure I see what the difficulty is ... Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Jan 3, 2007
7:13 am
60127
Obviously, For a conversion from double to float, the double value is rounded to the nearest float value and then the convertion from float to double will...
Sunil Nair
sunilnair4_t...
Offline Send Email
Jan 3, 2007
9:32 am
60128
... Sunil Depending on the compiler, there may be a difference in the magnitude of float and double. Looking at the help files for VC++7, it shows that the...
Ray Devore
rbdevore2007
Offline Send Email
Jan 3, 2007
2:35 pm
60129
... I modified your program as follows: #include <iostream> #include <iomanip> int main() { double x = 389.298897140148174498; float w = static_cast< float>(x)...
Ray Devore
rbdevore2007
Offline Send Email
Jan 3, 2007
2:55 pm
60130
Hi Ray, Yes. I ran this code and it is getting executed fine. Both c and *p points to 1000 only. I am getting correctly. I am using Turbo C++ 3.0. Friendly, K...
Adithyan K
adithyank
Offline Send Email
Jan 3, 2007
3:47 pm
60131
Guys ENOUGH IS ENOUGH. Think of a constant as a value placed in at compile time. For example, in the following two codes are the same. Code 1; const int c =...
Benjamin Scott
benjamin_cai...
Offline Send Email
Jan 3, 2007
5:40 pm
60132
OK, I finally got what I was after, which was a way to compress a double (8-bytes on my system) down to a (float, short int) pair (6-bytes on my system). The...
rgearyiii
Offline Send Email
Jan 3, 2007
5:41 pm
60133
Hey pals!!! plz help me out in making this program in c++.. i m to Declare a pointer that holds a two dimensional array of double (data type).then Create an...
t_u.l_i_p
Offline Send Email
Jan 4, 2007
12:41 am
60134
... Tulip, I will be kind. This is not a chat room, so do not use chat terms. Show us your attempt and we will help you where you get stuck. We are here to...
Ray Devore
rbdevore2007
Offline Send Email
Jan 4, 2007
4:53 am
60135
... May be ......but i think u would possible get a (level 1) compiler warning... I am not sure too.. sry :) with regards, Sunil Adithyan K...
Sunil Nair
sunilnair4_t...
Offline Send Email
Jan 4, 2007
9:32 am
Messages 60106 - 60135 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