4,439 Posted Topics
Re: A SUPER-class normally inherits all the methods etc. of his SUB-class. Say you have a class [B]Car [/B]and class [B]Sportscar [/B]which inherits from [B]Car[/B]. If [B]Car [/B]has an engine so will have [B]Sportscar[/B]. | |
Re: When you mark a method of your class as virtual you give the user of your class the possibility to override that method. If you don't, the metod can't be overridden. | |
Re: Make an array of non overlapping locations. Randomly select from this array. | |
Re: Under the debug menu there is an option [B]Start without debugging[/B] | |
Re: What do you mean by date converter? Convert a Greorgian date to a Mayan date?Any other date? I don't know unless you would have asked a more specific question. Some code coming from your side would also be handy, don't be shy to send some in. We won't laugh at … | |
Re: You declared your factorial function in a for loop in main. French people would say : Il faut le faire! | |
Re: In C# there is no separate preprossesing step like in C or C++. #define looks like in C/C++ but it's not all the same. You can use it for conditional compilation like: #define DEBUG and then #if DEBUG bla bla #else blo blo | |
Re: The beauty of C# is that you don't have to worry about that! Forget Deletes,Disposes and destructors! C# has something what is called garbage collection which does most of the work for you. You can not completly igore these things(heavy stuff by the way), but in most cases you can, … | |
Re: Ever heard of Google? Type [B]Selection Sort in C++ [/B]. You'll be amazed what you'll find there. | |
Re: You might also check [url]http://en.wikiversity.org/wiki/Loops_%28C%2B%2B%29[/url] | |
Re: You have not implemented getTestScore. This should not be that difficult. | |
Re: The first thing you did really wrong was not putting your code between tags. It is unreadable as it is now, so helping you becomes a bit difficult... | |
Re: What do you think a driving seat has to do with a close of the door, or a mirror check? You obviously have a car object. And it has a mirror, has that mirror something to do with driving? What about speed, tires,fuel amount,engine? Maybe you need a road object?It … | |
Re: Before you can draw anything on a form you need a Graphics object. In your code it is named [B]formGraphics[/B]. You can't define a Graphics object yourself (the class is sealed) but you can obtain one from the PaintEventArgs class you get from a Paint event handler. Once you have … | |
Re: Another .cs file is definitly not the same as a .h file in C++. You don't have to include [B]using System;[/B] in your code, but then you have to write something like [B]System.Console.WriteLine [/B]instead of [B]Console.WriteLine[/B]. | |
Re: [B]more or less the same MSIL [/B]perhaps just means C# and VB can be processed by the same JIT-compiler, but because of differences in the MSIL code there may be differences in executing time. | |
Re: I find your for-statement a little weird :[B]for (int s=0; s<t, ++s;){[/B] I would write this as [B]for (int s=0; s<t; s++){[/B] Notice the comma has dissappeared and I changed preincrement to postincrement without a ; | |
Re: You could use a PictureBox for that and not load any picture in it. Handle the click event of the PictureBox. | |
Re: The books mentioned by hieuuk are very good, you could also check out [url]http://www.functionx.com/csharp/index.htm[/url] | |
Re: You could start to look at [url]http://www.daniweb.com/code/snippet999.html[/url] which is a calculator(with symbol table) I translated and modified from the C++ book by B. Stroustrup! | |
| |
| |
Re: I dunno for C++ but when I open an older VC# 2003 application I fall automatically in a conversion wizzard, wich converts to 2005 if it can and wich it usually does. I expect it's the same for C++. | |
Re: A ListView control displays text and an icon, which is what you asked. | |
Re: It will cost you more time converting then rebuilding it from scratch, believe me. | |
Re: Read [url]http://en.wikipedia.org/wiki/Unix_time[/url] as a start. | |
Re: You can encrypt any way you like, just as you did is fine. It might give trouble if the ascii code is 254 or 255. Find out some information about an XOR function | |
Re: A Datagrid is a form control like a textbox is a form control, so what do you mean? A farpoint is far above my knowledge... | |
Re: [QUOTE]if ((dlg.nameText.Length > 5) || (dlg.nameText.Length < 8))[/QUOTE] This is always true! | |
Re: Perhaps you could look at a code snippet I made : [url]http://www.daniweb.com/code/snippet1015.html[/url]. In the click handler of your add button you could add simular code. | |
Re: for (int j=0;[COLOR="Red"] j<1[/COLOR]; j++) { cout << "You have tdollars," << " twons," << " tpennies." << endl; [COLOR="Red"]cin >> money[size].outputdata[/COLOR]; } Why j<1? Why cin when there is output? size? | |
Re: x_coord[i] = [COLOR="Red"]x_coord[i[/COLOR]] + side_length * angle + side_length ; y_coord[i] = [COLOR="Red"]y_coord[i] [/COLOR]+ side_length * angle + side_length ; The red vars are used without initialisation, this is not always a good thing to do. Polyhexes have all their points where they should be, so what do you mean … | |
Re: Perhaps you could try webBrowser1.Navigate(urlstring) instead of webBrowser1.Url. | |
| |
Re: Use integer division and remainder operations with 16 or 10 or 8. | |
Re: [QUOTE=wann100]Your sort routine must implement the selection sort algorithm discussed in class. [/QUOTE] This looks like an assignment to test if you paid enough attention in class. For the rest: I couldn't agree more with the advice of Ancient Dragon! | |
Re: Why not use a pathname like @"C:\....\Test.xls" ? | |
Re: You might observe that each row in the triangle is equal to [B]2[/B] raised to [B]n[/B]. Where n starts at zero. Your example : 2^0+2^1+2^2+2^3=15 I wonder why those binaries always pop up when we talk computer and why Pascal is also a computerlanguage.?.?.? | |
Re: A quadratic equation has two roots so put them in a [B]struct [/B]and go from there like I did in this code snippet [url]http://www.daniweb.com/code/snippet980.html[/url] ok it's C# but you will be surprised how much C++ is in there. [B]SubfunctionResult [/B]is what mathematicians call a discriminant. Check if it's > 0 … | |
Re: Did you read [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.listviewitem(VS.85).aspx[/url] which I found by typing [B]ListViewItem [/B]into the Search item of the Help menu? | |
Re: So you wanna make money out of homework assignments? | |
Re: If your application is a Windows Forms Application, you could use the Load eventhandler and do whatever you want to do in it. | |
I want to open IE from a forms application. A bit like daniweb does it btw.! I have the following in a button click eventhandler: [CODE=csharp]Process MyProcess = new Process(); //string MyPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); MyProcess.StartInfo.Domain = ""; MyProcess.StartInfo.FileName = "iexplore.exe"; //MyPath + "\\iexplore.exe"; MyProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal; MyProcess.StartInfo.CreateNoWindow = false; MyProcess.Start();[/CODE] … | |
Re: Tis is no string reverse, this is a word reverse. Extract the words from the sentence in an array and reverse the array. | |
Re: There is an excellent discussion on an elevator algorithm in D.E.Knuth "The Art of Computer Programming" Vol 1 Fundamental Algorithms. You may also view a short note on [url]http://en.wikiversity.org/wiki/TAoCP:Algorithms[/url] | |
Re: You can get the text of the node with the following, but I am not shure if it is that what you want: [CODE=csharp]private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { TreeNode selectedNode = e.Node; if (selectedNode.Nodes.Count == 0) //we have no children { Console.WriteLine(selectedNode.Text); } }[/CODE] | |
Re: [QUOTE=bit-streamer]The whole design on this page imposes the need of buying at least a wider 20'' or 21'' display to see everything.[/QUOTE] Hi bit-streamer, I don't know what system you are using, but I have a MacBook Pro 15'' with Vista installed(besides OS X) and I have no problems what … |
The End.