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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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 63019 - 63049 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
63019
hi friends, hw assignment operator is executing? for example, int i=1,j,k; i++ + (j=i); nw the j value is 2; // i is incremented and assgined., eventhough it...
saravanan kumar
ad_saravana_...
Online Now Send Email
Aug 1, 2007
11:48 am
63020
... I assume it to be compiler dependent. The order( Right to Left, or Left to Right) in which the arguments are pushed to stack will determine the result. -- ...
Sumit Chawla
sumit_k_chawla
Offline Send Email
Aug 1, 2007
12:39 pm
63021
hi, in both cases, j is still 1; This is post increment then i still keeps value 1 in the expression, and after the execution of the expression, it gets value...
duong van yen
yenhk43
Offline Send Email
Aug 1, 2007
1:08 pm
63022
hello Vic,thank you for your comments now i understand that the last element of an array could not be always used but considering our friend's (brian's)...
Anup Joshi
joshianups
Offline Send Email
Aug 1, 2007
2:16 pm
63023
hello! i'm trying to sort a list of objects using hash_multiset. i was wondering if anybody worked with hash_multiset and if they had any problems sorting more...
linutza_aldys
Offline Send Email
Aug 1, 2007
2:58 pm
63024
... no, you misunderstand what uchar y[1] means. I hear there is a lanugage out there (I don't know which, and I don't WANT to know) in which that defines an...
Vic Wagner
vawjr1943
Offline Send Email
Aug 1, 2007
3:18 pm
63025
... by it's nature, hash_multiset (not part of the C++ standard) is unordered, and you cannot muck with the order. IF you need it ordered, use std::multiset. ...
Vic Wagner
vawjr1943
Offline Send Email
Aug 1, 2007
3:21 pm
63026
... Don't do that. Looks like undefined behavior to me. Separate the above into multiple statements to declare your intentions. -- Thomas Hruska CubicleSoft...
Thomas Hruska
shininglightpro
Offline Send Email
Aug 1, 2007
3:39 pm
63027
... It doesn't look like UB Thomas - it /is/ UB :) To the OP, this code above is the bit invoking undefined behaviour - you're both modifying i (on the left)...
Paul Herring
shabble
Offline Send Email
Aug 2, 2007
12:42 pm
63028
... any ... i'm not really interested in easy access... all i need is the elements to be in correct order. i also tried using multiset, but without success. do...
linutza_aldys
Offline Send Email
Aug 2, 2007
1:15 pm
63029
... The OP said 'hw' which usually means 'homework'...I now realize they meant 'how'. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus...
Thomas Hruska
shininglightpro
Offline Send Email
Aug 2, 2007
2:31 pm
63030
... std::multiset<yourtype> theset; ... have an object contain itself? perhaps you should tell us what exactly it is you think you want to do. or do you want...
Vic Wagner
vawjr1943
Offline Send Email
Aug 2, 2007
2:45 pm
63031
#include <iostream> int main() { char bdate[1]; cin >> bdate; cout << bdate; } ... wht's wrong in this?? this gives me an error : Untitled1.cpp: In function...
Hardik Patel
phdonglz
Offline Send Email
Aug 3, 2007
10:22 am
63032
how about if i have a gamescreen and i want items in it to be placed in different locations within the gamescreen as i start the game........
eliakim_online25
eliakim_onli...
Offline Send Email
Aug 3, 2007
10:23 am
63033
hello Vic thank you for all your responses. i was just trying to use union as an alternative to that problem and hence following your response i changed the...
Anup Joshi
joshianups
Offline Send Email
Aug 3, 2007
10:23 am
63034
... X ... exactly ... yes, i was trying to create an object to contain a collection of it's own types and to sort that collection. i managed to make it work...
linutza_aldys
Offline Send Email
Aug 3, 2007
10:24 am
63035
... std::cin std::cout -- Brett ... "In the rhythm of music a secret is hidden; If I were to divulge it, it would overturn the world." -- Jelaleddin Rumi...
Brett W. McCoy
smartandkewl
Offline Send Email
Aug 3, 2007
11:01 am
63037
... We don't do your homework for you. Are you having a specific problem with something? -- Brett ... "In the rhythm of music a secret is hidden; If I were to...
Brett W. McCoy
smartandkewl
Offline Send Email
Aug 3, 2007
1:03 pm
63038
#include <iostream> using namespace std; int main() { char bdate[1]; cin >> bdate; cout << bdate; return 0; } this will do it. ... From: Hardik Patel...
Ajinkya Kale
ajinkyakale_86
Offline Send Email
Aug 3, 2007
3:31 pm
63039
hi, you need to change your code as: either: #include <iostream> using namespace std; { char bdate[1]; cin >> bdate; cout << bdate; } or #include <iostream> { ...
duong van yen
yenhk43
Offline Send Email
Aug 3, 2007
5:22 pm
63040
... Use two random numbers - one to generate the x coordinate, the other the y coordinate. You can limit each direction using the modulus operator % #define...
Thomas Hruska
shininglightpro
Offline Send Email
Aug 3, 2007
7:26 pm
63041
... Ah - you need txtSpk2.0 installing then Thomas... homework is h/w. ;) Not that we usually get people explicitly telling us that what their question relates...
Paul Herring
shabble
Offline Send Email
Aug 3, 2007
8:05 pm
63042
Hi, I am wondering why my compiler gcc doesn't complain with following code #include<iostream> int main() { int j; std::cin>>j; int k[j]; } Without new or...
mano M
blaunche
Offline Send Email
Aug 3, 2007
8:51 pm
63043
... padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} ... background-color:#e0ecee;margin-bottom:20px;padding:2px ... ...
Hardik Patel
phdonglz
Offline Send Email
Aug 3, 2007
11:23 pm
63044
... http://www.cplusplus.com/doc/tutorial/namespaces.html -- Brett ... "In the rhythm of music a secret is hidden; If I were to divulge it, it would overturn...
Brett W. McCoy
smartandkewl
Offline Send Email
Aug 3, 2007
11:25 pm
63045
... More than likely, you are using stack space...assuming the compiler hasn't completely optimized out the 'int k[j];' line because 'k' is never used (you...
Thomas Hruska
shininglightpro
Offline Send Email
Aug 4, 2007
1:36 am
63046
... A better explanation might be: "Merges all objects and variables in the 'std' namespace into the current scope. In this case, the global scope for the...
Thomas Hruska
shininglightpro
Offline Send Email
Aug 4, 2007
1:42 am
63047
pl help me wit tis..... wat is t actuall function of cin.pushback(ch).... in some cases,though pushback(ch) is used the input stream is taken without...
suraj swaminathan
suraj_aten
Offline Send Email
Aug 4, 2007
2:52 pm
63048
Can we allocate 2D array (dynamically) in one line. int **p; int i,j; std::cin>>i>>j; p=new int[i][j]; ... delete [][]p; Is the above code snippet acceptable? ...
mano M
blaunche
Offline Send Email
Aug 4, 2007
2:52 pm
63049
hello everyone there i m creatin "window registry editor" in C# . can anybody tell me any usefull tweaks or projects that can be done by editing window...
Bilal Jan
just4u_cpp
Offline Send Email
Aug 4, 2007
2:52 pm
Messages 63019 - 63049 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