|
Dixy wrote: The new number would be 796.
Correct.
Now do your own homework.
|
|
|
|
|
And you're in trouble if you need help with this homework question. Serious trouble.
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
Well let see .... I think you can start with a for or foreach loop. And then you can move on to Google to get some more information.
Logic makes the world go around ....
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
I would go with a while loop:
while not num.BON
{
etc.
}
where BON is Beginning Of Number...
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
The problem is well defined, hence: good luck!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I find it fun to take some simple homework assignment like this and try to turn it into a one-liner.
int encode(int v){return 0<v?0xa*encode(v/0x64)+v%0xa:v-v;}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
It would be SO awesome if he submits this....
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I downloaded a solution in C#,where i found files with XAML extensions,which i cannot open in VS 2005.I want to know about windows presentation Foundation.Do i need to install anything??What should i do to run that solution??
Regards,
Priya
|
|
|
|
|
Either install .NET 3.0, or get VS2008.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Rubbish. .NET 3.5 does NOT support VS2005, no IDE is ever compatible with a new framework, 3.0 is not a new framework, it's an add on to 2.0.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Not strictly true Christian. VS2005 will work with .NET 3.5 but the compiler won't understand some of the new coding structures so you have to code a little differently.
This link[^] has a few details.
To the OP, WPF can be added on by installing .NET 3.0 and Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF). Just google for wpf vs2005
Dave
|
|
|
|
|
I want to enlarge the icons in a LilstView. How do I do?
_____________________________
...and justice for all
APe
|
|
|
|
|
change the image height & width.
|
|
|
|
|
The images I use (in the ListView.ImageList) are very big...
_____________________________
...and justice for all
APe
|
|
|
|
|
There's a property of height and width in the listbox property box.. change that..
currently it will be set to 16x16 increase that to 24x24 or 32x32
|
|
|
|
|
Hello
i just want to know do we use external variables in C#.NET
LIKE
static extern bool ShowWindow(IntPtr Wnd, int nCmdShow);
what are the uses of using extern in C#.NET
ANY SORT OF REPLIES IS HIGHLY APPRECIABLE
REGARDS
|
|
|
|
|
http://msdn.microsoft.com/en-us/library/e59b22c5(VS.80).aspx[^]
It seems extern is used to indicate that a method is implimented outside the C# code, for example, in a p/invoke signature.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi
I'm trying to programmaticaly get a scanned tiff image's dimension like the info displayed in summary tab of properties dialog of file
is there any way to get dimension directly instead of using resolution?
any idea?
I Wish the Life Had CTRL-Z
|
|
|
|
|
If you can work out what the shell is doing to get that info, you can try to p/invoke it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thanks
I Wish the Life Had CTRL-Z
|
|
|
|
|
If by "dimension" you mean the width and height of the image measured in pixels, which is what I see in the summary tab, you can use this quick and dirty means.
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap("MyImage.tif");
int width = bitmap.Width;
int height = bitmap.Height;
bitmap.Dispose();
If you need more info, you could get a copy of the TIFF specification, read the file header, and extract what you need from those bytes.
Hope that helps.
BDF
A learned fool is more a fool than an ignorant fool.
-- Moliere
|
|
|
|
|
thanks for replying
i meant in MM or CM
there is a Image class properties named PhysicalDimension
but that is not worked in the files that i should use
i wanted to avoid converting pixels to dimension by myself
I Wish the Life Had CTRL-Z
|
|
|
|
|
how can i convert linkbutton CommandArgument to sender object in c#.
The same wichi is used in vb.net is ---
CType(sender,LinkButton).CommandArgument
For eg:
I need to get the CommandArgument value of the selected link button from the datagrid. In vb.net i use
CType(sender,LinkButton).CommandArgument
how can be done in c#.
Thankyou,
Yesu
|
|
|
|
|
LinkButton lb = sender as LinkButton
if (lb != null)
{
// The conversion was valid.
}
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|