- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
Re: i fixed your code, but i'll let you figure out what changed and why. you'll learn more that way. if you can't figure something out, ask and i'll tell you. :) [code] #include <iostream> #include <iomanip> using namespace std; // Function prototypes void arrSelectSort(double[], int); void showArrPtr(double[], int); int main() … | |
Re: try the [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.form.shown.aspx"]Form.Shown[/URL] event. | |
Re: all you're doing is printing the bit. you want to print the next bit, then chop it off. [LIST] [*]normal order: print bit 1<<(n-1) and left shift by 1. this prints and removes the most significant bit. [*]reverse order: print bit 1 and right shift by 1. this prints and … | |
Re: [QUOTE]just curious if it is bad coding style to have multiple declarations in my for loop. [/QUOTE] why would it be bad style? | |
Re: [QUOTE=PRINCE01;1172190]I need instance method(s) within the class am writing that convert from any base to base 10 & vice versa WIThOUT USING ANY LIBRARY ROUTINE. //this is what i have so far private int DecimalToBinary(int Decimal, int BaseNumber) { int Reminder; do { Reminder = Decimal % BaseNumber; } while … | |
Re: [QUOTE]By the way, do you happen to know if this kind of syntax work in Java, too? If not, is there any equivalent methodology to this in Java?[/QUOTE] Java doesn't need it because Java doesn't have a preprocessor like C++. :) the line continuation rules in Java for normal statements … |
The End.