... 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...
... Hi John. You may find the following URLs helpful: http://www.robthebloke.org/cppdir/StandardTemplateLibrary.htm http://www.robthebloke.org/ ... ...
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...
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)...
... 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 ...
use shift operators ________________________________ From: c-prog@yahoogroups.com [mailto:c-prog@yahoogroups.com] On Behalf Of Parul Puri Sent: Thursday,...
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@...
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 -...
... 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...
... 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...
... 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...
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@...
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...
... 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...
... 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...
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 ) ...
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...
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 */ { ...
... 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...
Not sure what you mean by random identifier. But consider the following: #include <cstdlib> #include <ctime> using namespace std; int main( int argc, char...
... 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...
... 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...