4,439 Posted Topics
Re: Antibiotics only help against bacteria... | |
Re: switch([B]int[/B]); What is int? Remove the ; after it to begin with. Where is default? Where is break? | |
Re: Just concentrating on the first problem [QUOTE]int x; int y; int m; float ave; Console.ReadLine(); Console.ReadLine(); Console.ReadLine(); ave = x + y + m / 3; Console.WriteLine(ave); Console.ReadKey(true);[/QUOTE] As Antenka and papuccino1(Hi how is your baby boy doing?) are saying: use x = Console.ReadLine(); but then you have a problem, … | |
Re: Don't annoy a user. When the action is save, save and nothing else. Why not show him the latest Bond film after he did a save? But if you really must : the last line in your save method, should be a call to your print method. | |
Re: Try this in a console app: StringBuilder sb = new StringBuilder("this is a test"); Console.WriteLine(sb); string str = sb.ToString(); char ch = str[0]; sb.Replace(ch, char.ToUpper(ch), 0, 1); Console.WriteLine(sb); Console.ReadKey(); | |
Re: THe best tutorial I can think of is your course notes and your textbook. Or are you missing both? At least show us what you already have. Please? | |
Re: Why not allow only "numeric" input in a textbox? [url]http://www.daniweb.com/code/snippet1094.html[/url] Don't annoy a user with useless alarm messages. | |
Re: If you can OO compare cars it should be easy to compare lines. What have you got so far? EDIT: sorry this was just posted after yours... | |
Re: If in the while loop leave out the initialisation of [B]number=0;[/B] it should work, now you are always testing zero. | |
Re: Pseudocode : if textbox1 is blank then do something else if texbox2 is blank then do something else if textbox3 is blank then do something else do something | |
Re: Why not use a thing called [B]Object Serialization [/B]so that you will have everything under your control, being undependant of some system permission settings? | |
Re: Are we talking about a DataGrid or a DataGridView here? | |
Re: Why do you keep a counter? ArrayList is so kind of doing that for you : MyArList.Count. | |
Re: Use output.Write(fr.friendName); output.Write(fr.friendStreet); etc. Assuming they are strings. | |
Re: Depends. But this [url]http://www.etro.vub.ac.be/Personal/bjansen/dlls/interfacing.html[/url] may start helping you out. | |
Re: Start with New project. Choose Empty project, name it CSharpSchool. Choose Add Item and select class. Now type in your code. | |
Re: The code project has several matrix related articles like [url]http://www.codeproject.com/KB/recipes/matrixclass.aspx[/url] hope this helps. | |
Re: If you stored your information in a DataSet, what is the problem with retrieving that information? | |
Re: Just as MSDN is a fine source of information so is Google. Typed in ADO.NET, look what I found! [url]http://www.codeproject.com/KB/database/DatabaseAcessWithAdoNet1.aspx[/url] | |
Re: On the original Macintosh you did not even had the concept of a console. You did your event driven(see Salem above) programming in C or Pascal. You HAD to use windows, dialogs and buttons etc. | |
Re: Normally wc -l should give you the line count. wc -w gives the word count. | |
Re: I would start a forms application and put a splitcontainercontrol in it. In Panel1 I would put a TreeView control in Panel2 I would try a ListView. | |
Re: It is called [B]hover [/B]over some object. Search this site for answers like [url]http://www.daniweb.com/forums/thread133192.html[/url] | |
Re: Check the KeyEventArgs in your TextBox KeyDown event handler. Don't annoy a user with an error messagebox, simlpy do nothing when a user types in anything other then letters. | |
I have an array of array wich all have the same length. Which syntax is to be preferred : multidimensional : string[,] names = new string[5,4]; or jagged : string[][]names = new string[5][4]; Or is it, in this case just a matter of style? I searched this site and I … | |
Re: OK BlackSun your attempt is honorable but totally beside the question. ( And please drop your textbox fumbling!) Indianblues just needs to follow the advice of LizR here: open the helpfile and look for StreamReader Read. If Indianblues has no helpfile he can google for help or come back here. | |
Re: Show us what code you already have. It might enlighten us on the problem you are encountering. | |
Re: The program wont crash, but as long as you don't type YES,Yes,yES etc. you will stay in the do...while loop. | |
Re: Rashakil was just making a point here. You seem a bit desperate. Never be desperate when you want to be a programmer. Why use a 3D array? Have you considered an array of class or struct for your "Saler"(I think you mean salesman) In a class or struct you could … | |
Re: I had the same problem once with Stopwatch. Read this article [url]http://www.codeproject.com/KB/dotnet/ExecutionStopwatch.aspx[/url] | |
Re: Write a compiler in your code, feed it the string "example" and it will run.(If your string has no compile errors in it of course) | |
Re: [B]meal = (t / (tar + 100)) * 100; [/B]??? Why not use [B]meal = t * (tar +100)/100;[/B] ? | |
Re: I can do the same when I open the Tools Options menu | |
Re: The first term of your sum is always zero, so start with i=2. Use an if-statement for the first factor of your product. If i is even then it is -1 else it is 1. For the second factor I should use 1/(i*i*i). So trash the power function and the … | |
Re: It is all explained here [url]http://msdn.microsoft.com/en-us/library/xfhwa508.aspx[/url] | |
![]() | Re: I recently read the book: "Mathematical tools in computer graphics with C# implementations." It is rather mathematically oriented but has many code listings that show what you can do with C# in this area. B.t.w. you can download this code from their site [url]http://eve.uj.ac.za/gfxbook[/url]. You'll have to do some editing...They … |
Re: Write say 20 digits down on paper and another 20 or so digits. Now add them. Do the same in your compurter program but use arrays and for loops and so on. Happy computing | |
Re: Have you tried debugging to see what's going on? | |
Re: Why don't you leave out all the white space and convert it with the letters of the alphabet in reverse! There is a preview, before you post, there are code tags, there is info enough here to read before you post. Please do take into consideration we are only human. … ![]() | |
Re: The [B]sqrt [/B]function returns a value of type [B]Extended[/B]. ( number with a decimal point in it.) Internally these numbers are stored differently then [B]Integer [/B]or [B]LongInt[/B]. That's why they are called incompatible types. | |
Re: Start sending me 50000$ first. The rest of the details will be discussed afterwards. | |
Re: There is but one C# language(With versions,extensions). You can start the compiler from the console (csc.exe I believe) or you could use an IDE like Visual Studio. VS makes it much easier for you(does lots of code generation for you), but it is handy if you still know what you … | |
Re: Something like [B]Output->Text = faren.ToString(); [/B]perhaps? | |
Re: Adobe acrobat reader documents although binary often start with the text [B]%PDF[/B] | |
Re: Simply said : don't use a minus operator on the left side of an assignment operator. | |
Re: When yo are in design view and you press the little button with the lightning symbol on it, in the properties window. You get a list of all available events for the control currently selected. Double click the event you want and you will get into the code view in … | |
Start a new Forms application. Add a DataGridView control to the Form. Add a few Columns to the DataGridView. In the properties window select the ColumnHeadersDefaultCellStyle (ahh what's in a name...) property. A dialog opens. Change the appearance BackColor to whatever color you like. Run the application. On my system … | |
Re: Nice question! VS2008 c# 3, .net 3.5 |
The End.