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 60612 - 60641 of 71513   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
60612
... Thanks Victor- by 'unusual', do you mean it's a bit simple? This example is only to demonstrate my query; if you mean something else, please could you...
John Matthews
johnmatthews...
Offline Send Email
Feb 1, 2007
8:00 am
60613
... Hi John. You may find the following URLs helpful: http://www.robthebloke.org/cppdir/StandardTemplateLibrary.htm http://www.robthebloke.org/ ... ...
Joseph A. Marrero
darkshroomz
Offline Send Email
Feb 1, 2007
11:09 am
60614
... thinks it is ... For ls to list the src directory, put both the statements in a single line. For example: cd src && ls Explanation at: ...
Abhay Padlia
padlia_abhay
Offline Send Email
Feb 1, 2007
11:11 am
60615
Hello, I am just learning C++ and I want to know the header file used when you want to genearte random numbers and the syntax of random identifier....
MoMaFuckEup
okestra09
Offline Send Email
Feb 1, 2007
11:21 am
60616
... The header is <cstdlib>, the relevant function is rand (), but don't forget to seed it first. Here's a link with an example: ...
Tamas Marki
tamas_m
Offline Send Email
Feb 1, 2007
11:45 am
60617
Hello, I have tired write a matrix program using c++ but i wasnt able to get it. The program is to generate the values of the matrix itself and the program...
MoMaF%^&Eup
okestra09
Offline Send Email
Feb 1, 2007
11:50 am
60618
i tried a program which uses dlopen etc. gcc compiles if i name it as .c, but if its .cpp it complains try this ...
Indika Bandara
indikabandara19
Offline Send Email
Feb 1, 2007
12:08 pm
60619
how to divide a number by 3 without using * / %...
Parul Puri
frolic_p
Offline Send Email
Feb 1, 2007
12:10 pm
60620
int num = 1200, i=0; for(;num>3;i++) num -=3 printf("division %d\n", i); printf("remainder %d\n", num); did i feed a lazy boy...? (better answers will follow)...
Indika Bandara
indikabandara19
Offline Send Email
Feb 1, 2007
12:22 pm
60621
... Why would you want to? Unless it's obfuscation or a homework/interview question; if it's one of the latter, then you shouldn't be asking here. -- PJH ...
Paul Herring
shabble
Offline Send Email
Feb 1, 2007
12:27 pm
60622
use shift operators ________________________________ From: c-prog@yahoogroups.com [mailto:c-prog@yahoogroups.com] On Behalf Of Parul Puri Sent: Thursday,...
prem.krishna@...
kingofkings8...
Offline Send Email
Feb 1, 2007
12:47 pm
60623
I think u can try with << operator.... But the datatype of the value has to be int.... and u will get a quotient.... ... From: c-prog@yahoogroups.com...
Rajesh
rajeshg@...
Send Email
Feb 1, 2007
12:48 pm
60624
shift operator divides by 2 but i want it to divide by 3 ... -- -- Thanks and Regards Parul Puri AMDOCS Development Centre India (DVCI) Revenue Management -...
Parul Puri
frolic_p
Offline Send Email
Feb 1, 2007
12:56 pm
60625
... I actually got asked this once at an interview... just like multiplication is a sequential addition, division is a sequential subtraction. So you can use...
Brett W. McCoy
smartandkewl
Offline Send Email
Feb 1, 2007
12:57 pm
60626
... This is not a compiler bug. One of C and C++'s biggest differences are that C lets you cast any pointer type to and from void*, while in C++ you need to...
Tamas Marki
tamas_m
Offline Send Email
Feb 1, 2007
1:07 pm
60627
... Well divide by 2, then add onto that the original number divided by 4 then. ... -- PJH #706281 +(1868)- [X] TriPod11: bush ain't THAT bad...he kinda knows...
Paul Herring
shabble
Offline Send Email
Feb 1, 2007
1:12 pm
60628
But i dont think so its an usefull are advisable.... Because we can use only int datatype for shifting....We wont get a decimal values.... ... From:...
Rajesh
rajeshg@...
Send Email
Feb 1, 2007
1:14 pm
60629
thanks, guess then gcc automatically calls g++ when he encounters a .cpp file(no matter what is inside) ... message, if...
Indika Bandara
indikabandara19
Offline Send Email
Feb 1, 2007
1:17 pm
60630
... You need to be explicit in your casting when compiling as C++. C will implicitly cast for you. -- Brett ... "In the rhythm of music a secret is hidden; If...
Brett W. McCoy
smartandkewl
Offline Send Email
Feb 1, 2007
1:52 pm
60631
... That's correct. gcc recognizes .C, .cc, .cp, .cpp, .CPP, .cxx, .c++ as C++ source code and will compile it accordingly. -- Brett ... "In the rhythm of...
Brett W. McCoy
smartandkewl
Offline Send Email
Feb 1, 2007
2:22 pm
60632
How ?Multiples of 2 is understandable but 3 please explain.. I would have used substraction of 3 in a loop. till the result is less than 3(childish ans ) ...
shubhrajyoti datta
shubhrajyoti...
Offline Send Email
Feb 1, 2007
2:23 pm
60633
Hi guys, need a little help from you UNIX experts. I should help a friend of mine to port a little application from Unix to Windows. This application reads...
fabio_cabella@...
cabbi3
Offline Send Email
Feb 1, 2007
2:35 pm
60634
... ask related questions pls...
chaitanyacckr
Offline Send Email
Feb 1, 2007
2:53 pm
60635
Just check it I am giving a fair idea Its possible only for whole numbers ... int n=0,div=0; if(n==27) /*assuming 27 is the number i am going to divide */ { ...
prem.krishna@...
kingofkings8...
Offline Send Email
Feb 1, 2007
3:04 pm
60636
... x/2 + x/4 = x/3. Basic maths I would have thought.... I would have used substraction of 3 in a loop. ... -- PJH #706281 +(1868)- [X] TriPod11: bush ain't...
Paul Herring
shabble
Offline Send Email
Feb 1, 2007
3:09 pm
60637
Not sure what you mean by random identifier. But consider the following: #include <cstdlib> #include <ctime> using namespace std; int main( int argc, char...
Joseph A. Marrero
darkshroomz
Offline Send Email
Feb 1, 2007
3:14 pm
60638
can someone give me a hand here.........give me a clue thanks Robert Ryan <bobzcplpl@...> wrote: I am using Visual C++.........what does...
Robert Ryan
bobzcplpl
Offline Send Email
Feb 1, 2007
3:28 pm
60639
... Plug in 8 for the above formula: 8/2 + 8/4 = 8/3 4 + 2 = 2.66 6 = 2.66 Someone needs his morning coffee... -- Thomas Hruska CubicleSoft President Ph:...
Thomas Hruska
shininglightpro
Offline Send Email
Feb 1, 2007
4:10 pm
60640
... Paul forgot to say he was using the new 'nullity' concept... -- 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
Feb 1, 2007
4:19 pm
60641
... I only meant that making a list of int was unusual, given the overhead of two pointers in each node, it gets expensive to contain just one int. ... Victor...
Victor A. Wagner Jr.
vawjr1943
Offline Send Email
Feb 1, 2007
4:26 pm
Messages 60612 - 60641 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