|
OK, you're off to a start. Look up the Random class for info on generating random numbers, then read up on for/next loops for your main loop. Ask your teacher or check your course books for more info.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Why do you have 500 "Console.WriteLine" ?? Well not quite 500 but jeze, you still have quite a few!
Use a single string,
You seem to be in a class/new to programming so I'll help you with these:
1) No need to call write line 100 time unless you need to
2) The char '\n' is bad to use in .NET unlike some other other language's the new line char '\n' doesn't get converted by the compiler to the system's correct new line format. So there is a class called "Environment" which contains a "NewLine" property (the correct way to do a '\n' in .NET) which will decode to the correct new line string.
Console.WriteLine("Welcome to The Quiz Program!{0}"
+ " You can be quizzed on any of the following operators:{0}"
+ "\t1) %\t(modulus, or 'remainder'){0}"
+ "\t2) *\t(multiplication){0}"
+ "\t3) /\t(integer division){0}"
+ "\t4) /%\t(integer division & modulus in a combined challenge!)"
+ "{0}{0}Choice (1,2,3,or 4):", Environment.NewLine);
|
|
|
|
|
Hello...
I'm using toolStripTextBox and I want to detect "Leave" from this toolStripTextBox.
Somehow, it's nor working.
I attach an event "Leave" and try to write in that toolStripTextBox and just
click another control. The event is not working...
Anybody has the same problem ?
|
|
|
|
|
Try toolStripTextBox.TextBox.Leave event.
|
|
|
|
|
It's not working...
Any other ideas ?
|
|
|
|
|
I just setup an event for myToolStripTextBox.Leave and it fires correctly. If it's not working for you, please post some code.
|
|
|
|
|
try to put the textbox under dropdown menu in toolstrip. it doesn't work anymore...
anyway, thanks for the reply. I just use another event to update my data object.
|
|
|
|
|
Hi friends..
How to dock a form like visual studio solution explorer....
|
|
|
|
|
Did you try Form.Dock = ... ?
rotter
|
|
|
|
|
Hi friend..
I am working windows based MDI application... i tried Form.dock style but it is not effective.When mouse drag enter into the form means dock style is not working... can u have any idea..U have any sample code pls send me...
|
|
|
|
|
I think you didn't mean "Dock" but "Pin/Unpin"
I have no idea on how to do this.
rotter
|
|
|
|
|
It's not possible with out-of-the-box controls. Either you need to write the logic to handle this yourself, or use an existing control like Divelement's SandDock[^].
|
|
|
|
|
Hello all:
Can anybody explain me please how can I make .dll file???
Thanks in advance.
The way of Professional softwares start in two:
Simple codes and develop it.
Simple but effective ideas.
|
|
|
|
|
|
Hello :
Thanks a lot....
The way of Professional softwares start in two:
Simple codes and develop it.
Simple but effective ideas.
|
|
|
|
|
I have .Net 2.0 MSI. I installed this on Vista. To access few functionalities of the application installed, i check if the logged in account is an administrator as below:
WindowsPrincipal principal = (WindowsPrincipal)Thread.CurrentPrincipal;
_IsAuthorized = principal.IsInRole(WindowsBuiltInRole.Administrator) || principal.IsInRole(WindowsBuiltInRole.PowerUser);
This function detects the logged in account as administrator only for the user account with which i logged in to install the MSI.
For other computer administrator accounts it does not recognize.
How do i resolve this issue on Vista? Is there any other way to know if the logged in account is an administrator?
|
|
|
|
|
Hi everyone.
I recently started an online software business. I'd like for my customers to be able to purchase my software (via PayPal) and after the purchase, be directed to a link where they can download the software.
I'd prefer one that had a blind link (one where you could not get to from anywhere else). I'm sure there are sites that offer such services, but I'm having a tough time finding any.
I already have the payment transaction setup through PayPal, but I don't know how to handle the downloading of the software.
Any suggestions?
Thanks.
|
|
|
|
|
One way to do this would be to generate a unique, time-limited url for download by a specific customer. The link would expire after the software has been downloaded and/or "n" units of time after that event or after the customer has made the purchase.
/ravi
|
|
|
|
|
I'm decent at programming applications, but pretty ignorant when it comes to web programming. How do you do what you said?
|
|
|
|
|
Create a database table, such as:
CustomerDownloads
id unidentifier
ordertime datetime default(GetDate())
downloaded bit default(0)
When creating the link for them to download your software, generate a new guid to include in the link. Enter this guid as the id in the table. When the user wants to download the software, use the guid to lookup the order, check the time or downloaded flag as necessary.
Simplistic, but thats the gist of it.
only two letters away from being an asset
|
|
|
|
|
You might want to check out mediafire.com which I used for this purpose when payment was made to googlecheckout I just emailed the link.
|
|
|
|
|
Hello,
Please I need help in:
How does runtime creates an object from a derived class?The runtime must instantiate the base class then the derived class but how? in a single object?Or int two deferent objects that have to interact together?
Thanks.
Dad
|
|
|
|
|
Hi Guy
try with reflection namespace.
i means just get object base class. check if base clas object with ur derived class object.
thanks
|
|
|
|
|
<br />
Using System.Reflection.
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
|
|
|
|
|
Are you asking how inheritance work in runtime?
If it creates an instance of both the baseclass and the subclass?
In that case, no, it doesnt create an object per class.. it creates only one single object.
You can think of it as if all the code in the base class is copied into the subclass when you compile.
(this is not quite how it works, but it might be easier to grasp the concept if you think of it like that..)
"this" and "base" are the same object, its just that when writing "base" you can reffer to methods that was defined in the baseclass... but its still the same object, just a different method you are using.
|
|
|
|